#fl-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
  color: #212b36;
  font:
    600 13px/1 'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
  margin: 0 10px 0 0;
  flex: none;
}
#fl-plan-btn:hover {
  border-color: #6a309b;
  color: #6a309b;
}
#fl-plan-btn .fl-ic {
  display: inline-flex;
  color: #6a309b;
}
#fl-plan-btn .fl-lab {
  font-weight: 500;
  color: #637381;
}
#fl-plan-btn .fl-chev {
  font-size: 15px;
  line-height: 1;
  margin-top: -7px;
  color: #637381;
}
#fl-plan-btn.fl-floating {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
@media (max-width: 640px) {
  #fl-plan-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
    margin: 0 6px;
    border-radius: 8px;
  }
  #fl-plan-btn .fl-lab,
  #fl-plan-btn .fl-ic {
    display: none;
  }
}
#fl-plan-panel {
  position: fixed;
  z-index: 100001;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 10px;
  color: #212b36;
  font-family:
    'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  box-sizing: border-box;
}
#fl-plan-panel .fl-share {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid #e3e6ee;
  border-radius: 10px;
  background: #f7f8fb;
}
#fl-plan-panel .fl-sl {
  font-size: 12px;
  color: #5b6474;
  margin-bottom: 6px;
}
#fl-plan-panel .fl-sl b {
  color: #1f2430;
}
#fl-plan-panel .fl-sr {
  display: flex;
  gap: 6px;
}
#fl-plan-panel .fl-sr input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d5d9e2;
  border-radius: 8px;
  background: #fff;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #1f2430;
}
#fl-plan-panel .fl-copy {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d08a4e;
  border-radius: 8px;
  background: #ffe6c7;
  color: #7a3610;
  font: 700 12px/1 'Open Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
#fl-plan-panel .fl-copy:hover {
  background: #ffd9a8;
}
#fl-plan-panel .fl-copy.fl-ok {
  background: #d9f5e3;
  border-color: #4caf7d;
  color: #1b6b43;
}
#fl-plan-panel .fl-pt {
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 8px 0;
}
#fl-plan-panel .fl-ps {
  font-size: 12px;
  color: #637381;
  padding: 2px 8px 8px;
  border-bottom: 1px solid #f1f2f4;
  margin-bottom: 6px;
}
#fl-plan-panel button[data-plan] {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
#fl-plan-panel button[data-plan]:hover {
  background: #f6f2fa;
}
#fl-plan-panel .fl-radio {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c4cdd5;
  border-radius: 50%;
  margin-top: 3px;
  position: relative;
  box-sizing: border-box;
}
#fl-plan-panel button[aria-checked='true'] .fl-radio {
  border-color: #6a309b;
  background: #6a309b;
}
#fl-plan-panel button[aria-checked='true'] .fl-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
#fl-plan-panel .fl-name {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
}
#fl-plan-panel .fl-name em {
  font-style: normal;
  color: #6a309b;
  font-weight: 600;
}
#fl-plan-panel .fl-desc {
  display: block;
  font-size: 12px;
  color: #637381;
  line-height: 1.45;
  margin-top: 2px;
}
#fl-plan-panel .fl-cmp {
  display: block;
  padding: 10px 8px 4px;
  border-top: 1px solid #f1f2f4;
  margin-top: 6px;
  font-size: 13px;
  color: #212b36;
  text-decoration: none;
  font-weight: 600;
}
#fl-branch-panel {
  position: fixed;
  z-index: 100001;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 10px;
  color: #212b36;
  font-family:
    'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  box-sizing: border-box;
}
#fl-branch-panel .fl-pt {
  font-weight: 700;
  font-size: 13.5px;
  padding: 4px 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
#fl-branch-panel .fl-cnt {
  font-weight: 500;
  font-size: 11.5px;
  color: #637381;
  white-space: nowrap;
}
#fl-branch-panel .fl-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  margin: 0 0 6px;
  outline: 0;
}
#fl-branch-panel .fl-search:focus {
  border-color: #6a309b;
}
#fl-branch-panel .fl-blist {
  max-height: min(52vh, 380px);
  overflow: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
#fl-branch-panel [role='option'] {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  align-items: center;
  column-gap: 8px;
}
#fl-branch-panel [role='option']:hover {
  background: #f6f2fa;
}
#fl-branch-panel [role='option'][aria-selected='true'] .fl-bname {
  color: #6a309b;
}
#fl-branch-panel .fl-bname {
  font-weight: 700;
  font-size: 13.5px;
  grid-column: 1;
}
#fl-branch-panel .fl-bname i {
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  color: #fff;
  background: #6a309b;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}
#fl-branch-panel .fl-bmeta {
  font-size: 12px;
  color: #637381;
  grid-column: 1;
}
#fl-branch-panel .fl-check {
  grid-column: 2;
  grid-row: 1/3;
  color: #6a309b;
  font-weight: 700;
}
#fl-branch-panel .fl-bnote {
  font-size: 11.5px;
  color: #637381;
  padding: 8px 8px 2px;
  border-top: 1px solid #f1f2f4;
  margin-top: 6px;
}
#fl-toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 10px);
  z-index: 100002;
  background: #212b36;
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font:
    600 13px/1.3 'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
#fl-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
#fl-plan-gate {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(246, 247, 249, 0.88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#fl-plan-gate .fl-gate-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(106, 48, 155, 0.18);
  max-width: 460px;
  width: 100%;
  padding: 30px 28px;
  text-align: center;
  font-family:
    'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  box-sizing: border-box;
}
#fl-plan-gate .fl-gate-ic {
  font-size: 36px;
}
#fl-plan-gate h2 {
  margin: 8px 0 6px;
  font-size: 20px;
  color: #1a1320;
  font-weight: 700;
}
#fl-plan-gate p {
  margin: 0 0 18px;
  color: #637381;
  font-size: 14px;
  line-height: 1.55;
}
#fl-plan-gate .fl-gate-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
#fl-plan-gate .fl-gate-btns button {
  background: #6a309b;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font:
    700 14px/1 'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  cursor: pointer;
}
#fl-plan-gate .fl-gate-btns a {
  display: inline-block;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 10px 16px;
  color: #212b36;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
#fl-plan-panel .fl-reset {
  font-weight: 500;
  color: #637381;
  border-top: 0;
  padding-top: 2px;
}
/* Nút Xem giao diện học sinh: cam, nổi, kiểu nút game 2D (viền đậm, cạnh dưới 3D, ánh sáng trên). */
#fl-stu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 12px;
  border: 2px solid #d08a4e;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd9a8 0%, #ffbd78 55%, #ffab5e 100%);
  color: #7a3610;
  font:
    800 13.5px/1 'Open Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  margin: 0 8px 0 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    0 3px 0 #d99a60,
    0 4px 10px rgba(255, 170, 94, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    filter 0.12s;
}
#fl-stu-btn::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 3px;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none;
}
#fl-stu-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 4px 0 #d99a60,
    0 8px 14px rgba(255, 170, 94, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
#fl-stu-btn:active,
#fl-stu-btn[aria-expanded='true'] {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #d99a60,
    0 2px 5px rgba(255, 170, 94, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
#fl-stu-btn:focus-visible {
  outline: 3px solid #ffe3bf;
  outline-offset: 2px;
}
#fl-stu-btn .fl-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #f08a3c;
  border: 2px solid #d08a4e;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
#fl-stu-btn .fl-ic svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}
#fl-stu-btn .fl-chev {
  font-size: 15px;
  line-height: 1;
  margin-top: -6px;
  color: #7a3610;
  opacity: 0.8;
}
#fl-stu-btn .fl-short {
  display: none;
}
#fl-stu-btn.fl-floating {
  position: fixed;
  top: 12px;
  right: 150px;
  z-index: 100000;
}
@media (max-width: 1280px) {
  #fl-stu-btn .fl-long {
    display: none;
  }
  #fl-stu-btn .fl-short {
    display: inline;
  }
}
@media (max-width: 640px) {
  #fl-stu-btn {
    height: 32px;
    padding: 0 10px 0 8px;
    font-size: 12px;
    margin: 0 0 0 6px;
    border-radius: 10px;
    box-shadow: 0 3px 0 #b8420e;
  }
  #fl-stu-btn .fl-short,
  #fl-stu-btn .fl-chev {
    display: none;
  }
}
#fl-stu-panel {
  position: fixed;
  z-index: 100001;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 10px;
  color: #212b36;
  font-family:
    'Open Sans',
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  box-sizing: border-box;
}
#fl-stu-panel .fl-pt {
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 8px 0;
}
#fl-stu-panel .fl-ps {
  font-size: 12px;
  color: #637381;
  padding: 2px 8px 8px;
  border-bottom: 1px solid #f1f2f4;
  margin-bottom: 6px;
  line-height: 1.45;
}
#fl-stu-panel a[data-stu] {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3px;
  padding: 9px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
#fl-stu-panel a[data-stu]:hover,
#fl-stu-panel a[data-stu]:focus-visible {
  background: #f6f2fa;
  outline: 0;
}
#fl-stu-panel .fl-lv {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
#fl-stu-panel .fl-lv i {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}
#fl-stu-panel .fl-sname {
  font-weight: 700;
  font-size: 13.5px;
}
#fl-stu-panel .fl-sdesc {
  font-size: 12px;
  color: #637381;
  line-height: 1.45;
}
#fl-stu-panel .fl-shost {
  font-size: 11.5px;
  color: #6a309b;
  font-weight: 600;
}
