/* One sliding rail, with contact, enrolment and placement sharing a panel column. */
.fl-quick-drawer {
  --fl-tab-width: 46px;
  position: fixed;
  z-index: 70;
  top: 82px;
  right: 0;
  display: grid;
  grid-template-columns: var(--fl-tab-width) minmax(292px, 348px);
  align-items: start;
  pointer-events: none;
  transform: translateX(calc(100% - var(--fl-tab-width)));
  transition: transform 220ms ease;
}
.fl-quick-drawer.is-open { transform: translateX(0); }
.fl-drawer-tabs {
  grid-area: 1 / 1;
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 16px;
  pointer-events: auto;
}
.fl-drawer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: var(--fl-tab-width);
  height: 128px;
  padding: 8px 0;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: #a84f18;
  box-shadow: 0 8px 26px #1e292633;
  color: #fff;
  cursor: pointer;
}
.fl-drawer-tab--enrollment { background: #f3c74f; color: #2e291d; }
.fl-drawer-tab--placement { background: #126aa3; }
.fl-drawer-tab:hover { filter: brightness(.92); }
.fl-drawer-tab.is-active { box-shadow: 0 0 0 3px #ffffffdb, 0 8px 26px #1e292633; }
.fl-quick-drawer :focus-visible { outline: 3px solid #126aa3; outline-offset: 3px; }
.fl-drawer-tab:focus-visible { outline-color: #fff; outline-offset: -5px; }
.fl-drawer-tab span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .76rem; font-weight: 800; line-height: 1; }
.fl-drawer-tab svg, .fl-drawer-close svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-drawer-panel {
  grid-area: 1 / 2;
  min-width: 0;
  max-height: calc(100dvh - 94px);
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #d8e5ee;
  border-radius: 0 0 0 8px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 18px 44px #1f293738;
  pointer-events: auto;
  scrollbar-width: thin;
}
.fl-drawer-panel[hidden] { display: none; }
.fl-drawer-panel--enrollment { border-top: 5px solid #f3c74f; }
.fl-drawer-panel--placement { border-top: 5px solid #126aa3; }
.fl-drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.fl-drawer-head h2 { margin: 0; font-size: 1.27rem; font-weight: 750; line-height: 1.23; }
.fl-drawer-head p { margin: 7px 0 0; color: #435463; line-height: 1.5; font-size: .92rem; }
.fl-drawer-close { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; cursor: pointer; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; }
.fl-drawer-close:hover { background: #eef6fa; }
.fl-enrollment-steps { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.fl-enrollment-steps li { display: flex; gap: 9px; font-size: .92rem; line-height: 1.4; }
.fl-enrollment-steps span { color: #176948; font-weight: 800; }
.fl-enrollment-action { display: block; padding: 12px 14px; border-radius: 6px; background: #93420f; color: #fff; text-align: center; text-decoration: none; font-weight: 750; }
.fl-enrollment-action:hover { background: #78340b; color: #fff; }
.fl-test-scale { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 9px 13px; border-radius: 7px; background: #e9f4fb; color: #105986; font-weight: 800; }
.fl-test-scale i { flex: 1; height: 2px; background: #8db4cc; }
.fl-test-duration { margin: 8px 0 12px; color: #435463; font-size: .85rem; }
.fl-drawer-panel h3 { margin: 0 0 7px; font-size: .95rem; font-weight: 750; }
.fl-test-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.fl-test-choices a { display: flex; align-items: center; box-sizing: border-box; min-height: 42px; height: 100%; padding: 6px 9px; border-radius: 6px; background: #eef6fa; color: #0a4c76; text-decoration: none; font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.fl-test-choices a:hover { background: #dceef8; text-decoration: underline; }
@media (max-width: 780px), (max-height: 520px) {
  .fl-quick-drawer {
    top: auto;
    bottom: env(safe-area-inset-bottom, 0px);
    right: 8px;
    width: min(390px, calc(100% - 16px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 46px auto;
    transform: translateY(calc(100% - 46px));
  }
  .fl-drawer-tabs { display: flex; justify-content: end; gap: 6px; margin-top: 0; }
  .fl-drawer-tab { flex-direction: row; width: auto; min-width: 0; height: 46px; padding: 0 9px; gap: 5px; border-radius: 8px 8px 0 0; }
  .fl-drawer-tab svg { width: 16px; height: 16px; }
  .fl-drawer-tab span { writing-mode: horizontal-tb; transform: none; white-space: normal; font-size: .74rem; line-height: 1.15; overflow-wrap: anywhere; }
  .fl-drawer-panel { grid-area: 2 / 1; max-height: calc(100dvh - 62px - env(safe-area-inset-bottom, 0px)); border-radius: 8px 0 0 0; padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { .fl-quick-drawer { transition: none; } }
