/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 100vw;
  --logo-height: 25px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


.light, :root {
  --accent-1: #fffcfc;
  --accent-2: #fff7f7;
  --accent-3: #ffebe9;
  --accent-4: #ffdbd9;
  --accent-5: #ffcdca;
  --accent-6: #febdba;
  --accent-7: #f6a9a6;
  --accent-8: #ed8f8b;
  --accent-9: #c8102e;
  --accent-10: #b70020;
  --accent-11: #d12035;
  --accent-12: #67151a;

  --accent-a1: #ff000003;
  --accent-a2: #ff000008;
  --accent-a3: #ff180016;
  --accent-a4: #ff0e0026;
  --accent-a5: #ff0f0035;
  --accent-a6: #fc0c0045;
  --accent-a7: #e6090059;
  --accent-a8: #d8090074;
  --accent-a9: #c40020ef;
  --accent-a10: #b70020;
  --accent-a11: #ca0018df;
  --accent-a12: #590005ea;

  --accent-contrast: #fff;
  --accent-surface: #fff5f5cc;
  --accent-indicator: #c8102e;
  --accent-track: #c8102e;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.0032 22.32);
      --accent-2: oklch(98.3% 0.0087 22.32);
      --accent-3: oklch(95.5% 0.0224 22.32);
      --accent-4: oklch(92.8% 0.048 22.32);
      --accent-5: oklch(89.6% 0.0627 22.32);
      --accent-6: oklch(85.7% 0.0754 22.32);
      --accent-7: oklch(80.8% 0.0906 22.32);
      --accent-8: oklch(74.6% 0.1148 22.32);
      --accent-9: oklch(53% 0.2074 22.32);
      --accent-10: oklch(48.3% 0.2074 22.32);
      --accent-11: oklch(55.5% 0.2074 22.32);
      --accent-12: oklch(34% 0.1146 22.32);

      --accent-a1: color(display-p3 0.6745 0.0235 0.0235 / 0.012);
      --accent-a2: color(display-p3 0.8784 0.0196 0.0196 / 0.032);
      --accent-a3: color(display-p3 0.8588 0.1059 0.0078 / 0.083);
      --accent-a4: color(display-p3 0.8392 0.0627 0.0078 / 0.146);
      --accent-a5: color(display-p3 0.8471 0.0784 0.0039 / 0.204);
      --accent-a6: color(display-p3 0.8392 0.0627 0.0039 / 0.263);
      --accent-a7: color(display-p3 0.7725 0.051 0.0039 / 0.342);
      --accent-a8: color(display-p3 0.7255 0.0471 0.0039 / 0.444);
      --accent-a9: color(display-p3 0.6588 0 0.0471 / 0.832);
      --accent-a10: color(display-p3 0.6078 0 0.0275 / 0.867);
      --accent-a11: color(display-p3 0.6863 0 0.0314 / 0.793);
      --accent-a12: color(display-p3 0.2902 0 0.0039 / 0.891);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9961 0.9647 0.9608 / 0.8);
      --accent-indicator: oklch(53% 0.2074 22.32);
      --accent-track: oklch(53% 0.2074 22.32);
    }
  }
}


.light, :root {
  --grayscale-1: #fdfdfc;
  --grayscale-2: #f9f9f8;
  --grayscale-3: #f1f0ef;
  --grayscale-4: #e9e8e6;
  --grayscale-5: #e2e1de;
  --grayscale-6: #dad9d6;
  --grayscale-7: #cfceca;
  --grayscale-8: #bcbbb5;
  --grayscale-9: #8d8d86;
  --grayscale-10: #82827c;
  --grayscale-11: #63635e;
  --grayscale-12: #21201c;

  --grayscale-a1: #55550003;
  --grayscale-a2: #25250007;
  --grayscale-a3: #20100010;
  --grayscale-a4: #1f150019;
  --grayscale-a5: #1f180021;
  --grayscale-a6: #19130029;
  --grayscale-a7: #19140035;
  --grayscale-a8: #1915014a;
  --grayscale-a9: #0f0f0079;
  --grayscale-a10: #0c0c0083;
  --grayscale-a11: #080800a1;
  --grayscale-a12: #060500e3;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #8d8d86;
  --grayscale-track: #8d8d86;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.992 0.992 0.989);
      --grayscale-2: color(display-p3 0.977 0.977 0.973);
      --grayscale-3: color(display-p3 0.943 0.942 0.936);
      --grayscale-4: color(display-p3 0.913 0.912 0.903);
      --grayscale-5: color(display-p3 0.885 0.883 0.873);
      --grayscale-6: color(display-p3 0.854 0.852 0.839);
      --grayscale-7: color(display-p3 0.813 0.81 0.794);
      --grayscale-8: color(display-p3 0.738 0.734 0.713);
      --grayscale-9: color(display-p3 0.553 0.553 0.528);
      --grayscale-10: color(display-p3 0.511 0.511 0.488);
      --grayscale-11: color(display-p3 0.388 0.388 0.37);
      --grayscale-12: color(display-p3 0.129 0.126 0.111);

      --grayscale-a1: #55550003;
      --grayscale-a2: #25250007;
      --grayscale-a3: #20100010;
      --grayscale-a4: #1f150019;
      --grayscale-a5: #1f180021;
      --grayscale-a6: #19130029;
      --grayscale-a7: #19140035;
      --grayscale-a8: #1915014a;
      --grayscale-a9: #0f0f0079;
      --grayscale-a10: #0c0c0083;
      --grayscale-a11: #080800a1;
      --grayscale-a12: #060500e3;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.553 0.553 0.528);
      --grayscale-track: color(display-p3 0.553 0.553 0.528);
    }
  }
}


.dark {
  --accent-1: #180f0e;
  --accent-2: #211211;
  --accent-3: #3f0d0e;
  --accent-4: #57000a;
  --accent-5: #690510;
  --accent-6: #7b161c;
  --accent-7: #96272a;
  --accent-8: #c23539;
  --accent-9: #e4002b;
  --accent-10: #bf3236;
  --accent-11: #ff8f89;
  --accent-12: #ffcfca;

  --accent-a1: #f1000008;
  --accent-a2: #f4200012;
  --accent-a3: #fc000032;
  --accent-a4: #ff00004b;
  --accent-a5: #fd000b5f;
  --accent-a6: #ff1d2772;
  --accent-a7: #ff393d8f;
  --accent-a8: #ff4246be;
  --accent-a9: #fe002ee3;
  --accent-a10: #fe3e43bb;
  --accent-a11: #ff8f89;
  --accent-a12: #ffcfca;

  --accent-contrast: #fff;
  --accent-surface: #31131080;
  --accent-indicator: #e4002b;
  --accent-track: #e4002b;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(17.9% 0.0161 23.93);
      --accent-2: oklch(20.3% 0.0261 23.93);
      --accent-3: oklch(25% 0.0778 23.93);
      --accent-4: oklch(28.8% 0.1161 23.93);
      --accent-5: oklch(33.1% 0.1291 23.93);
      --accent-6: oklch(38.2% 0.1348 23.93);
      --accent-7: oklch(45% 0.1461 23.93);
      --accent-8: oklch(54.4% 0.1774 23.93);
      --accent-9: oklch(57.9% 0.2343 23.93);
      --accent-10: oklch(53.5% 0.1774 23.93);
      --accent-11: oklch(78.4% 0.196 23.93);
      --accent-12: oklch(90.2% 0.064 23.93);

      --accent-a1: color(display-p3 0.9725 0 0 / 0.026);
      --accent-a2: color(display-p3 1 0.2 0 / 0.059);
      --accent-a3: color(display-p3 0.9961 0.0706 0.0078 / 0.169);
      --accent-a4: color(display-p3 0.9961 0 0 / 0.261);
      --accent-a5: color(display-p3 1 0.0824 0.0863 / 0.332);
      --accent-a6: color(display-p3 1 0.2157 0.2039 / 0.404);
      --accent-a7: color(display-p3 1 0.3059 0.2863 / 0.509);
      --accent-a8: color(display-p3 1 0.3451 0.3294 / 0.681);
      --accent-a9: color(display-p3 1 0.2039 0.2392 / 0.807);
      --accent-a10: color(display-p3 0.9961 0.3294 0.3176 / 0.669);
      --accent-a11: color(display-p3 1 0.6196 0.5843 / 0.937);
      --accent-a12: color(display-p3 0.9961 0.8431 0.8196 / 0.967);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.1725 0.0784 0.0588 / 0.5);
      --accent-indicator: oklch(57.9% 0.2343 23.93);
      --accent-track: oklch(57.9% 0.2343 23.93);
    }
  }
}


.dark {
  --grayscale-1: #111113;
  --grayscale-2: #18191b;
  --grayscale-3: #212225;
  --grayscale-4: #272a2d;
  --grayscale-5: #2e3135;
  --grayscale-6: #363a3f;
  --grayscale-7: #43484e;
  --grayscale-8: #5a6169;
  --grayscale-9: #696e77;
  --grayscale-10: #777b84;
  --grayscale-11: #b0b4ba;
  --grayscale-12: #edeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #d8f4f609;
  --grayscale-a3: #ddeaf814;
  --grayscale-a4: #d3edf81d;
  --grayscale-a5: #d9edfe25;
  --grayscale-a6: #d6ebfd30;
  --grayscale-a7: #d9edff40;
  --grayscale-a8: #d9edff5d;
  --grayscale-a9: #dfebfd6d;
  --grayscale-a10: #e5edfd7b;
  --grayscale-a11: #f1f7feb5;
  --grayscale-a12: #fcfdffef;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #696e77;
  --grayscale-track: #696e77;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.067 0.067 0.074);
      --grayscale-2: color(display-p3 0.095 0.098 0.105);
      --grayscale-3: color(display-p3 0.13 0.135 0.145);
      --grayscale-4: color(display-p3 0.156 0.163 0.176);
      --grayscale-5: color(display-p3 0.183 0.191 0.206);
      --grayscale-6: color(display-p3 0.215 0.226 0.244);
      --grayscale-7: color(display-p3 0.265 0.28 0.302);
      --grayscale-8: color(display-p3 0.357 0.381 0.409);
      --grayscale-9: color(display-p3 0.415 0.431 0.463);
      --grayscale-10: color(display-p3 0.469 0.483 0.514);
      --grayscale-11: color(display-p3 0.692 0.704 0.728);
      --grayscale-12: color(display-p3 0.93 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #d8f4f609;
      --grayscale-a3: #ddeaf814;
      --grayscale-a4: #d3edf81d;
      --grayscale-a5: #d9edfe25;
      --grayscale-a6: #d6ebfd30;
      --grayscale-a7: #d9edff40;
      --grayscale-a8: #d9edff5d;
      --grayscale-a9: #dfebfd6d;
      --grayscale-a10: #e5edfd7b;
      --grayscale-a11: #f1f7feb5;
      --grayscale-a12: #fcfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.415 0.431 0.463);
      --grayscale-track: color(display-p3 0.415 0.431 0.463);
    }
  }
}

.light, :root {
  color-scheme: light;
  --accent: rgba(200, 16, 46, 1);
  --background: rgba(255, 255, 255, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(228, 0, 43, 1);
  --background: rgba(17, 17, 19, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #111113;
}

/* ══════════════════════════════════════════════════════════
   Provision Form Styles (pf- prefix)
   ══════════════════════════════════════════════════════════ */

/* ── Auth Button ───────────────────────────────────────── */
.plex-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 12px;
  white-space: nowrap;
  background: transparent;
}
.plex-auth-btn--login {
  border: 1.5px solid #D1D5DB;
  color: inherit;
}
.plex-auth-btn--login:hover {
  border-color: #E31E24;
  background: rgba(227, 30, 36, 0.06);
  color: #E31E24;
}
.plex-auth-btn--login:focus-visible {
  border-color: #E31E24;
  background: rgba(227, 30, 36, 0.06);
  color: #E31E24;
}
.plex-auth-btn--logout {
  border: 1.5px solid #D1D5DB;
  color: inherit;
}
.plex-auth-btn--logout:hover {
  border-color: #E31E24;
  background: rgba(227, 30, 36, 0.06);
  color: #E31E24;
}
.plex-auth-btn--logout:focus-visible {
  border-color: #E31E24;
  background: rgba(227, 30, 36, 0.06);
  color: #E31E24;
}

/* ── Tab Hiding (CSS-based to prevent flash) ───────────── */
a[href*="/provision"] {
  display: none !important;
}
body.plex-admin a[href*="/provision"] {
  display: flex !important;
}

/* ── Form Root Container ───────────────────────────────── */
#provision-app-root {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 0;
}

/* ── Form Card ─────────────────────────────────────────── */
.pf-form {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 2px solid #E5E5E5;
  overflow: hidden;
}

/* ── Progress Bar ──────────────────────────────────────── */
.pf-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(135deg, #E31E24 0%, #B71820 100%);
  color: #FFFFFF;
}
.pf-progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-progress-step--inactive {
  opacity: 0.8;
}
.pf-progress-num {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  backdrop-filter: blur(4px);
}
.pf-progress-label {
  font-weight: 700;
  font-size: 16px;
}

/* ── Sections ──────────────────────────────────────────── */
.pf-section {
  padding: 32px;
  border-bottom: 2px solid #F0F0F0;
}
.pf-submit-section {
  background: linear-gradient(to top, #F5F5F5 0%, #FFFFFF 100%);
  border-bottom: none;
}

/* ── Section Headers ───────────────────────────────────── */
.pf-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.pf-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.pf-section-icon--red { background: linear-gradient(135deg, #E31E24, #B71820); }
.pf-section-icon--blue { background: linear-gradient(135deg, #1976D2, #1565C0); }
.pf-section-icon--gray { background: linear-gradient(135deg, #757575, #616161); }
.pf-section-title-wrap {
  flex: 1;
  min-width: 0;
}
.pf-section-title-wrap--flex {
  flex: 1;
}
.pf-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}
.pf-section-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #666666;
  margin: 4px 0 0 0;
}

/* ── Form Grid ─────────────────────────────────────────── */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {

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

}

/* ── Fields ────────────────────────────────────────────── */
.pf-field {
  margin-bottom: 0;
}
.pf-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.pf-required {
  color: #E31E24;
}
.pf-input,
.pf-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #D1D5DB;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  background: #FFFFFF;
  color: #000000;
}
.pf-input:focus,
.pf-select:focus {
  border-color: #E31E24;
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.08);
}
.pf-input--error {
  border-color: #EF4444;
}
.pf-input--error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.pf-error {
  color: #E31E24;
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}
.pf-hint {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  margin-top: 8px;
}

/* ── Button Group ──────────────────────────────────────── */
.pf-btn-group {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.pf-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}
.pf-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pf-btn:focus-visible {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pf-btn--select-all {
  color: #E31E24;
  background: linear-gradient(135deg, #FFE5E6 0%, #FFF0F0 100%);
  border-color: #E31E24;
}
.pf-btn--clear {
  color: #374151;
  background: #FFFFFF;
  border-color: #D1D5DB;
}
.pf-btn--clear:hover {
  background: #F9FAFB;
}
.pf-btn--clear:focus-visible {
  background: #F9FAFB;
}

/* ── Error Box ─────────────────────────────────────────── */
.pf-error-box {
  margin-bottom: 24px;
  padding: 16px;
  border-left: 4px solid #E31E24;
  background: #FFE5E6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #B71820;
}

/* ── API Cards ─────────────────────────────────────────── */
.pf-api-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pf-api-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #FFFFFF;
}
.pf-api-card:hover {
  border-color: #BDBDBD;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pf-api-card:focus-visible {
  border-color: #BDBDBD;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pf-api-card--selected {
  border-color: #E31E24;
  background: linear-gradient(135deg, #FFE5E6 0%, #FFFFFF 100%);
}
.pf-checkbox {
  width: 24px;
  height: 24px;
  accent-color: #E31E24;
  flex-shrink: 0;
  cursor: pointer;
}
.pf-api-card-info {
  margin-left: 20px;
  flex: 1;
  min-width: 0;
}
.pf-api-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pf-api-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
}
.pf-api-card--selected .pf-api-card-name {
  color: #E31E24;
}
.pf-api-card-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #E5E5E5;
  color: #666666;
  white-space: nowrap;
}
.pf-api-card-badge--selected {
  background: #E31E24;
  color: #FFFFFF;
}
.pf-api-card-desc {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  margin: 8px 0 0 0;
}
.pf-check-icon {
  margin-left: 16px;
  font-size: 24px;
  color: #E31E24;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Selection Summary ─────────────────────────────────── */
.pf-selection-summary {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #E5E5E5;
  background: #F5F5F5;
  font-size: 14px;
  font-weight: 700;
  color: #666666;
}
.pf-selection-summary--active {
  border-color: #E31E24;
  background: linear-gradient(135deg, #FFE5E6, #FFF5F5);
  color: #E31E24;
}
.pf-selection-count {
  font-size: 28px;
  font-weight: 700;
}

/* ── Environment Toggle ────────────────────────────────── */
.pf-env-toggle {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #E5E5E5;
  background: #F9FAFB;
  transition: all 0.2s;
  margin-top: 24px;
}
.pf-env-toggle:hover {
  background: #FFFFFF;
}
.pf-env-toggle:focus-visible {
  background: #FFFFFF;
}
.pf-env-label {
  margin-left: 16px;
  flex: 1;
  cursor: pointer;
}
.pf-env-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.pf-env-desc {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  margin-top: 4px;
}

/* ── Submit Button ─────────────────────────────────────── */
.pf-submit-btn {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-submit-btn--active {
  background: linear-gradient(135deg, #E31E24, #B71820);
  color: #FFFFFF;
  box-shadow: 0 10px 40px -10px rgba(227, 30, 36, 0.5);
}
.pf-submit-btn--active:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px -10px rgba(227, 30, 36, 0.6);
}
.pf-submit-btn--active:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 15px 50px -10px rgba(227, 30, 36, 0.6);
}
.pf-submit-btn--disabled {
  background: #E5E5E5;
  color: #9E9E9E;
  cursor: not-allowed;
}
.pf-submit-hint {
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  text-align: center;
  margin-top: 16px;
}

/* ── Spinner ───────────────────────────────────────────── */
@keyframes pf-spin {
  to { transform: rotate(360deg); }
}
.pf-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #FFFFFF;
  border-top-color: transparent;
  border-radius: 50%;
  animation: pf-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 12px;
}

/* ── Success View ──────────────────────────────────────── */
@keyframes pf-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.pf-success {
  text-align: center;
}
.pf-success-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
  animation: pf-bounce 2s ease infinite;
}
.pf-success-title {
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 16px 0;
}
.pf-success-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #666666;
  margin: 0 0 40px 0;
}

/* ── Details Card ──────────────────────────────────────── */
.pf-details-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 2px solid #E5E5E5;
  overflow: hidden;
  margin-bottom: 24px;
  text-align: left;
}
.pf-details-header {
  padding: 20px 32px;
  background: linear-gradient(135deg, #E31E24 0%, #B71820 100%);
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
}
.pf-details-body {
  padding: 32px;
}
.pf-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #E5E5E5;
}
.pf-details-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pf-details-row:first-child {
  padding-top: 0;
}
.pf-details-label {
  font-size: 16px;
  font-weight: 700;
  color: #666666;
}
.pf-details-value {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
}
.pf-details-mono {
  font-size: 16px;
  font-family: monospace;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  background: #F5F5F5;
  color: #000000;
}
.pf-details-highlight {
  font-size: 24px;
  font-weight: 700;
  color: #E31E24;
}
.pf-details-success {
  color: #059669;
  font-weight: 700;
  font-size: 16px;
}
.pf-details-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
@keyframes pf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pf-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pf-pulse 2s ease infinite;
}

/* ── Next Steps Card ───────────────────────────────────── */
.pf-steps-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 2px solid #E5E5E5;
  padding: 32px;
  margin-bottom: 32px;
  text-align: left;
}
.pf-steps-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 24px 0;
}
.pf-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pf-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.pf-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #E31E24, #B71820);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(227, 30, 36, 0.3);
}
.pf-step-text {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  padding-top: 4px;
}

/* ── Action Buttons ────────────────────────────────────── */
.pf-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.pf-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.pf-action-btn--primary {
  background: linear-gradient(135deg, #E31E24, #B71820);
  color: #FFFFFF;
  box-shadow: 0 10px 40px -10px rgba(227, 30, 36, 0.5);
}
.pf-action-btn--primary:hover {
  transform: scale(1.02);
}
.pf-action-btn--primary:focus-visible {
  transform: scale(1.02);
}
.pf-action-btn--secondary {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #E5E5E5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pf-action-btn--secondary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.pf-action-btn--secondary:focus-visible {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.pf-another-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #666666;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.pf-another-btn:hover {
  background: #FFFFFF;
  border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pf-another-btn:focus-visible {
  background: #FFFFFF;
  border-color: #E5E5E5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Unauthorized View ─────────────────────────────────── */
.pf-unauthorized {
  text-align: center;
  padding: 80px 32px;
}
.pf-lock-icon {
  margin: 0 auto 24px;
  color: #9CA3AF;
}
.pf-unauthorized-title {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 12px 0;
}
.pf-unauthorized-text {
  font-size: 18px;
  font-weight: 500;
  color: #666666;
  margin: 0 0 32px 0;
}
.pf-unauthorized-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #E31E24, #B71820);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 40px -10px rgba(227, 30, 36, 0.5);
  transition: all 0.2s;
}
.pf-unauthorized-btn:hover {
  transform: scale(1.05);
}
.pf-unauthorized-btn:focus-visible {
  transform: scale(1.05);
}

/* ── Dark Mode ─────────────────────────────────────────── */
:root[data-theme="dark"] .pf-form,
.dark .pf-form {
  background: #1A1A1A;
  border-color: #333333;
}
:root[data-theme="dark"] .pf-section,
.dark .pf-section {
  border-color: #333333;
}
:root[data-theme="dark"] .pf-input,
:root[data-theme="dark"] .pf-select,
.dark .pf-input,
.dark .pf-select {
  background: #222222;
  border-color: #444444;
  color: #EEEEEE;
}
:root[data-theme="dark"] .pf-section-title,
:root[data-theme="dark"] .pf-api-card-name,
:root[data-theme="dark"] .pf-details-value,
:root[data-theme="dark"] .pf-success-title,
:root[data-theme="dark"] .pf-steps-title,
:root[data-theme="dark"] .pf-step-text,
:root[data-theme="dark"] .pf-unauthorized-title,
:root[data-theme="dark"] .pf-env-title,
.dark .pf-section-title,
.dark .pf-api-card-name,
.dark .pf-details-value,
.dark .pf-success-title,
.dark .pf-steps-title,
.dark .pf-step-text,
.dark .pf-unauthorized-title,
.dark .pf-env-title {
  color: #FFFFFF;
}
:root[data-theme="dark"] .pf-api-card,
.dark .pf-api-card {
  background: #1A1A1A;
  border-color: #333333;
}
:root[data-theme="dark"] .pf-api-card:hover,
.dark .pf-api-card:hover {
  border-color: #555555;
}
:root[data-theme="dark"] .pf-api-card:focus-visible,
.dark .pf-api-card:focus-visible {
  border-color: #555555;
}
:root[data-theme="dark"] .pf-api-card--selected,
.dark .pf-api-card--selected {
  background: linear-gradient(135deg, #3D1011, #1A1A1A);
  border-color: #E31E24;
}
:root[data-theme="dark"] .pf-details-card,
:root[data-theme="dark"] .pf-steps-card,
.dark .pf-details-card,
.dark .pf-steps-card {
  background: #1A1A1A;
  border-color: #333333;
}
:root[data-theme="dark"] .pf-details-row,
.dark .pf-details-row {
  border-color: #333333;
}
:root[data-theme="dark"] .pf-details-mono,
.dark .pf-details-mono {
  background: #222222;
  color: #EEEEEE;
}
:root[data-theme="dark"] .pf-selection-summary,
.dark .pf-selection-summary {
  background: #222222;
  border-color: #444444;
}
:root[data-theme="dark"] .pf-selection-summary--active,
.dark .pf-selection-summary--active {
  border-color: #E31E24;
  background: linear-gradient(135deg, #3D1011, #222222);
}
:root[data-theme="dark"] .pf-env-toggle,
.dark .pf-env-toggle {
  background: #222222;
  border-color: #444444;
}
:root[data-theme="dark"] .pf-label,
.dark .pf-label {
  color: #D1D5DB;
}
:root[data-theme="dark"] .pf-submit-btn--disabled,
.dark .pf-submit-btn--disabled {
  background: #333333;
  color: #666666;
}
:root[data-theme="dark"] .pf-action-btn--secondary,
.dark .pf-action-btn--secondary {
  background: #1A1A1A;
  color: #EEEEEE;
  border-color: #333333;
}
:root[data-theme="dark"] .pf-submit-section,
.dark .pf-submit-section {
  background: linear-gradient(to top, #111111 0%, #1A1A1A 100%);
}

/* ══════════════════════════════════════════════════════════
   Plex Footer — mirrors plex.rockwellautomation.com
   Side-by-side: light left, dark right
   ══════════════════════════════════════════════════════════ */

#plex-custom-footer {
  font-family: inherit;
  font-size: 14px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  display: flex;
}

/* ── Left side (light background) ────────────────────────── */
#plex-custom-footer .plex-footer__left {
  flex: 1;
  background: #FFFFFF;
  border-top: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 40px;
  gap: 12px;
}

/* Social Icons */
#plex-custom-footer .plex-footer__social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
#plex-custom-footer .plex-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #1A1A1A;
  transition: color 0.2s, transform 0.2s;
}
#plex-custom-footer .plex-footer__social-link:hover {
  color: #000000;
  transform: translateY(-2px);
}
#plex-custom-footer .plex-footer__social-link:focus-visible {
  color: #000000;
  transform: translateY(-2px);
}
#plex-custom-footer .plex-footer__social-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Legal Links */
#plex-custom-footer .plex-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#plex-custom-footer .plex-footer__legal-link {
  color: #555555;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
}
#plex-custom-footer .plex-footer__legal-link:hover {
  color: #111111;
  text-decoration: underline;
}
#plex-custom-footer .plex-footer__legal-link:focus-visible {
  color: #111111;
  text-decoration: underline;
}
#plex-custom-footer .plex-footer__legal-sep {
  color: #CCCCCC;
  font-size: 12px;
  user-select: none;
}

/* ── Right side (dark background) ────────────────────────── */
#plex-custom-footer .plex-footer__right {
  background: #111111;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  flex-shrink: 0;
}

/* Copyright */
#plex-custom-footer .plex-footer__copyright-text {
  color: #999999;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
#plex-custom-footer .plex-footer__copyright-text-mobile {
  display: none;
  color: #999999;
  font-size: 12px;
  font-weight: 500;
}

/* ── Logo lockup ─────────────────────────────────────────── */
#plex-custom-footer .plex-footer__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
#plex-custom-footer .plex-footer__logo-link:hover {
  opacity: 0.8;
}
#plex-custom-footer .plex-footer__logo-link:focus-visible {
  opacity: 0.8;
}
#plex-custom-footer .plex-footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {

  #plex-custom-footer {
    flex-direction: column;
  }
  #plex-custom-footer .plex-footer__left {
    padding: 16px 24px;
  }
  #plex-custom-footer .plex-footer__right {
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: wrap;
  }
  #plex-custom-footer .plex-footer__legal-links {
    gap: 8px;
  }
  #plex-custom-footer .plex-footer__copyright-text {
    display: none;
  }
  #plex-custom-footer .plex-footer__copyright-text-mobile {
    display: block;
  }

}
