/* FAREMEX Portal Theme (v2)
   Direction: clean MSP dashboard, light surfaces, CI accents.
   CI colors based on faremex.de:
   - Green: #59ad31
   - Blue:  #015987
   - Ink:   #1e293b
   - Slate: #67768e
   - Paper: #f9f6fe
   - Accent:#c35600
*/

:root {
  --fx-green: #59ad31;
  --fx-green-hi: #9bea6d;
  --fx-blue: #015987;
  --fx-navy: #0b1b2a;
  --fx-ink: #1e293b;
  --fx-slate: #67768e;
  --fx-paper: #f9f6fe;
  --fx-white: #ffffff;
  --fx-accent: #c35600;

  --fx-bg: #fbfcfe;
  --fx-surface: rgba(255, 255, 255, 0.92);
  --fx-surface-strong: #ffffff;
  --fx-border: rgba(30, 41, 59, 0.10);
  --fx-border-strong: rgba(30, 41, 59, 0.16);

  --fx-shadow-sm: 0 10px 26px rgba(30, 41, 59, 0.08);
  --fx-shadow-md: 0 22px 70px rgba(30, 41, 59, 0.12);

  --fx-radius-sm: 12px;
  --fx-radius-md: 16px;
  --fx-radius-lg: 22px;

  /* Shared panel style (login + app surfaces). */
  --fx-panel-bg: rgba(255, 255, 255, 0.96);
  --fx-panel-border: rgba(30, 41, 59, 0.10);
  --fx-panel-radius: 10px;
  --fx-panel-shadow: 0 18px 55px rgba(30, 41, 59, 0.10);

  /* Global header height so sidebar can start below it. */
  --fx-topbar-h: 46px;
  --fx-topbar-ctl-h: 30px;
  --fx-topbar-pad: 20px;
  /* Compensate for the internal scroll bar in .fx-main so topbar right edge aligns visually. */
  --fx-main-scrollbar-w: 0px;
  --fx-topbar-pad-r: calc(var(--fx-topbar-pad) + var(--fx-main-scrollbar-w));
  /* Keep the content column aligned to the topbar padding (left/right). */
  --fx-content-pad-x: var(--fx-topbar-pad);
  /* Top padding for the main reading area (align to sidebar padding). */
  --fx-content-pad-top: 14px;
  --fx-sidebar-pad: 14px;
  --fx-sidebar-w: 280px;
  --fx-content-pad: 32px;
  --fx-hero-pad: 26px;

  --fx-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fx-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fx-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body.fx-app {
  min-height: 100vh;
  margin: 0;
  color: var(--fx-ink);
  font-family: var(--fx-font);
  /* App background (no outer frame around the whole UI). */
  background:
    radial-gradient(1100px 560px at 15% 10%, rgba(1, 89, 135, 0.18), transparent 62%),
    radial-gradient(980px 560px at 85% 0%, rgba(89, 173, 49, 0.16), transparent 62%),
    radial-gradient(1200px 620px at 50% 110%, rgba(30, 41, 59, 0.10), transparent 60%),
  #f3f6fb;
  padding: 0;
  overflow-x: hidden;
}

/* Minimal layout: keep a real footer docked at the bottom. */
body.fx-app.fx-minimal {
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* App layout: keep topbar + footer fixed; scroll only inside the main "reading area". */
body.fx-app:not(.fx-minimal) {
  overflow: hidden;
}

/* subtle noise + grid, very light */
body.fx-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(to right, rgba(30, 41, 59, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.95), transparent 68%);
}

body.fx-app.fx-minimal::before {
  mask-image: radial-gradient(circle at 50% 25%, rgba(0, 0, 0, 0.95), transparent 72%);
}

::selection {
  background: rgba(89, 173, 49, 0.20);
}

a {
  color: var(--fx-blue);
  text-decoration-color: rgba(1, 89, 135, 0.28);
}

a:hover {
  color: #014d75;
}

:focus-visible {
  outline: 3px solid rgba(89, 173, 49, 0.40);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Global soft page transition (post-login feels less "hard"). */
html.fx-boot body.fx-app {
  opacity: 0;
}

html.fx-ready body.fx-app {
  opacity: 1;
  transition: opacity 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html.fx-ready body.fx-app {
    transition: none;
  }
}

/* Shell */
.fx-appframe {
  height: 100vh;
  display: grid;
  grid-template-rows: var(--fx-topbar-h) 1fr;
}

.fx-noticebar {
  position: absolute;
  top: 14px;
  left: var(--fx-content-pad-x);
  right: var(--fx-content-pad-x);
  z-index: 30;
  pointer-events: none;
}

.fx-noticebar-inner {
  width: min(560px, 100%);
  margin-left: auto;
  display: grid;
  gap: 10px;
}

@media (max-width: 919px) {
  .fx-noticebar {
    top: 10px;
    left: var(--fx-content-pad-x);
    right: var(--fx-content-pad-x);
  }
}

.fx-notice {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(-6px);
  opacity: 0;
  max-height: 240px;
  transition: transform 220ms ease, opacity 220ms ease, max-height 260ms ease, margin 260ms ease;
}

/* Full accent outline instead of a left stripe. */
.fx-notice--success { border-color: rgba(89, 173, 49, 0.55); }
.fx-notice--info { border-color: rgba(56, 189, 248, 0.55); }
.fx-notice--warning { border-color: rgba(245, 158, 11, 0.58); }
.fx-notice--error { border-color: rgba(239, 68, 68, 0.58); }

/* Accent stripe + full outline (combined). */
.fx-notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: rgba(148, 163, 184, 0.75);
  opacity: 0.95;
}

.fx-notice--success::before {
  background: linear-gradient(180deg, var(--fx-green), var(--fx-green-hi));
}

.fx-notice--info::before {
  background: linear-gradient(180deg, rgba(56, 189, 248, 1), rgba(14, 165, 233, 1));
}

.fx-notice--warning::before {
  background: linear-gradient(180deg, rgba(251, 191, 36, 1), rgba(245, 158, 11, 1));
}

.fx-notice--error::before {
  background: linear-gradient(180deg, rgba(248, 113, 113, 1), rgba(239, 68, 68, 1));
}

.fx-notice > * {
  position: relative;
  z-index: 1;
}

/* Auto-reveal (JS adds this class immediately on load). */
.fx-notice.is-on {
  transform: translateY(0);
  opacity: 1;
}

.fx-notice.is-hiding {
  transform: translateY(-6px);
  opacity: 0;
  max-height: 0;
  margin-top: -10px;
}

.fx-notice-body {
  font-family: var(--fx-font);
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(2, 6, 23, 0.88);
  text-align: left;
}

.fx-notice-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.80);
  color: rgba(2, 6, 23, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fx-notice-close:hover {
  border-color: rgba(2, 6, 23, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(2, 6, 23, 0.78);
}

.fx-notice-close svg {
  width: 16px;
  height: 16px;
}

/* Left accent stripe is handled via .fx-notice::before (combined with full outline). */

@media (prefers-reduced-motion: reduce) {
  .fx-notice {
    transition: none;
    transform: none;
  }

  .fx-notice.is-hiding {
    max-height: 0;
  }
}

.fx-shell {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: var(--fx-sidebar-w) 1fr;
  align-items: stretch;
  /* Let the app background show through; cards define the surfaces. */
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.fx-sidebar {
  /* The topbar is a dedicated row above, so sidebar can start flush below it. */
  position: relative;
  top: auto;
  height: 100%;
  padding: var(--fx-sidebar-pad) var(--fx-sidebar-pad) 16px var(--fx-sidebar-pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Light sidebar: white base with subtle blue highlights. */
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(56, 189, 248, 0.14), transparent 58%),
    radial-gradient(900px 520px at 95% 10%, rgba(1, 89, 135, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 14px 0 60px rgba(2, 6, 23, 0.06);
  backdrop-filter: blur(14px);
}

.fx-sidebar::before {
  content: none;
}

/* Sidebar header (under the full-width topbar) */
.fx-sidebar-head {
  padding: 0;
}

.fx-sideuser {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  /* Match the nav item width/geometry so the frame aligns with the menu. */
  padding: 10px 10px 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background:
    radial-gradient(520px 160px at 25% 0%, rgba(56, 189, 248, 0.14), transparent 62%),
    radial-gradient(520px 160px at 85% 10%, rgba(1, 89, 135, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 27, 42, 0.98), rgba(11, 23, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.fx-sideuser:hover {
  background:
    radial-gradient(520px 160px at 25% 0%, rgba(56, 189, 248, 0.18), transparent 62%),
    radial-gradient(520px 160px at 85% 10%, rgba(1, 89, 135, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(13, 34, 56, 0.98), rgba(11, 23, 42, 0.98));
  border-color: rgba(56, 189, 248, 0.22);
}

.fx-sideuser-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(16px 16px at 35% 30%, rgba(255, 255, 255, 0.20), transparent 70%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.48), rgba(1, 89, 135, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fx-sideuser-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgb(56, 189, 248);
  box-shadow: 0 0 0 4px rgba(11, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.fx-sideuser-initials {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.fx-sideuser-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

.fx-sideuser-name {
  font-family: var(--fx-display);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-sideuser-sub {
  font-family: var(--fx-mono);
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-sideuser-meta {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.fx-nav-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  /* Iced (default): calm, bright, slightly frosted on the light sidebar. */
  color: rgba(2, 6, 23, 0.86);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(1, 89, 135, 0.12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.04);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  position: relative;
  overflow: hidden;
}

.fx-nav-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.92;
  color: rgba(1, 89, 135, 0.86);
}

.fx-nav-label {
  font-family: var(--fx-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fx-nav-item::before {
  content: none;
}

.fx-nav-item:hover {
  /* Keep iced base color; only increase contrast/elevation on hover. */
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(1, 89, 135, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(1, 89, 135, 0.10);
  color: rgba(2, 6, 23, 0.92);
}

.fx-nav-item.is-active {
  /* Active: softer than the login button. Keep an "iced" base and add a subtle blue-forward wash. */
  background:
    /* Use the same light green as the login hover (#a8e063) and the same brand blue as the topbar (#015987). */
    linear-gradient(90deg, rgba(168, 224, 99, 0.32), rgba(1, 89, 135, 0.34)),
    rgba(255, 255, 255, 0.66);
  border-color: rgba(1, 89, 135, 0.22);
  color: rgba(2, 6, 23, 0.92);
  box-shadow: 0 18px 55px rgba(1, 89, 135, 0.08);
}

.fx-nav-item.is-active::after {
  content: none;
}

.fx-nav-item.is-active:hover {
  /* Keep base/gradient; only boost lift/elevation. */
  color: rgba(2, 6, 23, 0.92);
  border-color: rgba(1, 89, 135, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(1, 89, 135, 0.10);
}

.fx-nav-item.is-active svg {
  color: rgba(1, 89, 135, 0.92);
}

.fx-sidebar-footer {
  margin-top: auto;
  /* Footer menu should look/space exactly like the main menu. */
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border-top: 0;
}

.fx-sidebar-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(254, 243, 199, 0.62);
  color: rgba(120, 53, 15, 0.96);
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Admin sub navigation (inside content area) */
.fx-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fx-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(30, 41, 59, 0.86);
  font-family: var(--fx-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fx-admin-tab:hover {
  color: rgba(30, 41, 59, 0.92);
  border-color: rgba(1, 89, 135, 0.18);
  text-decoration: none;
}

.fx-admin-tab.is-active {
  background:
    radial-gradient(420px 120px at 20% 50%, rgba(168, 224, 99, 0.22), transparent 60%),
    linear-gradient(90deg, rgba(86, 171, 47, 0.14) 0%, rgba(1, 89, 135, 0.08) 100%);
  border-color: rgba(168, 224, 99, 0.26);
  color: rgba(30, 41, 59, 0.92);
}

.fx-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fx-admin-filter {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.85);
  color: rgba(30, 41, 59, 0.80);
  font-family: var(--fx-display);
  font-weight: 800;
  font-size: 0.86rem;
}

.fx-admin-filter:hover {
  border-color: rgba(1, 89, 135, 0.18);
  color: rgba(30, 41, 59, 0.90);
  text-decoration: none;
}

.fx-admin-filter.is-active {
  background:
    radial-gradient(320px 90px at 20% 50%, rgba(168, 224, 99, 0.18), transparent 60%),
    linear-gradient(90deg, rgba(86, 171, 47, 0.10) 0%, rgba(1, 89, 135, 0.07) 100%);
  border-color: rgba(168, 224, 99, 0.22);
}

.fx-admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 540px;
}

.fx-admin-creategrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 980px) {
  .fx-admin-creategrid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.fx-admin-createcheck {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding-bottom: 2px;
}

@media (max-width: 980px) {
  .fx-admin-createcheck {
    justify-content: space-between;
  }
}

/* Support (Tickets) */
.fx-support-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  /* Rasterfaehig: Cards in einer Reihe sollen gleiche Hoehe haben. */
  align-items: stretch;
}

@media (max-width: 980px) {
  .fx-support-grid {
    grid-template-columns: 1fr;
  }
}

.fx-support-grid > .fx-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fx-support-grid > .fx-card > .fx-card-body {
  flex: 1 1 auto;
}

.fx-support-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fx-support-filterbar {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.8fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.fx-support-count {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 0;
  font-family: var(--fx-mono);
  font-size: 0.86rem;
  color: rgba(100, 116, 139, 0.92);
}

.fx-ticket-link {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.fx-ticket-link:hover {
  text-decoration: underline;
}

.fx-support-filterbar + .fx-support-count + .table-responsive table tbody tr {
  cursor: pointer;
}

/* Ticket details */
.fx-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.fx-ticket-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.90);
  color: rgba(30, 41, 59, 0.86);
  font-family: var(--fx-display);
  font-weight: 800;
  font-size: 0.82rem;
}

.fx-ticket-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .fx-ticket-grid {
    grid-template-columns: 1fr;
  }
}

.fx-ticket-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 980px) {
  .fx-ticket-summary {
    grid-template-columns: 1fr;
  }
}

.fx-ticket-kv {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.70);
  border-radius: 12px;
  padding: 10px 12px;
}

.fx-ticket-k {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  color: rgba(100, 116, 139, 0.92);
  margin-bottom: 4px;
}

.fx-ticket-v {
  font-family: var(--fx-display);
  font-weight: 800;
  color: rgba(30, 41, 59, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-ticket-textblock {
  margin-top: 14px;
}

.fx-ticket-h3 {
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 0.95rem;
  margin: 0 0 8px 0;
  color: rgba(30, 41, 59, 0.90);
}

.fx-ticket-pre {
  white-space: pre-wrap;
  margin: 0;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(241, 245, 249, 0.70);
  color: rgba(30, 41, 59, 0.88);
  font-family: var(--fx-mono);
  font-size: 0.88rem;
  line-height: 1.4;
}

.fx-ticket-sidegrid {
  display: grid;
  gap: 10px;
}

.fx-ticket-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fx-ticket-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  color: rgba(30, 41, 59, 0.80);
}

.fx-ticket-slarow {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.fx-ticket-timeline {
  display: grid;
  gap: 12px;
}

.fx-article {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.fx-article.is-internal {
  border-color: rgba(1, 89, 135, 0.18);
  background:
    radial-gradient(420px 120px at 20% 50%, rgba(168, 224, 99, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.85);
}

.fx-article-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.fx-article-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.fx-article-badge {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.90);
  color: rgba(30, 41, 59, 0.82);
  flex: 0 0 auto;
}

.fx-article-subject {
  font-family: var(--fx-display);
  font-weight: 900;
  color: rgba(30, 41, 59, 0.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-article-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: rgba(100, 116, 139, 0.92);
  font-size: 0.86rem;
  white-space: nowrap;
}

.fx-article-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.55);
}

.fx-article-fromto {
  padding: 10px 12px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(100, 116, 139, 0.92);
  font-size: 0.86rem;
}

.fx-article-k { font-family: var(--fx-mono); }
.fx-article-v { font-family: var(--fx-mono); color: rgba(30, 41, 59, 0.86); }

.fx-article-sep {
  width: 1px;
  height: 14px;
  background: rgba(15, 23, 42, 0.10);
  margin: 0 2px;
}

.fx-article-int {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(168, 224, 99, 0.26);
  background: rgba(168, 224, 99, 0.12);
  color: rgba(30, 41, 59, 0.86);
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 0.78rem;
}

.fx-article-body {
  margin: 10px 12px 12px 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(241, 245, 249, 0.70);
  white-space: pre-wrap;
  font-family: var(--fx-mono);
  font-size: 0.88rem;
  color: rgba(30, 41, 59, 0.88);
  line-height: 1.4;
}

.fx-article-att {
  padding: 0 12px 12px 12px;
}

.fx-article-attlist {
  margin: 6px 0 0 18px;
  padding: 0;
  color: rgba(30, 41, 59, 0.84);
}

@media (max-width: 980px) {
  .fx-support-filterbar {
    grid-template-columns: 1fr;
  }
}

.fx-support-select,
.fx-support-input {
  border-radius: 10px;
}

.fx-support-donutrow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 980px) {
  .fx-support-donutrow {
    grid-template-columns: 1fr;
  }
}

.fx-donut {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 2px 0;
}

.fx-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fx-donut-track {
  fill: none;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 10;
}

.fx-donut-seg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.fx-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.fx-donut-value {
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: rgba(30, 41, 59, 0.92);
  line-height: 1.0;
}

.fx-donut-label {
  font-family: var(--fx-mono);
  font-size: 0.86rem;
  color: rgba(100, 116, 139, 0.92);
}

.fx-support-legend {
  display: grid;
  gap: 10px;
}

.fx-legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.70);
}

.fx-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.fx-legend-name {
  font-family: var(--fx-display);
  font-weight: 800;
  color: rgba(30, 41, 59, 0.88);
}

.fx-legend-val {
  font-family: var(--fx-mono);
  color: rgba(100, 116, 139, 0.92);
}

.fx-prio {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--fx-display);
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.90);
  color: rgba(30, 41, 59, 0.86);
}

.fx-prio--kritisch {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
}
.fx-prio--hoch {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.26);
}
.fx-prio--normal {
  background: rgba(2, 132, 199, 0.10);
  border-color: rgba(2, 132, 199, 0.22);
}
.fx-prio--niedrig {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.28);
}

/* Content */
.fx-content {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  isolation: isolate;
  background: transparent;
  min-height: 0;
  height: 100%;
  align-content: stretch;
}

/* Subtle top glow across the full content column (not limited by .fx-main max-width). */
.fx-content::before {
  content: none;
}

.fx-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--fx-topbar-h);
  background:
    radial-gradient(900px 320px at 15% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(900px 320px at 80% 10%, rgba(89, 173, 49, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(11, 27, 42, 0.96), rgba(11, 23, 42, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: none;
}

.fx-topbar-inner {
  max-width: none;
  margin: 0;
  height: 100%;
  padding: 0 var(--fx-topbar-pad-r) 0 var(--fx-topbar-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.fx-topbar-left {
  min-width: 40px;
  width: var(--fx-sidebar-w);
  display: flex;
  align-items: center;
  justify-content: center;
  /* The topbar has horizontal padding for the content column; the sidebar starts at x=0.
     Pull the logo container back so its center matches the sidebar column center. */
  margin-left: calc(-1 * var(--fx-topbar-pad));
}
.fx-topbar-logo {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fx-topbar-logoimg {
  display: block;
  height: 24px;
  width: auto;
}
.fx-topbar-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  align-self: center;
}

.fx-topbar-pagetitle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Align with "hero content" (Start/Admin header area): sidebar + content pad + hero pad - topbar pad. */
  left: calc(var(--fx-sidebar-w) + var(--fx-content-pad-x) + var(--fx-hero-pad) - var(--fx-topbar-pad));
  min-width: 0;
  max-width: min(520px, 42vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fx-display);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.fx-topbar-pagetitle-text {
  min-width: 0;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-topbar-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.fx-topbar-helpbtn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: help;
}

.fx-topbar-helpbtn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.34);
}

.fx-topbar-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 23, 42, 0.96);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--fx-font);
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.fx-topbar-help:hover .fx-topbar-tooltip,
.fx-topbar-help:focus-within .fx-topbar-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fx-topbar-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.fx-topbar-brand {
  font-family: var(--fx-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-ink);
}

.fx-topbar-kicker {
  font-size: 0.86rem;
  color: rgba(103, 118, 142, 0.95);
}

.fx-topbar-h1 {
  font-family: var(--fx-display);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Topbar: user chip */
.auth-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.auth-nav .nav-item {
  display: flex;
  align-items: center;
}

.auth-nav form {
  display: flex;
  align-items: center;
  margin: 0;
}

.fx-userchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  max-width: 520px;
}

.fx-userchip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(1, 89, 135, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  flex: 0 0 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fx-userchip-initials {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

.fx-userchip-name {
  font-family: var(--fx-display);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.fx-userchip-meta,
.fx-userchip-tenant {
  font-family: var(--fx-mono);
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-userchip-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
}

/* Desktop: show user info in the left sidebar block (not duplicated in the topbar). */
@media (min-width: 992px) {
  .fx-userchip {
    display: none;
  }
}

.fx-main {
  /* Don't center content within the content column; align it to the sidebar edge. */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: var(--fx-content-pad) var(--fx-content-pad-x);
  padding-top: var(--fx-content-pad-top);
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
}

.fx-footer {
  border-top: 1px solid var(--fx-border);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.fx-footer-inner {
  max-width: none;
  margin: 0;
  padding: 10px var(--fx-content-pad-x);
  color: rgba(103, 118, 142, 0.95);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.fx-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fx-footer-version {
  font-family: var(--fx-mono);
  color: rgba(103, 118, 142, 0.95);
  font-size: 0.82rem;
  white-space: nowrap;
}

.fx-footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(103, 118, 142, 0.50);
}

/* Dashboard board (reference-inspired). */
.fx-dashboard-head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.fx-kicker {
  font-family: var(--fx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.88);
  margin: 0;
}

.fx-h1 {
  font-family: var(--fx-display);
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.fx-sub {
  margin: 0;
  color: rgba(100, 116, 139, 0.92);
  max-width: 70ch;
}

.fx-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.fx-statusbar.is-ok {
  background: rgba(89, 173, 49, 0.10);
  border-color: rgba(89, 173, 49, 0.22);
}

.fx-statusbar.is-warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.26);
}

.fx-statusbar-label {
  font-family: var(--fx-mono);
  font-size: 0.82rem;
  color: rgba(30, 41, 59, 0.72);
}

.fx-statusbar-text {
  color: rgba(30, 41, 59, 0.92);
}

.fx-statusbar-muted {
  color: rgba(100, 116, 139, 0.92);
}

.fx-statusbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(15, 23, 42, 0.12);
}

.fx-statusbar-badge {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(1, 89, 135, 0.12);
  border: 1px solid rgba(1, 89, 135, 0.18);
  color: rgba(30, 41, 59, 0.86);
}

.fx-statusbar-badge.is-reader {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
  color: rgba(120, 53, 15, 0.96);
}

.fx-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 16px;
  /* Rasterfaehig: Cards in einer Reihe sollen gleiche Hoehe haben. */
  align-items: stretch;
}

.fx-dashboard-grid > .fx-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fx-dashboard-grid > .fx-card > .fx-card-body {
  flex: 1 1 auto;
}

.fx-card {
  background: var(--fx-panel-bg);
  border: 1px solid var(--fx-panel-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
  overflow: hidden;
}

.fx-card--span2 {
  grid-column: span 2;
}

.fx-card-head {
  padding: 14px 14px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Microsoft 365: friendlier Connection card (avoid "technical" KPI look). */
.fx-m365-conn-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.fx-m365-conn-tenant {
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.8;
}

.fx-m365-conn {
  display: grid;
  gap: 10px;
}

.fx-m365-conn-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
}

.fx-m365-conn-row--sub .fx-m365-conn-label,
.fx-m365-conn-row--sub .fx-m365-conn-value {
  opacity: 0.8;
}

.fx-m365-conn-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(14, 30, 45, 0.78);
}

.fx-m365-conn-value {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(14, 30, 45, 0.92);
  text-align: right;
}

.fx-m365-conn-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* Loading overlay for the Connection card: dim body + show CI spinner until data is hydrated. */
.fx-m365-conn-body {
  position: relative;
}

.fx-m365-conn-body .fx-m365-conn {
  transition: opacity 180ms ease, filter 180ms ease;
}

.fx-m365-conn-body.is-loading .fx-m365-conn {
  opacity: 0.28;
  filter: saturate(0.9) blur(0.4px);
}

.fx-m365-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.fx-m365-conn-body.is-loading .fx-m365-loader {
  opacity: 1;
}

.fx-m365-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 42, 0.46);
  border-radius: var(--fx-panel-radius);
}

.fx-m365-loader-center {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 60px rgba(11, 27, 42, 0.30);
}

.fx-m365-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: conic-gradient(
    from 90deg,
    var(--fx-blue),
    var(--fx-green-hi),
    var(--fx-green),
    var(--fx-blue)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  animation: fx-spin 0.95s linear infinite;
  filter: drop-shadow(0 8px 18px rgba(89, 173, 49, 0.22));
}

@keyframes fx-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .fx-m365-conn-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .fx-m365-conn-value {
    text-align: left;
  }
}

.fx-card-title {
  font-family: var(--fx-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.fx-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.80rem;
  color: rgba(30, 41, 59, 0.74);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(241, 245, 249, 0.90);
}

.fx-card-body {
  padding: 14px;
}

.fx-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-stat-label {
  font-size: 0.86rem;
  color: rgba(100, 116, 139, 0.92);
}

.fx-stat-value {
  font-family: var(--fx-display);
  font-weight: 800;
  font-size: 1.34rem;
  letter-spacing: -0.02em;
  color: rgba(30, 41, 59, 0.92);
}

.fx-muted { color: rgba(100, 116, 139, 0.92); }

.fx-link {
  display: inline-block;
  color: rgba(1, 89, 135, 0.95);
  text-decoration: none;
  font-weight: 700;
}

.fx-link:hover {
  text-decoration: underline;
  color: rgba(1, 89, 135, 1);
}

.fx-list {
  padding-left: 18px;
  margin: 0;
  color: rgba(30, 41, 59, 0.84);
}

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

.fx-btn-quiet {
  border-color: rgba(15, 23, 42, 0.16);
  color: rgba(30, 41, 59, 0.86);
}

.fx-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.fx-status-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fx-status-right {
  font-family: var(--fx-mono);
  font-size: 0.86rem;
  color: rgba(100, 116, 139, 0.92);
}

.fx-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.fx-dot--ok {
  background: #56ab2f;
  box-shadow: 0 0 0 3px rgba(86, 171, 47, 0.20);
}

.fx-dot--warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.fx-quicklinks {
  display: grid;
  gap: 10px;
}

.fx-quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(241, 245, 249, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(30, 41, 59, 0.90);
  font-weight: 800;
}

.fx-quicklink:hover {
  border-color: rgba(1, 89, 135, 0.22);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

.fx-footer-muted {
  color: rgba(103, 118, 142, 0.75);
}

/* Page patterns */
.page-header {
  margin-bottom: 1rem;
}

.eyebrow {
  font-family: var(--fx-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(1, 89, 135, 0.85);
  font-weight: 900;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.page-header h1 {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-header p {
  color: rgba(103, 118, 142, 0.95);
  max-width: 78ch;
}


.hero {
  border-radius: var(--fx-panel-radius);
  background:
    linear-gradient(180deg, rgba(1, 89, 135, 0.06), rgba(89, 173, 49, 0.05)),
    radial-gradient(1000px 520px at 10% 0%, rgba(1, 89, 135, 0.08), transparent 58%),
    radial-gradient(1000px 520px at 90% 10%, rgba(89, 173, 49, 0.07), transparent 58%),
    var(--fx-panel-bg);
  border: 1px solid var(--fx-panel-border);
  box-shadow: var(--fx-panel-shadow);
  padding: var(--fx-hero-pad);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--fx-display);
  font-size: clamp(1.9rem, 3.0vw, 3.0rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero p {
  color: rgba(30, 41, 59, 0.78);
  max-width: 78ch;
}

.hero-actions {
  margin-top: 1.15rem;
}

.info-grid,
.placeholder-grid,
.quick-links-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-grid article,
.placeholder-grid article,
.fx-tab-content section {
  background: var(--fx-panel-bg);
  border: 1px solid var(--fx-panel-border);
  border-radius: var(--fx-panel-radius);
  padding: 18px;
  box-shadow: var(--fx-panel-shadow);
}

.info-grid h2,
.placeholder-grid h2,
.fx-tab-content h2 {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.info-grid p,
.placeholder-grid p,
.fx-tab-content p {
  color: rgba(103, 118, 142, 0.95);
  margin: 0;
}

.quick-links {
  margin-top: 1.5rem;
}

.quick-links h2 {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.quick-links-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  border: 1px solid var(--fx-panel-border);
  border-radius: var(--fx-panel-radius);
  background: var(--fx-panel-bg);
  box-shadow: var(--fx-panel-shadow);
  color: var(--fx-ink);
  font-family: var(--fx-display);
  font-weight: 900;
}

.quick-links-grid a::after {
  content: "→";
  color: rgba(1, 89, 135, 0.90);
  font-family: var(--fx-mono);
  font-weight: 600;
}

.quick-links-grid a:hover {
  border-color: var(--fx-border-strong);
  transform: translateY(-1px);
}

/* Minimal auth layout (no menu) */
.fx-auth-shell {
  /* Don't force 100vh here; the docked footer adds extra height and causes scroll. */
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 14px 11px;
}

.fx-auth-dock {
  flex: 0 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--fx-border);
  box-shadow: 0 -18px 55px rgba(30, 41, 59, 0.08);
  backdrop-filter: blur(14px);
}

.fx-auth-dock-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 11px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fx-auth-page {
  /* Avoid pushing content beyond the viewport (footer is docked). */
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Give the login unit a bit more presence on desktop without going full-height. */
  max-width: 920px;
  margin: 0 auto;
}

.fx-auth-topcenter {
  position: absolute;
  top: clamp(4px, 1.4vh, 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.fx-auth-topcenter img {
  display: block;
  height: 72px;
  width: auto;
}

.fx-auth-center {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-auth-top {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.fx-auth-topbrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow-sm);
}

.fx-auth-logo {
  display: block;
  height: 22px;
  width: auto;
}

.fx-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fx-auth-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.40), transparent 55%),
    linear-gradient(180deg, rgba(1, 89, 135, 0.96), rgba(89, 173, 49, 0.96));
  box-shadow:
    0 16px 40px rgba(1, 89, 135, 0.12),
    0 16px 40px rgba(89, 173, 49, 0.12);
}

.fx-auth-word {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fx-ink);
  font-size: 0.98rem;
}

.fx-auth-grid {
  display: grid;
  /* Fixed desktop proportions (keeps the login box from becoming too wide). */
  grid-template-columns: 480px 360px;
  gap: 14px;
  /* Keep the auth cards as a compact, modern unit (do not stretch full height). */
  align-items: start;
  align-self: center;
  justify-content: center;
  padding: 0;
}

.fx-auth-grid--single {
  grid-template-columns: minmax(380px, 520px);
}

.fx-auth-grid-alert {
  grid-column: 1 / -1;
}

.fx-auth-panel {
  /* Reduce rounding substantially (previously too "pillowy"). */
  border-radius: 7px;
  border: 1px solid rgba(30, 41, 59, 0.10);
  /* Minimal, softer elevation. */
  box-shadow: 0 18px 55px rgba(30, 41, 59, 0.10);
  overflow: hidden;
}

.fx-auth-panel--login {
  background: #ffffff;
  /* Bottom padding matches top padding + title top margin for a balanced layout. */
  padding: 26px 26px 34px 26px;
}

.fx-auth-panel--blocked {
  border-color: rgba(245, 158, 11, 0.26);
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(245, 158, 11, 0.10), transparent 62%),
    #ffffff;
}


.fx-auth-input {
  border-radius: 10px;
  border-color: rgba(30, 41, 59, 0.16);
  height: 48px;
}

.fx-auth-field {
  position: relative;
  border-radius: 12px;
  padding: 2px;
  background: rgba(30, 41, 59, 0.10);
}

.fx-auth-field:focus-within {
  background: linear-gradient(90deg, #56ab2f, #a8e063);
  box-shadow: 0 0 0 4px rgba(89, 173, 49, 0.18);
}

.fx-auth-field .fx-auth-input {
  border: 1px solid transparent;
  background: #ffffff;
  box-shadow: none;
}

.fx-auth-field .fx-auth-input:focus {
  outline: none;
  box-shadow: none;
}

.fx-auth-input::placeholder {
  color: rgba(103, 118, 142, 0.8);
}

.fx-auth-divider {
  position: relative;
  margin: 10px 0 10px 0;
  text-align: center;
}

.fx-auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(30, 41, 59, 0.14);
}

.fx-auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  font-size: 0.82rem;
  color: rgba(103, 118, 142, 0.95);
  background: #ffffff;
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fx-ms-logo {
  display: inline-grid;
  place-items: center;
  /* Match the logo size to the button text size. */
  width: 1.05em;
  height: 1.05em;
  margin-right: 0;
}

.fx-ms-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fx-btn-ci {
  /* Use the dark blue from the promo panel theme. */
  background: #0d1630 !important;
  border-color: rgba(1, 89, 135, 0.55) !important;
  color: #ffffff !important;
  /* Override Bootstrap primary glow/shadow. */
  box-shadow: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
  /* Ensure icon + label are vertically centered and balanced. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600 !important;
}

.fx-btn-spotlight {
  position: relative;
  overflow: hidden;
}

.fx-btn-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Mouse-following spotlight (set via --fx-mx / --fx-my in JS). */
  background: radial-gradient(circle 110px at var(--fx-mx, 50%) var(--fx-my, 50%),
    rgba(56, 189, 248, 0.42),
    transparent 60%);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.fx-btn-spotlight:hover::before {
  opacity: 1;
}

.fx-btn-spotlight:active::before {
  opacity: 0.9;
}

.fx-btn-spotlight > * {
  position: relative;
  z-index: 1;
}

/* Sidebar menu buttons: keep the same interaction (lift), but no gradient spotlight overlay. */
.fx-nav-item.fx-btn-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Inverted spotlight: dark blue around the cursor, base stays "iced". */
  background: radial-gradient(circle 72px at var(--fx-mx, 50%) var(--fx-my, 50%),
    rgba(56, 189, 248, 0.20) 0%,
    rgba(1, 89, 135, 0.16) 34%,
    transparent 60%);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.fx-nav-item.fx-btn-spotlight:hover::before {
  opacity: 1;
}

.fx-btn-ci:hover {
  background: #132041 !important;
  border-color: rgba(1, 89, 135, 0.78) !important;
  transform: translateY(-1px);
  /* CI-ish hover: cool blue lift, no green glow. */
  box-shadow: 0 18px 55px rgba(1, 89, 135, 0.18) !important;
}

.fx-btn-ci:active {
  background: #182652 !important;
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(11, 27, 42, 0.18) !important;
}

/* Login page: make the "Mit Microsoft anmelden" button visually match the signed-in user surface. */
.fx-auth-page .fx-btn-ci {
  background:
    radial-gradient(520px 160px at 25% 0%, rgba(56, 189, 248, 0.18), transparent 62%),
    radial-gradient(520px 160px at 85% 10%, rgba(1, 89, 135, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 27, 42, 0.98), rgba(11, 23, 42, 0.98)) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18) !important;
}

.fx-auth-page .fx-btn-ci:hover {
  background:
    radial-gradient(520px 160px at 25% 0%, rgba(56, 189, 248, 0.22), transparent 62%),
    radial-gradient(520px 160px at 85% 10%, rgba(1, 89, 135, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(13, 34, 56, 0.98), rgba(11, 23, 42, 0.98)) !important;
  border-color: rgba(56, 189, 248, 0.22) !important;
}

.fx-auth-page .fx-btn-ci:active {
  background:
    radial-gradient(520px 160px at 25% 0%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(520px 160px at 85% 10%, rgba(1, 89, 135, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(11, 23, 42, 0.98), rgba(8, 18, 30, 0.98)) !important;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.20) !important;
}

.fx-btn-login:not(:disabled):hover,
.fx-btn-login:not(:disabled):focus-visible {
  background: linear-gradient(90deg, #56ab2f, #a8e063);
  border-color: transparent;
  color: #ffffff;
}

.fx-btn-navy {
  /* Default: designed to sit on the dark topbar. */
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding-left: 12px;
  padding-right: 12px;
}

.fx-btn-navy:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(56, 189, 248, 0.22);
}

.fx-btn-logout {
  /* Orange CTA on the dark topbar; intentionally high visibility. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--fx-topbar-ctl-h);
  background: linear-gradient(90deg, #c35600, #f59e0b);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.66);
  border-radius: 10px;
  padding: 0 12px;
  line-height: 1;
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.18),
    0 0 0 0 rgba(245, 158, 11, 0.30);
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 160ms ease, filter 220ms ease;
  animation: fx-logout-pulse 3.2s ease-in-out infinite;
}

.fx-btn-logout:hover {
  background: linear-gradient(90deg, #d16205, #f6ad2f);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.86);
  box-shadow:
    0 18px 46px rgba(2, 6, 23, 0.22),
    0 0 0 6px rgba(245, 158, 11, 0.14);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.fx-btn-logout:active {
  background: linear-gradient(90deg, #aa4a00, #d97706);
  box-shadow:
    0 10px 26px rgba(2, 6, 23, 0.22),
    0 0 0 2px rgba(245, 158, 11, 0.24);
  transform: translateY(0);
}

@keyframes fx-logout-pulse {
  0%, 100% {
    box-shadow:
      0 14px 34px rgba(2, 6, 23, 0.18),
      0 0 0 0 rgba(245, 158, 11, 0.30);
  }
  50% {
    box-shadow:
      0 18px 42px rgba(2, 6, 23, 0.20),
      0 0 0 5px rgba(245, 158, 11, 0.11);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-btn-logout {
    animation: none;
  }
}

.fx-is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.fx-auth-forgot {
  display: inline-block;
  font-size: 0.86rem;
  text-decoration: none;
  color: rgba(103, 118, 142, 0.98);
}

.fx-auth-forgot:hover {
  color: rgba(30, 41, 59, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(30, 41, 59, 0.22);
}

.fx-auth-panel--promo {
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(700px 380px at 20% 0%, rgba(56, 189, 248, 0.22), transparent 62%),
    radial-gradient(700px 380px at 85% 10%, rgba(1, 89, 135, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(11, 27, 42, 0.98), rgba(11, 23, 42, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
  padding: 22px;
  position: relative;
}

.fx-auth-title {
  font-family: var(--fx-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Equal spacing above and below the title. */
  margin: 16px 0;
  font-size: 2.05rem;
}

.fx-auth-narrow {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.fx-auth-panel--blocked .fx-auth-narrow {
  max-width: 420px;
}

.fx-auth-blockchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px 0;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(120, 53, 15, 0.96);
  font-family: var(--fx-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fx-auth-blockmeta {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 41, 59, 0.10);
  background: rgba(248, 250, 252, 0.95);
}

.fx-auth-blockmeta > div > span {
  color: rgba(100, 116, 139, 0.92);
}

/* Make inputs and buttons visually the same control size. */
.fx-auth-narrow .btn,
.fx-auth-narrow .btn:focus {
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fx-auth-hint {
  color: rgba(103, 118, 142, 0.98);
  font-size: 0.84rem;
}

.fx-auth-bottomnote {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fx-border);
}

.fx-auth-bottomnote-inner {
  background: rgba(249, 246, 254, 0.78);
  border: 1px solid rgba(30, 41, 59, 0.10);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fx-auth-bottomnote-title {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fx-auth-bottomnote-text {
  color: rgba(103, 118, 142, 0.98);
  font-size: 0.84rem;
  line-height: 1.25;
}

.fx-auth-promo-icon {
  width: 35px;
  height: 35px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.40), rgba(1, 89, 135, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
  font-family: var(--fx-display);
  font-weight: 900;
}

.fx-auth-promo-icon span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-1px);
}

.fx-auth-promo-title {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 1.05rem;
}

.fx-auth-promo-sub {
  margin: 8px 0 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.fx-auth-steps {
  margin-top: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
}

.fx-auth-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
}

.fx-auth-stepnum {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--fx-mono);
  font-weight: 600;
}

.fx-auth-steptext {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
  font-size: 0.86rem;
}

.fx-auth-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.fx-auth-footerlink {
  color: rgba(103, 118, 142, 0.95);
  text-decoration: none;
  font-size: 0.86rem;
}

.fx-auth-footerlink:hover {
  color: rgba(30, 41, 59, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(1, 89, 135, 0.28);
}

.fx-auth-name {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.fx-auth-sub {
  color: rgba(103, 118, 142, 0.95);
  font-size: 0.92rem;
}

/* Bootstrap overrides */
.card {
  background: var(--fx-panel-bg);
  border: 1px solid var(--fx-panel-border);
  border-radius: var(--fx-panel-radius);
  box-shadow: var(--fx-panel-shadow);
}

.text-muted {
  color: rgba(103, 118, 142, 0.95) !important;
}

.btn {
  border-radius: 12px;
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.btn-primary {
  --bs-btn-bg: var(--fx-green);
  --bs-btn-border-color: rgba(89, 173, 49, 0.60);
  --bs-btn-hover-bg: #4f9c2b;
  --bs-btn-hover-border-color: rgba(89, 173, 49, 0.75);
  --bs-btn-active-bg: #458b25;
  --bs-btn-active-border-color: rgba(89, 173, 49, 0.75);
  --bs-btn-color: #08131f;
  box-shadow: 0 18px 55px rgba(89, 173, 49, 0.16);
}

.btn-outline-light {
  --bs-btn-color: rgba(30, 41, 59, 0.78);
  --bs-btn-border-color: rgba(30, 41, 59, 0.18);
  --bs-btn-hover-bg: rgba(1, 89, 135, 0.08);
  --bs-btn-hover-border-color: rgba(1, 89, 135, 0.30);
  --bs-btn-hover-color: rgba(30, 41, 59, 0.95);
}

.btn-light {
  --bs-btn-bg: rgba(255, 255, 255, 0.92);
  --bs-btn-border-color: rgba(30, 41, 59, 0.16);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.98);
  --bs-btn-color: var(--fx-ink);
}

.alert {
  border-radius: var(--fx-radius-md);
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow-sm);
}

.auth-nav {
  align-items: center;
  gap: 10px;
  margin: 0;
}

.auth-user {
  color: rgba(30, 41, 59, 0.72);
  font-size: 0.94rem;
  font-weight: 700;
  max-width: 42ch;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Tabs */
.fx-tabs.nav-tabs {
  border-bottom: 1px solid var(--fx-border);
  gap: 8px;
}

.fx-tabs.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  color: rgba(30, 41, 59, 0.70);
  background: rgba(255, 255, 255, 0.72);
}

.fx-tabs.nav-tabs .nav-link:hover {
  color: rgba(30, 41, 59, 0.92);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--fx-border);
}

.fx-tabs.nav-tabs .nav-link.active {
  color: #08131f;
  background: linear-gradient(180deg, rgba(1, 89, 135, 0.14), rgba(89, 173, 49, 0.14));
  border-color: rgba(1, 89, 135, 0.22);
}

.fx-tab-content {
  margin-top: 14px;
}

/* Microsoft 365 page (UI MVP / placeholders) */
.fx-m365-overview {
  margin-bottom: 14px;
}

.fx-m365-actions {
  margin-top: 12px;
  gap: 10px;
}

.fx-m365-statusgrid {
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background:
    radial-gradient(860px 240px at 12% 0%, rgba(1, 89, 135, 0.05), transparent 62%),
    radial-gradient(860px 240px at 88% 0%, rgba(89, 173, 49, 0.05), transparent 62%),
    rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fx-m365-statuscard {
  background:
    radial-gradient(540px 180px at 8% 0%, rgba(1, 89, 135, 0.04), transparent 62%),
    radial-gradient(540px 180px at 92% 0%, rgba(89, 173, 49, 0.04), transparent 62%),
    rgba(255, 255, 255, 0.24);
  border-color: rgba(15, 23, 42, 0.04);
  box-shadow: none;
  backdrop-filter: blur(5px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 160ms ease;
}

.fx-m365-statuscard .fx-card-head {
  background: rgba(248, 250, 252, 0.20);
  border-bottom-color: rgba(15, 23, 42, 0.05);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.fx-m365-statuscard .fx-kpi {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.30);
  border-radius: 10px;
  padding: 8px 10px;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.fx-m365-statuscard:hover,
.fx-m365-statuscard:focus-within {
  background:
    radial-gradient(540px 180px at 8% 0%, rgba(1, 89, 135, 0.08), transparent 62%),
    radial-gradient(540px 180px at 92% 0%, rgba(89, 173, 49, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.90);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.07);
  transform: translateY(-1px);
}

.fx-m365-statuscard:hover .fx-card-head,
.fx-m365-statuscard:focus-within .fx-card-head {
  background: rgba(248, 250, 252, 0.74);
}

.fx-m365-statuscard:hover .fx-kpi,
.fx-m365-statuscard:focus-within .fx-kpi {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(15, 23, 42, 0.10);
}

.fx-kpi-value--placeholder {
  color: rgba(100, 116, 139, 0.75);
  font-weight: 700;
  letter-spacing: 0;
}

.fx-m365-statuscard .fx-m365-conn-actions {
  margin-top: 10px;
}

.fx-m365-statuscard .fx-m365-conn-actions .btn {
  min-height: 34px;
}

.fx-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-kpi-label {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.86);
}

.fx-kpi-value {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(30, 41, 59, 0.92);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 12px 0;
}

.fx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.90);
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 0.80rem;
  color: rgba(30, 41, 59, 0.86);
}
.fx-badge.is-ok { background: rgba(89, 173, 49, 0.12); border-color: rgba(89, 173, 49, 0.22); }
.fx-badge.is-warn { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.26); }
.fx-badge.is-bad { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.22); }

.fx-m365-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.fx-m365-score-main {
  display: grid;
  gap: 2px;
  align-content: start;
}

.fx-m365-score-spark {
  width: 100%;
  min-width: 0;
}

.fx-m365-score-val {
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fx-m365-score-sub {
  font-family: var(--fx-mono);
  font-size: 0.86rem;
  color: rgba(100, 116, 139, 0.92);
}

.fx-spark {
  width: 100%;
  height: 40px;
  display: block;
}
.fx-spark--wide { height: 44px; }

.fx-m365-healthgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-m365-barrow {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  align-items: end;
  margin-top: 12px;
}

.fx-m365-bar {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.30);
}
.fx-m365-bar.is-hit {
  background: rgba(245, 158, 11, 0.30);
  border-color: rgba(245, 158, 11, 0.34);
}

.fx-m365-bars-legend {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fx-m365-bars {
  margin-top: 2px;
}

.fx-m365-tabgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.fx-table th,
.fx-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}
.fx-table th {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.88);
}

.fx-m365-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.30);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin: 6px 0 4px 0;
}
.fx-m365-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(1, 89, 135, 0.85), rgba(89, 173, 49, 0.85));
}

.fx-m365-mini-label {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.88);
}

.fx-list--ordered {
  padding-left: 22px;
}

@media (max-width: 980px) {
  .fx-m365-tabgrid {
    grid-template-columns: 1fr;
  }
}

/* Motion */
@keyframes fx-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html.fx-ready .fx-main > * {
  animation: fx-in 360ms ease both;
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --fx-topbar-pad: 16px;
    --fx-content-pad-x: var(--fx-topbar-pad);
    --fx-content-pad-top: 14px;
    --fx-content-pad: 16px;
    --fx-hero-pad: 18px;
  }

  body.fx-app { padding: 0; }

  .fx-appframe {
    height: auto;
    min-height: 100vh;
  }

  .fx-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }

  .fx-sidebar {
    position: relative;
    top: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  }

  .fx-sidebar-head {
    display: none;
  }

  .fx-sidebar::before {
    width: 100%;
    height: 4px;
    top: 0;
    bottom: auto;
  }

  .fx-nav {
    flex-direction: row;
    gap: 10px;
    padding-left: 0;
  }

  .fx-nav-item {
    grid-template-columns: 40px;
    padding: 10px 10px;
  }

  .fx-nav-label {
    display: none;
  }

  .fx-sidebar-footer {
    padding-left: 0;
  }

  .fx-topbar-inner,
  .fx-main,
  .fx-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fx-topbar-left {
    min-width: 0;
    width: auto;
    margin-left: 0;
    justify-content: flex-start;
  }
  .fx-topbar-pagetitle {
    left: calc(var(--fx-topbar-pad) + 40px);
    max-width: calc(100% - 140px);
    font-size: 1.06rem;
  }
  /* On mobile the sidebar header is hidden, so keep user info visible in the topbar. */
  .fx-userchip { display: inline-flex; }
  /* On mobile keep the same wordmark (only asset we render). */
  .fx-topbar-logoimg { height: 22px; }

  .fx-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .fx-card--span2 {
    grid-column: auto;
  }

  .fx-auth-shell {
    padding-top: 18px;
  }

  .fx-auth-grid {
    grid-template-columns: 1fr;
  }

  .fx-auth-panel--promo {
    order: 2;
  }
}

/* Switch auth layout to single-column earlier to avoid overflow with fixed panel widths. */
@media (max-width: 919px) {
  .fx-auth-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop auth panels: same height (keeps the two-card unit visually balanced). */
@media (min-width: 920px) {
  .fx-auth-grid {
    align-items: stretch;
  }

  .fx-auth-panel--login,
  .fx-auth-panel--promo {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-nav-item,
  .quick-links-grid a {
    transition: none;
  }

  html.fx-ready .fx-main > * {
    animation: none;
  }
}

/* ------------------------------------------------------------
   Preview page (scoped): higher guidance + clearer hierarchy
   Route: /Preview
------------------------------------------------------------ */
.fx-preview {
  --fx-ui-accent: var(--fx-green);
  --fx-ui-accent-ink: #08131f;
  --fx-ui-muted: rgba(100, 116, 139, 0.92);
  --fx-preview-ci-blue: rgba(1, 89, 135, 1);
  --fx-preview-ci-green: rgba(89, 173, 49, 1);
  --fx-preview-ci-green-soft: rgba(155, 234, 109, 1);
  --fx-preview-ci-blue-wash: rgba(1, 89, 135, 0.10);
  --fx-preview-ci-green-wash: rgba(89, 173, 49, 0.12);
}

.fx-preview-hero {
  border-radius: var(--fx-radius-lg);
  border: 1px solid rgba(1, 89, 135, 0.14);
  background:
    linear-gradient(180deg, rgba(1, 89, 135, 0.06), rgba(89, 173, 49, 0.05)),
    radial-gradient(940px 360px at 10% 0%, rgba(1, 89, 135, 0.08), transparent 60%),
    radial-gradient(940px 360px at 86% 8%, rgba(89, 173, 49, 0.07), transparent 60%),
    var(--fx-panel-bg);
  box-shadow: var(--fx-panel-shadow);
  padding: 18px 18px 16px 18px;
  color: rgba(30, 41, 59, 0.92);
  overflow: hidden;
  margin-bottom: 14px;
}

.fx-preview-hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.fx-preview-h1 {
  margin: 0;
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.05;
}

.fx-preview-sub {
  margin: 6px 0 0 0;
  color: rgba(30, 41, 59, 0.76);
  max-width: 74ch;
  font-size: 0.95rem;
}

.fx-preview-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fx-preview-hero-actions .btn {
  border-radius: 14px;
}

.fx-preview-hero-actions .btn-light {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(30, 41, 59, 0.16);
  color: rgba(30, 41, 59, 0.92);
}

.fx-preview-hero-actions .btn-light:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(1, 89, 135, 0.22);
  color: rgba(30, 41, 59, 0.96);
}

.fx-preview-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.fx-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.78);
  color: rgba(30, 41, 59, 0.86);
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 0.86rem;
}

.fx-preview-chipdot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.fx-preview-chip.is-ok .fx-preview-chipdot {
  background: var(--fx-preview-ci-green);
  box-shadow: 0 0 0 3px rgba(89, 173, 49, 0.20);
}

.fx-preview-chip.is-info .fx-preview-chipdot {
  background: rgb(56, 189, 248);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.20);
}

.fx-preview-chip.is-warn .fx-preview-chipdot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.fx-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px 0;
}

.fx-preview-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(30, 41, 59, 0.86);
  text-decoration: none;
  font-family: var(--fx-display);
  font-weight: 900;
}

.fx-preview-tab:hover {
  border-color: rgba(1, 89, 135, 0.20);
  color: rgba(30, 41, 59, 0.92);
  text-decoration: none;
}

.fx-preview-tab.is-active {
  background:
    radial-gradient(340px 100px at 20% 50%, rgba(89, 173, 49, 0.18), transparent 60%),
    linear-gradient(90deg, rgba(89, 173, 49, 0.14) 0%, rgba(1, 89, 135, 0.09) 100%);
  border-color: rgba(89, 173, 49, 0.24);
}

.fx-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .fx-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fx-preview-hero-top {
    grid-template-columns: 1fr;
  }
  .fx-preview-hero-actions {
    justify-content: flex-start;
  }
  .fx-preview-grid {
    grid-template-columns: 1fr;
  }
}

.fx-preview-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fx-preview-card .fx-card-body {
  flex: 1 1 auto;
}

.fx-preview-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0 14px;
}

.fx-preview-cardtitle {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.fx-preview-cardtitle h2 {
  margin: 0;
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: rgba(30, 41, 59, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-preview-badge {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(89, 173, 49, 0.28);
  background: rgba(89, 173, 49, 0.14);
  color: rgba(30, 41, 59, 0.86);
  flex: 0 0 auto;
}

.fx-preview-iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.80);
  color: rgba(30, 41, 59, 0.70);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.fx-preview-iconbtn svg {
  width: 18px;
  height: 18px;
}

.fx-preview-iconbtn:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(1, 89, 135, 0.18);
  color: rgba(30, 41, 59, 0.86);
  transform: translateY(-1px);
}

.fx-preview-card--primary {
  border-color: rgba(1, 89, 135, 0.18);
  background:
    radial-gradient(520px 160px at 10% 0%, rgba(1, 89, 135, 0.10), transparent 60%),
    radial-gradient(520px 160px at 80% 10%, rgba(89, 173, 49, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(1, 89, 135, 0.04), rgba(89, 173, 49, 0.04)),
    rgba(255, 255, 255, 0.92);
}

.fx-preview-steps {
  display: grid;
  gap: 10px;
}

.fx-preview-step {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(241, 245, 249, 0.60);
}

.fx-preview-step.is-done {
  border-color: rgba(89, 173, 49, 0.22);
  background:
    radial-gradient(320px 90px at 20% 50%, rgba(89, 173, 49, 0.17), transparent 60%),
    rgba(241, 245, 249, 0.55);
}

.fx-preview-stepmark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--fx-mono);
  font-weight: 700;
  color: rgba(30, 41, 59, 0.88);
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.fx-preview-steptitle {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(30, 41, 59, 0.92);
}

.fx-preview-stepmeta {
  color: var(--fx-ui-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.fx-preview-stepstate {
  font-family: var(--fx-mono);
  font-size: 0.86rem;
  color: rgba(100, 116, 139, 0.92);
}

.fx-preview-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-preview-kpilabel {
  font-size: 0.86rem;
  color: var(--fx-ui-muted);
}

.fx-preview-kpivalue {
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: rgba(30, 41, 59, 0.92);
  line-height: 1.05;
}

.fx-preview-statuslist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.fx-preview-statuslist li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.fx-preview-right {
  font-family: var(--fx-mono);
  font-size: 0.86rem;
  color: var(--fx-ui-muted);
}

.fx-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.fx-preview-dot.is-ok {
  background: #56ab2f;
  box-shadow: 0 0 0 3px rgba(86, 171, 47, 0.20);
}

.fx-preview-dot.is-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

/* ------------------------------------------------------------
   Preview - M365 customer-centric draft
   Route: /Preview/M365Customer
------------------------------------------------------------ */
.fx-preview-m365-hero {
  border-color: rgba(1, 89, 135, 0.20);
  background:
    radial-gradient(620px 180px at 8% 0%, rgba(1, 89, 135, 0.16), transparent 60%),
    radial-gradient(520px 170px at 88% 0%, rgba(89, 173, 49, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(1, 89, 135, 0.04), rgba(89, 173, 49, 0.04)),
    rgba(255, 255, 255, 0.92);
}

.fx-preview-m365-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-preview-prioritylist {
  display: grid;
  gap: 10px;
}

.fx-preview-priorityitem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241, 245, 249, 0.68);
}

.fx-preview-priorityitem.is-open {
  border-color: rgba(1, 89, 135, 0.15);
  background:
    radial-gradient(320px 90px at 0% 50%, rgba(56, 189, 248, 0.12), transparent 62%),
    rgba(241, 245, 249, 0.60);
}

.fx-preview-priorityitem.is-done {
  border-color: rgba(89, 173, 49, 0.20);
  background:
    radial-gradient(300px 90px at 0% 50%, rgba(89, 173, 49, 0.15), transparent 62%),
    rgba(241, 245, 249, 0.58);
}

.fx-preview-prioritymain {
  display: grid;
  gap: 2px;
}

.fx-preview-prioritymain strong {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.fx-preview-prioritymain span {
  color: var(--fx-ui-muted);
  font-size: 0.88rem;
}

.fx-preview-licensemeter {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.fx-preview-meterlabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(30, 41, 59, 0.86);
  font-size: 0.88rem;
}

.fx-preview-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.fx-preview-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(1, 89, 135, 0.90), rgba(89, 173, 49, 0.90));
}

.fx-preview-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fx-preview-mini {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(241, 245, 249, 0.70);
  padding: 8px 10px;
}

.fx-preview-mini-label {
  color: var(--fx-ui-muted);
  font-size: 0.82rem;
}

.fx-preview-mini-value {
  font-family: var(--fx-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.fx-preview-requestlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fx-preview-requestlist li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(241, 245, 249, 0.64);
  padding: 9px 10px;
}

.fx-preview-requestlist strong {
  font-family: var(--fx-display);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.fx-preview-actiongrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ------------------------------------------------------------
   Preview clean CI variant: less playful, stronger green presence
   Enabled via body class: .fx-preview-clean
------------------------------------------------------------ */
.fx-preview-clean .fx-topbar {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.98) 0%, rgba(1, 89, 135, 0.96) 72%, rgba(63, 141, 42, 0.86) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.fx-preview-clean .fx-preview-hero {
  border: 1px solid rgba(1, 89, 135, 0.18);
  background: linear-gradient(180deg, rgba(1, 89, 135, 0.05) 0%, rgba(89, 173, 49, 0.02) 100%), #ffffff;
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.08);
}

.fx-preview-clean .fx-preview-m365-hero {
  border: 1px solid rgba(1, 89, 135, 0.18);
  background: linear-gradient(180deg, rgba(1, 89, 135, 0.06) 0%, rgba(89, 173, 49, 0.02) 100%), #ffffff;
}

.fx-preview-clean .fx-preview-tab.is-active {
  background: rgba(1, 89, 135, 0.12);
  border-color: rgba(1, 89, 135, 0.30);
  color: rgba(16, 24, 40, 0.94);
  box-shadow: inset 0 -2px 0 rgba(89, 173, 49, 0.55);
}

.fx-preview-clean .fx-preview-badge {
  background: rgba(1, 89, 135, 0.08);
  border-color: rgba(1, 89, 135, 0.22);
  color: rgba(16, 24, 40, 0.88);
}

.fx-preview-clean .fx-preview-card--primary {
  border-color: rgba(1, 89, 135, 0.20);
  background: linear-gradient(180deg, rgba(1, 89, 135, 0.05) 0%, rgba(89, 173, 49, 0.02) 100%), #ffffff;
}

.fx-preview-clean .fx-preview-step.is-done,
.fx-preview-clean .fx-preview-priorityitem.is-done {
  border-color: rgba(89, 173, 49, 0.34);
  background: rgba(248, 252, 246, 0.96);
}

.fx-preview-clean .fx-btn-ci {
  background: #4f9c2b !important;
  border-color: rgba(79, 156, 43, 0.92) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.fx-preview-clean .fx-btn-ci:hover {
  background: #458b25 !important;
  border-color: rgba(69, 139, 37, 0.95) !important;
  color: #ffffff !important;
}

.fx-preview-clean .fx-btn-ci:active {
  background: #3f7f20 !important;
  border-color: rgba(63, 127, 32, 0.95) !important;
}

/* Sidebar nav in preview clean: stronger identity, still enterprise-clean. */
.fx-preview-clean .fx-nav-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 255, 0.94) 100%);
  border: 1px solid rgba(1, 89, 135, 0.16);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.05);
  transform: none;
}

.fx-preview-clean .fx-nav-item:hover {
  background: linear-gradient(90deg, rgba(1, 89, 135, 0.09) 0%, rgba(89, 173, 49, 0.08) 100%);
  border-color: rgba(1, 89, 135, 0.30);
  box-shadow: 0 12px 24px rgba(1, 89, 135, 0.10);
  transform: translateY(-1px);
}

.fx-preview-clean .fx-nav-item.is-active {
  background: linear-gradient(90deg, rgba(11, 27, 42, 0.97) 0%, rgba(1, 89, 135, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow:
    inset 4px 0 0 rgba(89, 173, 49, 0.98),
    0 14px 26px rgba(11, 27, 42, 0.22);
  color: rgba(255, 255, 255, 0.96);
}

.fx-preview-clean .fx-nav-item.is-active:hover {
  background: linear-gradient(90deg, rgba(13, 34, 56, 0.98) 0%, rgba(1, 89, 135, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow:
    inset 4px 0 0 rgba(89, 173, 49, 0.98),
    0 16px 28px rgba(11, 27, 42, 0.24);
  transform: translateY(-1px);
}

.fx-preview-clean .fx-nav-item.is-active .fx-nav-label,
.fx-preview-clean .fx-nav-item.is-active svg {
  color: rgba(255, 255, 255, 0.95);
}

.fx-preview-clean .fx-nav-item.fx-btn-spotlight::before,
.fx-preview-clean .fx-nav-item.fx-btn-spotlight:hover::before {
  content: none !important;
  opacity: 0 !important;
}

@media (max-width: 1100px) {
  .fx-preview-m365-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fx-preview-m365-grid {
    grid-template-columns: 1fr;
  }

  .fx-preview-priorityitem,
  .fx-preview-requestlist li {
    grid-template-columns: 1fr;
  }

  .fx-preview-actiongrid {
    grid-template-columns: 1fr;
  }
}
