body.authelia-guide { color-scheme: dark; --legal-body: #fff; --legal-muted: #fff; color: #fff; }
.authelia-guide .doc-updated { color: #fff; }
.authelia-guide .doc-section :is(strong, b) { color: #7ddc3a; }
.authelia-guide li::marker { color: #7ddc3a; font-weight: 700; }
.authelia-guide input::placeholder { color: #fff; opacity: 1; }
.authelia-guide .doc-wrap { padding-bottom: 4rem; }
.authelia-guide .setup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.authelia-guide label { display: grid; gap: .6rem; color: #f7f8f8; font-size: .85rem; font-weight: 600; }
.authelia-guide :is(input, select) { width: 100%; min-width: 0; padding: .85rem 1rem; font: 400 .9rem Roboto, sans-serif; color: #f7f8f8; background: #0c0f11; border: 1px solid #343d41; border-radius: 7px; }
.authelia-guide :is(input, select, button):focus-visible { outline: 2px solid #7ddc3a; outline-offset: 3px; }
.authelia-guide pre { max-width: 100%; padding: 1.25rem; margin: 1.25rem 0; overflow: auto; border: 1px solid #303b3e; border-radius: 7px; background: #0e1416; color: #fff; font: .8rem/1.7 ui-monospace, Consolas, monospace; }
.authelia-guide code { overflow-wrap: anywhere; }
.authelia-guide pre code { background: none; color: inherit; padding: 0; white-space: pre; overflow-wrap: normal; }
.authelia-guide [data-copy] { margin-bottom: 1rem; }
.authelia-guide #status { margin-top: 1rem; color: #fff; }
@media (max-width: 600px) { .authelia-guide .setup-fields { grid-template-columns: 1fr; } }

/* Match the Terms page's outlined back button. */
.authelia-guide .setup-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 38px; padding: 0 .9rem; border: 1px solid #343d41; border-radius: 7px;
  background: #0c0f11; box-shadow: none; color: #f7f8f8;
  font: 600 .83rem Roboto, sans-serif; letter-spacing: .01em; text-transform: none;
  text-decoration: none; cursor: pointer; transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.authelia-guide .setup-action .material-symbols-rounded { color: #7ddc3a; font-size: 1.15rem; }
.authelia-guide .setup-action:is(:hover, :focus-visible) { color: #7ddc3a; background: #0c0f11; border-color: #7ddc3a; box-shadow: 0 0 8px #7ddc3a38; }
.authelia-guide .setup-action:focus-visible { outline: 1px solid #7ddc3a; outline-offset: 2px; }

.authelia-guide [hidden] { display: none !important; }
.authelia-guide #proxy { max-width: 440px; }
.authelia-guide #setup-advice { margin-top: 1rem; }
.authelia-guide #proxy-guidance { margin-bottom: 1.4rem; }
.authelia-guide .setup-action:disabled { opacity: 1; cursor: not-allowed; border-style: dashed; box-shadow: none; }

/* Use the Feedback page’s themed picker appearance and keyboard interaction. */
.authelia-guide .setup-status-filter-picker { position: relative; }

.authelia-guide .setup-status-filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 9rem;
  min-height: 2.1rem;
  padding: 0.38rem 0.55rem 0.38rem 0.7rem;
  border: 1px solid #3b464a;
  border-radius: 8px;
  background: #151b1e;
  color: #f4f7f9;
  font: 700 0.82rem 'Roboto', system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.authelia-guide .setup-status-filter-trigger .material-symbols-rounded {
  color: #7ddc3a;
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.authelia-guide .setup-status-filter-picker.setup-open .setup-status-filter-trigger .material-symbols-rounded { transform: rotate(180deg); }

.authelia-guide .setup-status-filter-trigger:hover,
.authelia-guide .setup-status-filter-picker.setup-open .setup-status-filter-trigger {
  border-color: #3b464a;
  color: #f4f7f9;
}

.authelia-guide .setup-status-filter-trigger:focus-visible,
.authelia-guide .setup-status-filter-option:focus-visible {
  outline: 1px solid #7ddc3a;
  outline-offset: 2px;
}

.authelia-guide .setup-status-filter-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0.35rem;
  border: 1px solid #3b464a;
  border-radius: 9px;
  background: #111719;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.authelia-guide .setup-status-filter-menu[hidden] { display: none; }

.authelia-guide .setup-status-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e9eff1;
  font: 600 0.78rem 'Roboto', system-ui, sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.authelia-guide .setup-status-filter-option:hover,
.authelia-guide .setup-status-filter-option:focus-visible,
.authelia-guide .setup-status-filter-option.setup-selected { color: #7ddc3a; }

.authelia-guide .setup-status-filter-option.setup-selected::after {
  content: 'check';
  color: #7ddc3a;
  font: 20px 'Material Symbols Rounded';
}


.authelia-guide .setup-select-shell { max-width: 440px; margin-top: .6rem; }
.authelia-guide .setup-status-filter-trigger { width: 100%; min-height: 42px; }
.authelia-guide .setup-select-native-hidden { display: none !important; }
.authelia-guide .setup-status-filter-menu { max-height: 320px; overflow-y: auto; }
.authelia-guide .setup-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.authelia-guide .setup-panel { padding: 22px; border: 1px solid #343d41; border-radius: 12px; background: #0c1012; }
.authelia-guide .setup-panel h2 { margin-top: 10px; }
.authelia-guide .setup-panel li { margin-bottom: 12px; }
.authelia-guide .setup-auth-choice { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; cursor: pointer; }
.authelia-guide .setup-auth-choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #7ddc3a; }
.authelia-guide details { margin-top: 22px; }
.authelia-guide summary { cursor: pointer; color: #7ddc3a; }
@media (max-width: 700px) { .authelia-guide .setup-overview { grid-template-columns: 1fr; } }
.authelia-guide .doc-section:not(.setup-overview), .authelia-guide .setup-panel {
  padding: clamp(20px, 3vw, 30px); margin-block: 22px;
  border: 1px solid #303c40; border-radius: 12px;
  background: linear-gradient(145deg, #172023 0%, #101618 50%, #0b1012 100%);
  box-shadow: 0 8px 24px #00000024;
}
.authelia-guide .setup-overview { margin-block: 22px; }
.authelia-guide .setup-overview .setup-panel { margin: 0; }
.authelia-guide .doc-section > h2:first-child, .authelia-guide .setup-panel > h2:first-child { margin-top: 0; }
.authelia-guide .doc-section > :last-child, .authelia-guide .setup-panel > :last-child { margin-bottom: 0; }
.authelia-guide .setup-auth-choice {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: fit-content; padding: 12px 16px; border: 1px solid #3b464a; border-radius: 9px;
  background: #0d1315; color: #7ddc3a; line-height: 1.5; white-space: nowrap;
}
.authelia-guide .setup-auth-choice:has(input:checked) { border-color: #659d39; background: linear-gradient(120deg, #1b2919, #101718); }
.authelia-guide .setup-auth-choice input { position: absolute; opacity: 0; width: 22px; height: 22px; padding: 0; }
.authelia-guide .setup-check { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border: 1px solid #657176; border-radius: 5px; background: #080d0f; }
.authelia-guide .setup-check .material-symbols-rounded { visibility: hidden; font-size: 19px; color: #0b1012; }
.authelia-guide input:checked + .setup-check { background: #7ddc3a; border-color: #7ddc3a; }
.authelia-guide input:checked + .setup-check .material-symbols-rounded { visibility: visible; }
.authelia-guide input:focus-visible + .setup-check { outline: 2px solid #7ddc3a; outline-offset: 4px; }
.authelia-guide .setup-choice-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.authelia-guide .setup-proxy-field { flex: 1 1 260px; min-width: 0; }
.authelia-guide .setup-choice-controls .setup-select-shell { max-width: none; margin-top: 0; }
.authelia-guide .setup-choice-controls .setup-auth-choice { margin: 0; min-height: 42px; box-sizing: border-box; padding: 9px 14px; }
.authelia-guide .setup-choice-card #setup-advice { margin-top: 18px; }
.authelia-guide .setup-choice-card #setup-advice p { margin: 0; font-size: .9rem; }
.authelia-guide .setup-troubleshooting {
  margin-top: 26px; border: 1px solid #343b40; border-radius: 8px;
  background: linear-gradient(110deg, #252e21, #191d20 65%); overflow: hidden;
}
.authelia-guide .setup-troubleshooting summary { display: flex; align-items: center; gap: 18px; padding: 16px; list-style: none; font-size: .94rem; font-weight: 700; color: #7ddc3a; }
.authelia-guide .setup-troubleshooting summary::-webkit-details-marker { display: none; }
.authelia-guide .setup-troubleshooting summary .material-symbols-rounded { font-size: 23px; color: #7ddc3a; }
.authelia-guide .setup-troubleshooting .setup-disclosure { margin-left: auto; transition: transform .15s ease; }
.authelia-guide .setup-troubleshooting[open] .setup-disclosure { transform: rotate(180deg); }
.authelia-guide .setup-troubleshooting summary:hover { background: #7ddc3a0a; }
.authelia-guide .setup-troubleshooting summary:focus-visible { outline: 2px solid #7ddc3a; outline-offset: -4px; }
.authelia-guide .setup-troubleshooting ul { margin: 0 20px 18px 57px; padding: 0 0 0 18px; }
.authelia-guide .setup-troubleshooting li::marker, .authelia-guide .setup-troubleshooting strong { color: #7ddc3a; }
.authelia-guide .setup-troubleshooting li + li { margin-top: 9px; }
.authelia-guide .setup-references { margin-top: 22px; padding-top: 18px; border-top: 1px solid #303c40; font-size: .85rem; }
.authelia-guide .setup-references > div { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.authelia-guide .setup-compose { padding: 18px; margin-bottom: 24px; border: 1px solid #3b464a; border-radius: 9px; background: #101719; }
.authelia-guide .setup-compose > summary { font-weight: 700; }
.authelia-guide .setup-code-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #303b3e; border-radius: 7px 7px 0 0; background: #172023; color: #fff; }
.authelia-guide .setup-code-header + pre { margin-top: 0; border-top: 0; border-radius: 0 0 7px 7px; }
.authelia-guide .setup-compose-feedback:empty { display: none; }
.authelia-guide .doc-section :is(h3, h4) { color: #7ddc3a; }
.authelia-guide .setup-code-header [data-copy] { margin-bottom: 0; }
