.itb-pre-booster-schedule {
  --blue: #062e71;
  --surface: #d5dce8;
  --line: #182438;
  --muted: #4b5870;
  --white: #fff;
  color: #151c28;
  font: 16px system-ui, sans-serif;
  line-height: 1.55;
}
.itb-pre-booster-schedule * { box-sizing: border-box; }
.itb-pre-booster-schedule a { color: var(--blue); }
.itb-pre-booster-schedule a:focus-visible { outline: 3px solid #a24a00; outline-offset: 3px; }
.itb-pre-booster-schedule .preview-shell { margin-block: 24px; }
.itb-pre-booster-schedule .preview { margin: 0 0 12px; font-size: .875rem; color: var(--muted); }
.itb-pre-booster-schedule .schedule { padding: 10px; background: var(--surface); border: 1px solid var(--blue); }
.itb-pre-booster-schedule .hero { padding: clamp(22px, 4vw, 48px) 16px; border-radius: 12px; color: var(--white);
  background: linear-gradient(130deg, #07275c, #114181); text-align: center; }
.itb-pre-booster-schedule #itb-schedule-title {
  margin: 0;
  color: #fff !important;
  font: bold clamp(1.55rem, 4vw, 2.5rem)/1.2 Georgia, serif;
}
.itb-pre-booster-schedule .subtitle { margin: 10px 0 0; font-size: 1.15rem; font-weight: 700; }
.itb-pre-booster-schedule .hero p { margin: 8px 0; }
.itb-pre-booster-schedule .hero-links, .itb-pre-booster-schedule .highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.itb-pre-booster-schedule .hero-links { margin-top: 16px; }
.itb-pre-booster-schedule .pill, .itb-pre-booster-schedule .itb-panel-link { display: inline-block; padding: 8px 13px; border-radius: 8px; font-weight: 700; }
.itb-pre-booster-schedule .pill { background: #ffcf68; color: #102b54; text-decoration: none; }
.itb-pre-booster-schedule .pill.register { background: #e5f7d4; color: #163c10; }
.itb-pre-booster-schedule .intro { text-align: center; }
.itb-pre-booster-schedule .highlights { list-style: none; margin: 16px 0; padding: 0; }
.itb-pre-booster-schedule .highlights li { border-radius: 20px; background: var(--white); color: var(--blue);
  font-weight: 700; padding: 5px 12px; }
.itb-pre-booster-schedule table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: Georgia, serif; }
.itb-pre-booster-schedule .date-col { width: 10%; }
.itb-pre-booster-schedule .time-col { width: 13.5%; }
.itb-pre-booster-schedule .syllabus-col { width: 25%; }
.itb-pre-booster-schedule .test-col { width: 6.5%; }
.itb-pre-booster-schedule .status-col { width: 45%; }
.itb-pre-booster-schedule th, .itb-pre-booster-schedule td { padding: 14px 8px; border: 1px solid var(--line); text-align: center;
  vertical-align: middle; overflow-wrap: anywhere; }
.itb-pre-booster-schedule thead th, .itb-pre-booster-schedule .phase th { background: var(--blue); color: var(--white); }
.itb-pre-booster-schedule .phase th { padding: 14px 10px; letter-spacing: .025em; }
.itb-pre-booster-schedule td ul { list-style: none; margin: 0; padding: 0; font-weight: 700; }
.itb-pre-booster-schedule td li + li { margin-top: 5px; }
.itb-pre-booster-schedule .status { font: 700 .95rem/1.65 system-ui, sans-serif; }
.itb-pre-booster-schedule .locked { color: var(--muted); }
.itb-pre-booster-schedule .track a, .itb-pre-booster-schedule .track .locked { display: inline-block; }
.itb-pre-booster-schedule .track + .track { margin-top: 12px; }
.itb-pre-booster-schedule .itb-panel-link { margin-top: 8px; background: var(--blue); color: var(--white) !important;
  text-decoration: none; text-transform: uppercase; font-size: .8rem; }
.itb-pre-booster-schedule .mobile-label { display: none; }
.itb-pre-booster-schedule .footer { padding: 16px; margin-top: 16px; border: 1px dashed var(--blue);
  background: #f1f4f9; text-align: center; border-radius: 8px; }
.itb-pre-booster-schedule .footer p { margin: 0 0 10px; }
@media (max-width: 991.98px) {
  .itb-pre-booster-schedule .schedule { padding: 8px; }
  .itb-pre-booster-schedule table, .itb-pre-booster-schedule tbody { display: block; }
  .itb-pre-booster-schedule colgroup, .itb-pre-booster-schedule thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
    clip-path: inset(50%); }
  .itb-pre-booster-schedule tbody + tbody { margin-top: 12px; }
  .itb-pre-booster-schedule .phase, .itb-pre-booster-schedule .phase th { display: block; }
  .itb-pre-booster-schedule .phase span { display: block; font-size: .85rem; }
  .itb-pre-booster-schedule .test-row { display: block; border: 1px solid var(--line); border-top: 0; }
  .itb-pre-booster-schedule .test-row + .test-row { margin-top: 8px; border-top: 1px solid var(--line); }
  .itb-pre-booster-schedule .test-row > * { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 5px 8px;
    width: 100%; padding: 8px; border: 0; text-align: start; }
  .itb-pre-booster-schedule .test-row > * + * { border-top: 1px solid #a8b2c3; }
  .itb-pre-booster-schedule .mobile-label { display: inline; font: 700 .8rem/1.6 system-ui, sans-serif; color: var(--blue); }
  .itb-pre-booster-schedule .test-row .status { display: block; }
  .itb-pre-booster-schedule .status .mobile-label { display: block; }
  .itb-pre-booster-schedule .track { display: flex; flex-direction: column; gap: 5px; }
  .itb-pre-booster-schedule .track a, .itb-pre-booster-schedule .track .locked { padding: 5px 7px; border-radius: 4px; background: #eff3fa; }
  .itb-pre-booster-schedule .track .separator { display: none; }
  .itb-pre-booster-schedule .itb-panel-link { text-align: center; width: 100%; }
}

/* Native resource pages */
.itb-resource-page, .itb-samples-page, .itb-eval-page {
  max-width: 1100px;
  margin: 24px auto 48px;
  padding: 0 18px;
  color: #151c28;
  font-family: system-ui, sans-serif;
}
.itb-resource-head, .itb-samples-head { margin-bottom: 20px; }
.itb-resource-back { display: inline-block; margin-bottom: 12px; color: #062e71; font-weight: 700; }
.itb-resource-page h1, .itb-samples-page h1, .itb-eval-page h1 { margin: 0 0 6px; color: #062e71; }
.itb-resource-head p, .itb-samples-head p, .itb-eval-context { margin: 0; color: #4b5870; }
.itb-resource-list { display: flex; flex-direction: column; gap: 10px; }
.itb-resource-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; background: #fff; border: 1px solid #d5dce8; border-radius: 10px;
}
.itb-resource-item.is-locked { background: #f4f6fa; }
.itb-resource-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.itb-resource-title { font-weight: 700; }
.itb-resource-track { font-size: 11px; font-weight: 700; color: #4b5870; background: #eef3fa; border-radius: 999px; padding: 3px 8px; }
.itb-resource-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.itb-resource-actions a { font-weight: 700; color: #062e71; }
.itb-resource-locked { color: #7b8794; font-size: 13px; font-weight: 700; }
.itb-resource-empty { color: #4b5870; }
.itb-sample-track { margin-top: 28px; }
.itb-sample-track h2 { color: #062e71; margin: 0 0 12px; }
.itb-sample-official {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; margin-bottom: 10px; background: #eef7f3; border: 1px solid #b9dccb; border-radius: 10px;
}
.itb-sample-kicker { display: block; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #147a3b; margin-bottom: 3px; }
.itb-sample-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.itb-sample-actions a { font-weight: 700; color: #062e71; }
.itb-sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.itb-sample-set { background: #fff; border: 1px solid #d5dce8; border-radius: 10px; padding: 13px 14px; }
.itb-sample-set h3 { margin: 0 0 8px; font-size: 15px; color: #062e71; }
.itb-sample-other { margin-top: 18px; background: #fff; border: 1px solid #d5dce8; border-radius: 10px; padding: 14px 16px; }
.itb-sample-other h3 { margin: 0 0 10px; color: #062e71; }
.itb-sample-other ul { list-style: none; margin: 0; padding: 0; }
.itb-sample-other li { display: flex; gap: 12px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid #eef2f7; }
.itb-sample-other li:last-child { border-bottom: 0; }
.itb-sample-other li span { flex: 1 1 300px; }
.itb-sample-other li a { font-weight: 700; color: #062e71; }
.itb-eval-card { max-width: 620px; background: #fff; border: 1px solid #d5dce8; border-radius: 12px; padding: 22px; margin-top: 18px; }
.itb-eval-price { font-size: 26px; font-weight: 800; color: #062e71; margin: 8px 0; }
.itb-eval-pay { display: inline-block; background: #062e71; color: #fff !important; font-weight: 700; padding: 11px 18px; border-radius: 8px; text-decoration: none; }
.itb-eval-note { margin: 14px 0 0; font-size: 13px; color: #4b5870; }
.itb-eval-locked { background: #f4f6fa; }
@media (max-width: 700px) {
  .itb-resource-page, .itb-samples-page, .itb-eval-page { margin-top: 16px; }
  .itb-resource-item, .itb-sample-official { flex-direction: column; align-items: flex-start; }
  .itb-resource-actions, .itb-sample-actions { width: 100%; }
}

/* The site-wide link colour is !important; an ID-scoped override keeps the panel CTA readable. */
#page .itb-pre-booster-schedule a.itb-panel-link { color: #fff !important; }

#page .itb-eval-pay { color: #fff !important; }
.itb-locked-paper {
    display: inline-block;
}

.itb-locked-paper summary {
    color: #243e64;
    cursor: pointer;
}

.itb-locked-copy p,
.itb-paper-dialog-message p {
    margin: .55rem 0;
}

.itb-paper-dialog {
    width: min(64rem, calc(100% - 2rem));
    max-height: 92vh;
    max-height: 92dvh;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: .75rem;
    color: #172a46;
    background: #fff;
    box-shadow: 0 12px 48px #172a4633;
}

.itb-paper-dialog::backdrop {
    background: #0b1f3a99;
}

.itb-paper-dialog-header,
.itb-paper-dialog-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem 1rem;
}

.itb-paper-dialog-header {
    justify-content: space-between;
    border-bottom: 1px solid #dce4ee;
    background: #f5f7fa;
}

.itb-paper-dialog-header h2 {
    margin: 0;
    font-size: 1rem;
}

.itb-paper-dialog-header button {
    padding: .25rem .65rem;
    border: 1px solid #94a3b8;
    border-radius: .25rem;
    color: inherit;
    background: #fff;
}

.itb-paper-dialog-message {
    padding: .75rem 1rem;
}

.itb-paper-buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

#page .itb-paper-buy-actions .itb-paper-buy {
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: #ffba46;
    color: #17213a !important;
    font-weight: 700;
}

#page .itb-paper-buy-actions .itb-paper-buy:hover {
    background: #ffcb72;
    text-decoration: underline;
}

.itb-paper-frame {
    display: block;
    width: 100%;
    height: 70vh;
    height: 70dvh;
    border: 0;
    background: #edf1f5;
}

.itb-pre-booster-schedule .pill.registered { background: #e5f7d4; color: #163c10; border: 1px solid #b9dccb; }

/* Pre-Booster cart and checkout */
.itb-cart-page, .itb-checkout-page {
    max-width: 1100px;
    margin: 24px auto 48px;
    padding: 0 18px;
    color: #151c28;
    font-family: system-ui, sans-serif;
}
.itb-cart-page h1, .itb-checkout-page h1 { margin: 0 0 14px; color: #062e71; }
.itb-cart-panel, .itb-checkout-items {
    margin: 18px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #d5dce8;
    border-radius: 10px;
}
.itb-cart-panel h2, .itb-checkout-items h2 { margin: 0 0 12px; color: #062e71; font-size: 1.1rem; }
.itb-cart-items { display: flex; flex-direction: column; gap: 8px; }
.itb-cart-item, .itb-checkout-item {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f9fbfd;
}
.itb-cart-item-copy, .itb-checkout-copy { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.itb-cart-track { font-size: 11px; font-weight: 700; color: #4b5870; background: #eef3fa; border-radius: 999px; padding: 3px 8px; }
.itb-cart-price { font-weight: 800; color: #062e71; }
.itb-cart-remove, .itb-cart-add { margin: 0; }
.itb-cart-total {
    display: flex; justify-content: flex-end; align-items: center; gap: 18px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid #d5dce8;
    font-size: 1.05rem;
}
.itb-cart-total strong { color: #062e71; font-size: 1.25rem; }
.itb-cart-checkout, .itb-cart-signin { margin-top: 14px; }
.itb-cart-signin p { margin: 0 0 8px; }
.itb-cart-note { color: #5b6573; font-size: .9rem; }
.itb-cart-pending {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 16px 0; padding: 12px 14px; background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 8px;
}
.itb-cart-catalogue { display: flex; flex-direction: column; gap: 10px; }
.itb-cart-group, .itb-cart-type { border: 1px solid #d5dce8; border-radius: 8px; background: #f9fbfd; }
.itb-cart-group > summary, .itb-cart-type > summary {
    padding: 11px 14px; cursor: pointer; font-weight: 700; color: #062e71;
}
.itb-cart-type { margin: 8px; background: #fff; }
.itb-cart-type > summary { font-size: .95rem; }
.itb-cart-type > summary span { float: right; color: #4b5870; font-weight: 600; }
.itb-cart-type-items { padding: 0 12px 10px; }
.itb-cart-catalogue-item {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 0; border-bottom: 1px solid #eef2f7;
}
.itb-cart-catalogue-item:last-child { border-bottom: 0; }
.itb-cart-catalogue-copy { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.itb-cart-incart { font-size: 12px; font-weight: 700; color: #147a3b; }
.itb-checkout-status { font-weight: 600; color: #243e64; }
.itb-checkout-pay { margin: 18px 0; }
.itb-checkout-success { color: #147a3b; font-weight: 700; }
.itb-checkout-cancel { margin: 14px 0; }
@media (max-width: 700px) {
    .itb-cart-page, .itb-checkout-page { margin-top: 16px; padding: 0 12px; }
    .itb-cart-item, .itb-checkout-item { align-items: flex-start; }
    .itb-cart-total { justify-content: space-between; }
}


/* Dashboard Pre-Booster card */
.itb-prebooster-card { border: 1px solid #d5dce8; border-radius: 16px; }
.itb-prebooster-card .itb-prebooster-intro { margin: 0 0 12px; color: #5b6573; font-size: .92rem; }
.itb-prebooster-links { display: flex; flex-direction: column; gap: 10px; }
.itb-prebooster-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 12px; background: #f8fbff; border: 1px solid #e2e8f0; border-radius: 10px; }
.itb-prebooster-copy { display: flex; flex-direction: column; gap: 2px; color: #151c28; }
.itb-prebooster-copy strong { color: #062e71; }
.itb-prebooster-copy span { color: #5b6573; font-size: .88rem; }
.itb-prebooster-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.itb-prebooster-all { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 700; }
@media (max-width: 575.98px) {
    .itb-prebooster-row { align-items: flex-start; }
    .itb-prebooster-actions { width: 100%; }
}

/* 2026-12-01: registered badge, golden dialog header, green close and blue PDF action */
.itb-pre-booster-schedule .pill.registered {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 12px 20px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #09B996 !important;
    color: #062e71 !important;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .16);
}
.itb-pre-booster-schedule .pill.registered .itb-registered-check {
    font-size: 1.15em;
    line-height: 1;
}

#page .itb-paper-dialog-header,
.itb-paper-dialog-header {
    background: #FFB236 !important;
    border-bottom: 1px solid #d99a2b !important;
    color: #151c28 !important;
}
#page .itb-paper-dialog-header h2,
.itb-paper-dialog-header h2 {
    color: #000 !important;
    font-size: 1.1rem;
    font-weight: 800;
}
#page .itb-paper-dialog-header button,
.itb-paper-dialog-header button {
    min-width: 76px;
    min-height: 44px;
    padding: .45rem .9rem;
    border: 1px solid #067f68;
    border-radius: .45rem;
    background: #09B996 !important;
    color: #000 !important;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}
#page .itb-paper-dialog-header button:hover,
.itb-paper-dialog-header button:hover {
    background: #07a184 !important;
}
#page .itb-paper-dialog-header button:focus-visible,
.itb-paper-dialog-header button:focus-visible {
    outline: 3px solid #006DD5;
    outline-offset: 2px;
}

#page .itb-paper-dialog-actions .itb-paper-open,
.itb-paper-dialog-actions .itb-paper-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid #0057aa;
    border-radius: .5rem;
    background: #006DD5 !important;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
}
#page .itb-paper-dialog-actions .itb-paper-open:hover,
#page .itb-paper-dialog-actions .itb-paper-open:focus,
.itb-paper-dialog-actions .itb-paper-open:hover,
.itb-paper-dialog-actions .itb-paper-open:focus {
    background: #0057aa !important;
    color: #fff !important;
    text-decoration: none;
}
#page .itb-paper-dialog-actions .itb-paper-download,
.itb-paper-dialog-actions .itb-paper-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid #006DD5;
    border-radius: .5rem;
    background: #fff !important;
    color: #006DD5 !important;
    font-weight: 800;
    text-decoration: none;
}

#page .itb-paper-buy-actions .itb-paper-buy,
.itb-paper-buy-actions .itb-paper-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    border: 1px solid #067f68;
    border-radius: .5rem;
    background: #09B996 !important;
    color: #062e71 !important;
    font-weight: 800;
    text-decoration: none;
}
#page .itb-paper-buy-actions .itb-paper-buy:hover,
#page .itb-paper-buy-actions .itb-paper-buy:focus,
.itb-paper-buy-actions .itb-paper-buy:hover,
.itb-paper-buy-actions .itb-paper-buy:focus {
    background: #07a184 !important;
    text-decoration: none;
}

/* The theme sample 2 rule is more specific; keep the registered badge green. */
#page .itb-pre-booster-schedule .pill.registered {
    background: #09B996 !important;
    color: #062e71 !important;
    border: 2px solid #fff !important;
}

/* Keep the green Close control at the top-right when the dialog title wraps. */
#page .itb-paper-dialog-header,
.itb-paper-dialog-header {
    flex-wrap: nowrap;
    align-items: flex-start;
}
#page .itb-paper-dialog-header h2,
.itb-paper-dialog-header h2 {
    flex: 1 1 auto;
    min-width: 0;
}
#page .itb-paper-dialog-header form,
.itb-paper-dialog-header form {
    flex: 0 0 auto;
}

/* Uniform hero and footer actions */
.itb-pre-booster-schedule .hero-links {
    align-items: center;
}
.itb-pre-booster-schedule .hero-links .pill,
.itb-pre-booster-schedule .footer-actions .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.itb-pre-booster-schedule .hero-links .pill.registered {
    padding: 10px 16px;
    font-size: 1rem;
    border: 2px solid #fff;
    background: #09B996 !important;
    color: #062e71 !important;
}
.itb-pre-booster-schedule .footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid #d5dce8;
    border-radius: 10px;
    background: #f7faff;
    text-align: center;
}
@media (max-width: 575.98px) {
    .itb-pre-booster-schedule .footer-actions .pill {
        width: 100%;
    }
}

/* Dialog header: true center on wide screens, safe centered title on smaller screens. */
@media (min-width: 992px) {
    #page .itb-paper-dialog-header,
    .itb-paper-dialog-header {
        display: grid !important;
        grid-template-columns: minmax(77px, 1fr) minmax(0, auto) minmax(77px, 1fr) !important;
        align-items: center !important;
        column-gap: .75rem !important;
    }
    #page .itb-paper-dialog-header h2,
    .itb-paper-dialog-header h2 {
        grid-column: 2 !important;
        text-align: center !important;
        margin: 0 !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }
    #page .itb-paper-dialog-header form,
    .itb-paper-dialog-header form {
        grid-column: 3 !important;
        justify-self: end !important;
        margin: 0 !important;
    }
}
@media (max-width: 991.98px) {
    #page .itb-paper-dialog-header,
    .itb-paper-dialog-header {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: .75rem !important;
    }
    #page .itb-paper-dialog-header h2,
    .itb-paper-dialog-header h2 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        text-align: center !important;
        margin: 0 !important;
        overflow-wrap: anywhere !important;
    }
    #page .itb-paper-dialog-header form,
    .itb-paper-dialog-header form {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
}

/* Match the gap above and below the course-level schedule link. */
#itb-course-schedule {
    margin-bottom: 0 !important;
}
