/*
 * CTEasySite customer-facing UI layer (docs/ui-redesign/design-system.md).
 *
 * Loaded last on every public/member page. Everything is either a --ct-* token
 * or a .ct-* class, so legacy page CSS never matches it and admin never loads it.
 * Element-level base rules apply only under body.ct-ui (pages already migrated);
 * header, footer and components work on legacy pages too.
 */

:root {
  --ct-primary: #256af4;
  --ct-primary-hover: #1d58d6;
  --ct-primary-50: #f2f6ff;
  --ct-primary-100: #e6eefe;
  --ct-primary-200: #c9dafc;
  --ct-secondary: #212529;
  --ct-ink: #0b1b3f;
  --ct-text: #334155;
  --ct-muted: #64748b;
  --ct-border: #e3eaf5;
  --ct-surface: #fff;
  --ct-bg: #f7faff;
  --ct-footer: #0b1a3a;
  --ct-footer-text: #c8d3ea;
  --ct-success: #16a34a;
  --ct-success-bg: #e8f7ee;
  --ct-warning: #b45309;
  --ct-warning-bg: #fff4db;
  --ct-danger: #dc2626;
  --ct-danger-bg: #fdecec;
  --ct-highlight: #facc15;

  --ct-accent-blue: #2f6bf5;
  --ct-accent-green: #18a957;
  --ct-accent-purple: #7c5cf0;
  --ct-accent-orange: #f59324;
  --ct-accent-pink: #ec4f86;

  --ct-gradient: linear-gradient(100deg, #2f7bff, #1f5fe6);

  --ct-font: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  --ct-fs-display: 48px;
  --ct-fs-h1: 36px;
  --ct-fs-h2: 28px;
  --ct-fs-h3: 20px;
  --ct-fs-lead: 18px;
  --ct-fs-body: 16px;
  --ct-fs-sm: 14px;
  --ct-fs-xs: 12px;
  --ct-fs-price: 36px;

  --ct-space-1: 4px;
  --ct-space-2: 8px;
  --ct-space-3: 12px;
  --ct-space-4: 16px;
  --ct-space-5: 20px;
  --ct-space-6: 24px;
  --ct-space-7: 32px;
  --ct-space-8: 40px;
  --ct-space-9: 56px;
  --ct-space-10: 80px;
  --ct-section-y: 56px;
  --ct-gutter: 24px;
  --ct-container: 1200px;
  --ct-header-h: 72px;

  --ct-radius-sm: 8px;
  --ct-radius-md: 12px;
  --ct-radius-lg: 16px;
  --ct-radius-xl: 24px;
  --ct-radius-pill: 999px;

  --ct-shadow-sm: 0 1px 2px rgba(15, 40, 90, .06);
  --ct-shadow-md: 0 6px 20px rgba(37, 106, 244, .08);
  --ct-shadow-lg: 0 16px 40px rgba(37, 106, 244, .12);

  --ct-ease: cubic-bezier(.2, .7, .2, 1);
  --ct-focus: 0 0 0 3px var(--ct-primary-200);
}

@media (max-width: 767px) {
  :root {
    --ct-fs-display: 32px;
    --ct-fs-h1: 28px;
    --ct-fs-h2: 22px;
    --ct-fs-h3: 18px;
    --ct-fs-lead: 16px;
    --ct-fs-price: 30px;
    --ct-section-y: 40px;
    --ct-gutter: 16px;
    --ct-header-h: 64px;
  }
}

/* ---------- Base (migrated pages only) ---------- */

body.ct-ui {
  margin: 0;
  background: var(--ct-bg);
  color: var(--ct-text);
  font-family: var(--ct-font);
  font-size: var(--ct-fs-body);
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* :where() keeps these at element specificity so every .ct-* class wins. */
:where(.ct-ui) *,
:where(.ct-ui) *::before,
:where(.ct-ui) *::after { box-sizing: border-box; }

:where(.ct-ui) :where(h1, h2, h3, h4) {
  margin: 0;
  color: var(--ct-ink);
  font-family: var(--ct-font);
  letter-spacing: 0;
}

:where(.ct-ui) p { margin: 0; }
:where(.ct-ui) img { max-width: 100%; height: auto; }
:where(.ct-ui) a { color: var(--ct-primary); }
.ct-ui [hidden] { display: none !important; }

.ct-ui .scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-pill);
  background: var(--ct-surface);
  color: var(--ct-primary);
  box-shadow: var(--ct-shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ct-ease);
}
.ct-ui .scroll-top-btn.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Shared primitives (all pages) ---------- */

.ct-container {
  width: 100%;
  max-width: calc(var(--ct-container) + var(--ct-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--ct-gutter);
}

.ct-section { padding-block: var(--ct-section-y); }
.ct-section + .ct-section { padding-top: 0; }

.ct-section-head {
  max-width: 720px;
  margin: 0 auto var(--ct-space-6);
  text-align: center;
}
.ct-section-head h2 { font-size: var(--ct-fs-h2); font-weight: 700; line-height: 1.3; }
.ct-section-head p { margin-top: var(--ct-space-2); color: var(--ct-muted); }
.ct-section-head--start { margin-inline: 0; text-align: left; }
.ct-section-foot { margin-top: var(--ct-space-6); }
.ct-section-note { margin-top: var(--ct-space-5) !important; color: var(--ct-muted); font-size: var(--ct-fs-sm); text-align: center; }
.ct-narrow { max-width: calc(840px + var(--ct-gutter) * 2); }

.ct-hl { color: var(--ct-primary); }

.ct-icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.ct-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ct-skip {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  border: 1px solid var(--ct-primary);
  border-radius: var(--ct-radius-sm);
  background: var(--ct-surface);
  color: var(--ct-primary);
  font: 600 var(--ct-fs-sm)/1.4 var(--ct-font);
  text-decoration: none;
  transform: translateY(-200%);
}
.ct-skip:focus { transform: none; }

:where(.ct-header, .ct-footer, .ct-ui) :focus-visible {
  outline: 3px solid var(--ct-primary-200);
  outline-offset: 2px;
  border-radius: var(--ct-radius-sm);
}

/* ---------- Header ---------- */

.ct-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--ct-surface);
  border-bottom: 1px solid var(--ct-border);
  font-family: var(--ct-font);
  line-height: 1.4;
}
.ct-header * { box-sizing: border-box; }

.ct-header__bar {
  display: flex;
  align-items: center;
  gap: var(--ct-space-6);
  min-height: var(--ct-header-h);
}

.ct-header__brand {
  flex: none;
  display: block;
  width: 168px;
  height: 46px;
  overflow: hidden;
}
.ct-header__brand img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -14px;
}

.ct-header__nav { flex: 1; min-width: 0; }

.ct-header__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ct-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ct-ink);
  font: 600 15px/1.4 var(--ct-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ct-ease);
}
.ct-header__link::-webkit-details-marker { display: none; }
.ct-header__link:hover { color: var(--ct-primary); }
.ct-header__link.is-active { color: var(--ct-primary); }
.ct-header__link.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ct-primary);
}
.ct-menu[open] > .ct-header__link .ct-icon { transform: rotate(180deg); }
.ct-header__link .ct-icon { transition: transform 160ms var(--ct-ease); }

.ct-header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--ct-space-2);
}

.ct-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--ct-radius-pill);
  background: none;
  color: var(--ct-ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms var(--ct-ease), color 160ms var(--ct-ease);
}
.ct-icon-btn::-webkit-details-marker { display: none; }
.ct-icon-btn:hover,
.ct-icon-btn.is-active { background: var(--ct-primary-50); color: var(--ct-primary); }

.ct-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--ct-surface);
  border-radius: var(--ct-radius-pill);
  background: var(--ct-primary);
  color: #fff;
  font: 700 10px/14px var(--ct-font);
  text-align: center;
}

/* Disclosure menus: native <details>, ct-ui.js adds outside-click / Escape. */
.ct-menu { position: relative; }
.ct-menu > summary { list-style: none; }
.ct-menu > summary::-webkit-details-marker { display: none; }

.ct-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: max-content;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 32px));
  padding: var(--ct-space-2);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-lg);
}
.ct-menu__panel--end { right: 0; left: auto; }

.ct-menu__head {
  padding: 8px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ct-border);
}
.ct-menu__head strong { display: block; color: var(--ct-ink); font-size: var(--ct-fs-sm); }
.ct-menu__head small { display: block; color: var(--ct-muted); font-size: var(--ct-fs-xs); }

.ct-menu__list { margin: 0; padding: 0; list-style: none; }
.ct-menu__list + .ct-menu__list { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ct-border); }

.ct-menu__item {
  display: flex;
  align-items: center;
  gap: var(--ct-space-3);
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--ct-radius-sm);
  color: var(--ct-ink);
  font-size: var(--ct-fs-sm);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.ct-menu__item:hover,
.ct-menu__item.is-active { background: var(--ct-primary-50); color: var(--ct-primary); }
.ct-menu__item small { display: block; color: var(--ct-muted); font-size: var(--ct-fs-xs); font-weight: 400; }
.ct-menu__item .ct-tile { width: 34px; height: 34px; border-radius: 10px; }
.ct-menu__item--danger,
.ct-menu__item--danger:hover { color: var(--ct-danger); }
.ct-menu__item--danger:hover { background: var(--ct-danger-bg); }

.ct-search__panel { width: min(380px, calc(100vw - 32px)); padding: var(--ct-space-4); }
.ct-search__panel label { display: block; margin-bottom: var(--ct-space-2); color: var(--ct-ink); font-size: var(--ct-fs-sm); font-weight: 600; }
.ct-search__row { display: flex; gap: var(--ct-space-2); }
.ct-search__row .ct-input { min-width: 0; }

.ct-member__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--ct-space-2);
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-pill);
  background: var(--ct-surface);
  color: var(--ct-ink);
  font: 600 var(--ct-fs-sm)/1.2 var(--ct-font);
  cursor: pointer;
}
.ct-member__toggle:hover { border-color: var(--ct-primary-200); }
.ct-member__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ct-primary-100);
  color: var(--ct-primary);
}
.ct-member__avatar .ct-count { top: -4px; right: -6px; }

.ct-header .ct-header__toggle { display: none; }
.ct-header__toggle-close,
.ct-header.is-open .ct-header__toggle-open { display: none; }
.ct-header.is-open .ct-header__toggle-close { display: inline-block; }
.ct-header__drawer-actions { display: none; }

@media (max-width: 1199px) {
  .ct-header__bar { gap: var(--ct-space-4); }
  .ct-header__link { padding-inline: 8px; font-size: 14px; }
  .ct-header__link.is-active::after { right: 8px; left: 8px; }
}

@media (max-width: 1023px) {
  .ct-header__bar { flex-wrap: wrap; gap: var(--ct-space-2); }
  .ct-header__brand { width: 150px; height: 42px; }
  .ct-header__brand img { margin-top: -13px; }
  .ct-header__actions { margin-left: auto; }
  .ct-header .ct-header__toggle { display: inline-grid; }
  .ct-header .ct-header__guest-btn { display: none; }

  /* Without JS the menu stays in the flow; with JS it is a toggled sheet. */
  .ct-header__nav { order: 3; flex-basis: 100%; padding-bottom: var(--ct-space-4); }
  .ct-js .ct-header__nav { display: none; }
  .ct-js .ct-header.is-open .ct-header__nav {
    display: block;
    max-height: calc(100dvh - var(--ct-header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ct-header__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .ct-header__links > li { border-bottom: 1px solid var(--ct-border); }
  .ct-header__link { justify-content: space-between; width: 100%; min-height: 52px; padding: 0 4px; font-size: 16px; }
  .ct-header__link.is-active::after { display: none; }
  .ct-menu--nav > .ct-menu__panel {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-bottom: var(--ct-space-2);
    padding: 4px;
    border: 0;
    background: var(--ct-primary-50);
    box-shadow: none;
  }

  .ct-header__drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ct-space-3);
    padding-top: var(--ct-space-4);
  }
}

@media (max-width: 479px) {
  .ct-header__brand { width: 132px; height: 38px; }
  .ct-header__brand img { margin-top: -11px; }
  .ct-header__actions { gap: 0; }
  .ct-member__label { display: none; }
  .ct-member__toggle { padding-right: 6px; }
  .ct-header__drawer-actions { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.ct-footer {
  margin-top: 0;
  padding: var(--ct-space-9) 0 0;
  background: var(--ct-footer);
  color: var(--ct-footer-text);
  font-family: var(--ct-font);
  font-size: var(--ct-fs-sm);
  line-height: 1.6;
}
.ct-footer * { box-sizing: border-box; }

.ct-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: var(--ct-space-7);
  padding-bottom: var(--ct-space-8);
}

.ct-footer__logo {
  display: block;
  width: 190px;
}
.ct-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.ct-footer__qr { margin: var(--ct-space-5, 20px) 0 0; }
.ct-footer__qr img { display: block; width: 112px; height: 112px; padding: 6px; border-radius: 12px; background: #fff; }
.ct-footer__qr figcaption { margin-top: 8px; color: var(--ct-footer-text); font-size: var(--ct-fs-xs, 12px); }

.ct-footer__blurb { max-width: 300px; margin: var(--ct-space-4) 0; color: var(--ct-footer-text); }

.ct-footer__socials { display: flex; flex-wrap: wrap; gap: var(--ct-space-2); }
.ct-footer__social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ct-radius-sm);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color 160ms var(--ct-ease);
}
.ct-footer__social:hover { background: var(--ct-primary); color: #fff; }

.ct-footer__title {
  margin: 0 0 var(--ct-space-4);
  color: #fff;
  font: 700 15px/1.4 var(--ct-font);
}

.ct-footer__links { margin: 0; padding: 0; list-style: none; }
.ct-footer__links li + li { margin-top: var(--ct-space-2); }
.ct-footer__links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 24px;
  color: var(--ct-footer-text);
  text-decoration: none;
}
.ct-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ct-footer__links .ct-icon { margin-top: 3px; opacity: .6; }

.ct-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ct-space-3) var(--ct-space-6);
  padding-block: var(--ct-space-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}
.ct-footer__bottom p { margin: 0; }
.ct-footer__policy { display: flex; flex-wrap: wrap; gap: var(--ct-space-2) var(--ct-space-5); }
.ct-footer__policy a { color: var(--ct-footer-text); text-decoration: none; }
.ct-footer__policy a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1199px) {
  .ct-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--ct-space-5); }
  .ct-footer__blurb { margin: 0; max-width: 520px; }
}
@media (max-width: 767px) {
  .ct-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-footer__brand { display: block; }
  .ct-footer__blurb { margin: var(--ct-space-4) 0; }
}
@media (max-width: 479px) {
  .ct-footer { padding-top: var(--ct-space-8); }
  .ct-footer__grid { grid-template-columns: 1fr; gap: var(--ct-space-6); }
  .ct-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Buttons ---------- */

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ct-space-2);
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--ct-radius-md);
  background: var(--ct-primary);
  color: #fff;
  font: 600 15px/1.2 var(--ct-font);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ct-ease), border-color 160ms var(--ct-ease), color 160ms var(--ct-ease), box-shadow 160ms var(--ct-ease), transform 220ms var(--ct-ease);
}
.ct-btn:hover { background: var(--ct-primary-hover); color: #fff; }
.ct-btn:focus-visible { outline: none; box-shadow: var(--ct-focus); }

.ct-btn--outline { border-color: var(--ct-primary-200); background: var(--ct-surface); color: var(--ct-primary); }
.ct-btn--outline:hover { border-color: var(--ct-primary); background: var(--ct-primary-50); color: var(--ct-primary); }
.ct-btn--ghost { background: transparent; color: var(--ct-primary); }
.ct-btn--ghost:hover { background: var(--ct-primary-50); color: var(--ct-primary); }
.ct-btn--dark { background: var(--ct-secondary); }
.ct-btn--dark:hover { background: #000; }
.ct-btn--danger { border-color: #f5c2c2; background: var(--ct-surface); color: var(--ct-danger); }
.ct-btn--danger:hover { border-color: var(--ct-danger); background: var(--ct-danger-bg); color: var(--ct-danger); }
.ct-btn--on-blue { background: #fff; color: var(--ct-primary); }
.ct-btn--on-blue:hover { background: var(--ct-primary-50); color: var(--ct-primary-hover); }

.ct-btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--ct-fs-sm); border-radius: 10px; }
.ct-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.ct-btn--pill { border-radius: var(--ct-radius-pill); }
.ct-btn--block { width: 100%; }

.ct-btn[disabled],
.ct-btn[aria-disabled="true"],
.ct-btn.is-loading { opacity: .55; cursor: not-allowed; pointer-events: none; }
.ct-btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ct-spin .8s linear infinite;
}

.ct-actions { display: flex; flex-wrap: wrap; gap: var(--ct-space-3); }
.ct-actions--center { justify-content: center; }

@media (max-width: 479px) {
  .ct-actions--stack { flex-direction: column; align-items: stretch; }
  .ct-actions--stack .ct-btn { width: 100%; }
}

.ct-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ct-primary);
  font-weight: 600;
  text-decoration: none;
}
.ct-link:hover { color: var(--ct-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Icon tiles, chips, badges ---------- */

.ct-tile {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--ct-radius-md);
  background: var(--ct-primary-100);
  color: var(--ct-primary);
}
.ct-tile--lg { width: 56px; height: 56px; border-radius: var(--ct-radius-lg); }
.ct-tile--blue { background: #e7efff; color: var(--ct-accent-blue); }
.ct-tile--green { background: #e3f6ec; color: var(--ct-accent-green); }
.ct-tile--purple { background: #efeafe; color: var(--ct-accent-purple); }
.ct-tile--orange { background: #fff0de; color: #c46a0a; }
.ct-tile--pink { background: #fde8f0; color: #c9356b; }
.ct-tile--success { background: var(--ct-success-bg); color: var(--ct-success); }
.ct-tile--warning { background: var(--ct-warning-bg); color: var(--ct-warning); }
.ct-tile--danger { background: var(--ct-danger-bg); color: var(--ct-danger); }

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 16px;
  border-radius: var(--ct-radius-pill);
  background: var(--ct-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ct-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ct-space-3) var(--ct-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--ct-space-2);
  color: var(--ct-ink);
  font-size: 15px;
  font-weight: 600;
}
.ct-chips .ct-icon { color: var(--ct-primary); }

.ct-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: var(--ct-radius-pill);
  background: var(--ct-primary-100);
  color: var(--ct-primary);
  font-size: var(--ct-fs-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.ct-badge--success { background: var(--ct-success-bg); color: var(--ct-success); }
.ct-badge--warning { background: var(--ct-warning-bg); color: var(--ct-warning); }
.ct-badge--danger { background: var(--ct-danger-bg); color: var(--ct-danger); }
.ct-badge--neutral { background: #eef2f7; color: var(--ct-muted); }
.ct-badge--highlight { background: var(--ct-highlight); color: var(--ct-ink); }

/* ---------- Cards ---------- */

.ct-card {
  padding: var(--ct-space-6);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-sm);
}
.ct-card--flush { padding: 0; overflow: hidden; }
.ct-card--tint { background: var(--ct-primary-50); box-shadow: none; }
.ct-card--link { transition: border-color 160ms var(--ct-ease), box-shadow 220ms var(--ct-ease), transform 220ms var(--ct-ease); }

@media (hover: hover) {
  .ct-card--link:hover { border-color: var(--ct-primary-200); box-shadow: var(--ct-shadow-md); transform: translateY(-2px); }
}

.ct-card__head {
  display: flex;
  align-items: center;
  gap: var(--ct-space-3);
  margin-bottom: var(--ct-space-4);
}
.ct-card__head h2,
.ct-card__head h3 { flex: 1; min-width: 0; font-size: var(--ct-fs-h3); font-weight: 700; line-height: 1.35; }
.ct-card__head .ct-icon { color: var(--ct-primary); }
.ct-card__head h2 small { display: block; font-weight: 400; }

.ct-card__title { font-size: var(--ct-fs-h3); font-weight: 700; line-height: 1.35; }
.ct-card__text { margin-top: var(--ct-space-1); color: var(--ct-muted); font-size: var(--ct-fs-sm); }

.ct-grid { display: grid; gap: var(--ct-space-6); }
ul.ct-grid,
ol.ct-grid { margin: 0; padding: 0; list-style: none; }
.ct-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .ct-grid--3,
  .ct-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ct-grid { gap: var(--ct-space-4); }
  .ct-grid--2,
  .ct-grid--3 { grid-template-columns: 1fr; }
  .ct-card { padding: var(--ct-space-4); }
}
@media (max-width: 479px) {
  .ct-grid--4 { grid-template-columns: 1fr; }
}

/* Icon + title + text feature card (reasons, benefits, quick links) */
.ct-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--ct-space-4);
}
.ct-feature h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.ct-feature p { margin-top: 2px; color: var(--ct-muted); font-size: var(--ct-fs-sm); line-height: 1.55; }
.ct-feature--stack { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Public hero ---------- */

.ct-hero {
  position: relative;
  overflow: hidden;
  padding: var(--ct-space-9) 0 calc(var(--ct-space-9) + 24px);
  background:
    radial-gradient(45% 60% at 50% 18%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 60% at 0% 20%, #b9d2ff 0%, rgba(185, 210, 255, 0) 70%),
    radial-gradient(40% 60% at 100% 25%, #b9d2ff 0%, rgba(185, 210, 255, 0) 70%),
    linear-gradient(180deg, #cfe0ff 0%, #e6efff 55%, var(--ct-bg) 100%);
  text-align: center;
}
.ct-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 40c240 28 480 28 720 6s480-34 720 0v26H0z' fill='%23dbe7ff' opacity='.7'/%3E%3Cpath d='M0 52c300-26 600-20 900 4s420 14 540 0v16H0z' fill='%23f7faff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.ct-hero__inner { position: relative; max-width: 860px; margin-inline: auto; }
.ct-hero h1 {
  margin-top: var(--ct-space-4);
  font-size: var(--ct-fs-display);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.ct-hero__lead { max-width: 680px; margin: var(--ct-space-4) auto 0; color: var(--ct-text); font-size: var(--ct-fs-lead); line-height: 1.65; }
.ct-hero .ct-actions { justify-content: center; margin-top: var(--ct-space-7); }
.ct-hero .ct-chips { margin-top: var(--ct-space-6); }
.ct-hero--compact { padding: var(--ct-space-9) 0 var(--ct-space-8); }

@media (max-width: 767px) {
  .ct-hero { padding: var(--ct-space-8) 0; }
  .ct-hero .ct-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .ct-hero .ct-actions .ct-btn { width: 100%; }
  .ct-hero .ct-chips { gap: var(--ct-space-2) var(--ct-space-4); }
  .ct-hero .ct-chips li { font-size: var(--ct-fs-sm); }
}

/* ---------- Member / commerce band ---------- */

.ct-band {
  padding: var(--ct-space-6) 0 var(--ct-space-9);
  background: var(--ct-gradient);
  color: #fff;
}
.ct-band h1 { margin-top: var(--ct-space-3); color: #fff; font-size: var(--ct-fs-h1); font-weight: 800; line-height: 1.25; }
.ct-band__lead { margin-top: var(--ct-space-2); color: rgba(255, 255, 255, .88); font-size: var(--ct-fs-lead); }
.ct-band__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ct-space-6); }
.ct-band + .ct-page { margin-top: calc(var(--ct-space-7) * -1); }

@media (max-width: 767px) {
  .ct-band { padding-bottom: var(--ct-space-8); }
  .ct-band__row { flex-direction: column; align-items: flex-start; }
}

.ct-page { position: relative; padding-bottom: var(--ct-section-y); }

.ct-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--ct-fs-sm);
}
.ct-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.ct-breadcrumb li + li::before { content: "/"; opacity: .6; }
.ct-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; opacity: .85; }
.ct-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.ct-breadcrumb [aria-current="page"] { opacity: .95; }
.ct-band .ct-breadcrumb { color: #fff; }
.ct-hero .ct-breadcrumb { margin-bottom: var(--ct-space-4); color: var(--ct-muted); }
.ct-hero .ct-breadcrumb ol { justify-content: center; }

.ct-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--ct-space-3); color: var(--ct-ink); font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
.ct-disclosure > summary::-webkit-details-marker { display: none; }
.ct-disclosure > summary > span { display: flex; align-items: center; gap: var(--ct-space-3); }
.ct-disclosure > summary > .ct-icon { color: var(--ct-primary); transition: transform 160ms var(--ct-ease); }
.ct-disclosure[open] > summary > .ct-icon { transform: rotate(180deg); }
.ct-disclosure[open] > summary { margin-bottom: var(--ct-space-5); padding-bottom: var(--ct-space-4); border-bottom: 1px solid var(--ct-border); }

.ct-service { display: flex; flex-direction: column; gap: var(--ct-space-3); }
.ct-service .ct-card__head { margin-bottom: 0; }
.ct-service__price { color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-service__price strong { color: var(--ct-ink); font-size: 22px; font-weight: 800; }
.ct-service .ct-btn { margin-top: auto; }

/* ---------- CTA banner ---------- */

.ct-cta {
  display: flex;
  align-items: center;
  gap: var(--ct-space-6);
  padding: var(--ct-space-7) var(--ct-space-8);
  border-radius: var(--ct-radius-xl);
  background: var(--ct-gradient);
  color: #fff;
}
.ct-cta .ct-tile { background: rgba(255, 255, 255, .16); color: #fff; }
.ct-cta__copy { flex: 1; min-width: 0; }
.ct-cta__actions { display: flex; flex-wrap: wrap; gap: var(--ct-space-3); }
.ct-btn--on-blue-outline { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; }
.ct-btn--on-blue-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.ct-cta h2 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.35; }
.ct-cta p { margin-top: 4px; color: rgba(255, 255, 255, .9); }

.ct-cta--light {
  border: 1px solid var(--ct-border);
  background: var(--ct-surface);
  color: var(--ct-text);
  box-shadow: var(--ct-shadow-sm);
}
.ct-cta--light .ct-tile { background: var(--ct-primary-100); color: var(--ct-primary); }
.ct-cta--light h2 { color: var(--ct-ink); }
.ct-cta--light p { color: var(--ct-muted); }

@media (max-width: 767px) {
  .ct-cta { flex-direction: column; padding: var(--ct-space-6); text-align: center; }
  .ct-cta h2 { font-size: 20px; }
  .ct-cta__actions { flex-direction: column; width: 100%; }
  .ct-cta .ct-btn { width: 100%; }
}

/* ---------- Tabs ---------- */

.ct-tabs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-sm);
  list-style: none;
  scrollbar-width: thin;
}
.ct-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ct-space-2);
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--ct-radius-md);
  background: transparent;
  color: var(--ct-ink);
  font: 600 var(--ct-fs-sm)/1.3 var(--ct-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ct-tab:hover { background: var(--ct-primary-50); color: var(--ct-primary); }
.ct-tab[aria-selected="true"],
.ct-tab[aria-current="page"],
.ct-tab[aria-pressed="true"],
.ct-tab.is-active { background: var(--ct-primary); color: #fff; }

/* ---------- Forms ---------- */

.ct-field { display: grid; align-content: start; gap: 6px; }
.ct-field + .ct-field { margin-top: var(--ct-space-4); }
.ct-label { color: var(--ct-ink); font-size: var(--ct-fs-sm); font-weight: 600; }
.ct-label .ct-req { color: var(--ct-danger); }
.ct-help { color: var(--ct-muted); font-size: 13px; }
.ct-error { display: flex; align-items: center; gap: 6px; color: var(--ct-danger); font-size: 13px; }
.ct-error:empty { display: none; }

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  background: var(--ct-surface);
  color: var(--ct-ink);
  font: 400 15px/1.5 var(--ct-font);
  transition: border-color 160ms var(--ct-ease), box-shadow 160ms var(--ct-ease);
}
.ct-textarea { min-height: 128px; resize: vertical; }
.ct-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.ct-input::placeholder,
.ct-textarea::placeholder { color: #94a3b8; }
.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus { border-color: var(--ct-primary); outline: none; box-shadow: var(--ct-focus); }
.ct-input[aria-invalid="true"],
.ct-select[aria-invalid="true"],
.ct-textarea[aria-invalid="true"] { border-color: var(--ct-danger); }
.ct-input:disabled,
.ct-input[readonly] { background: #f6f8fb; color: var(--ct-muted); }

.ct-input-wrap { position: relative; }
.ct-input-wrap > .ct-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--ct-muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.ct-input-wrap > .ct-icon + .ct-input { padding-left: 44px; }
.ct-input-wrap > .ct-input:has(+ .ct-input-btn) { padding-right: 52px; }
.ct-input-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--ct-radius-sm);
  background: none;
  color: var(--ct-muted);
  transform: translateY(-50%);
  cursor: pointer;
}
.ct-input-btn:hover { color: var(--ct-primary); background: var(--ct-primary-50); }

.ct-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ct-text);
  font-size: var(--ct-fs-sm);
  line-height: 1.55;
}
.ct-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ct-primary); }

.ct-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ct-space-4); }
.ct-form-row > .ct-field + .ct-field { margin-top: 0; }
.ct-form-row + .ct-field,
.ct-field + .ct-form-row { margin-top: var(--ct-space-4); }
@media (max-width: 767px) { .ct-form-row { grid-template-columns: 1fr; } }

.ct-divider-text {
  display: flex;
  align-items: center;
  gap: var(--ct-space-3);
  margin: var(--ct-space-5) 0;
  color: var(--ct-muted);
  font-size: 13px;
}
.ct-divider-text::before,
.ct-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--ct-border); }

/* Selectable option row: payment methods etc. */
.ct-option {
  display: flex;
  align-items: center;
  gap: var(--ct-space-4);
  padding: var(--ct-space-4);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  background: var(--ct-surface);
  cursor: pointer;
  transition: border-color 160ms var(--ct-ease), background-color 160ms var(--ct-ease);
}
.ct-option + .ct-option { margin-top: var(--ct-space-3); }
.ct-option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ct-primary); }
.ct-option:hover { border-color: var(--ct-primary-200); }
.ct-option:has(input:checked) { border-color: var(--ct-primary); background: var(--ct-primary-50); }
.ct-option:has(input:focus-visible) { box-shadow: var(--ct-focus); }
.ct-option__copy { flex: 1; min-width: 0; }
.ct-option__copy strong { display: block; color: var(--ct-ink); font-size: 15px; }
.ct-option__copy small { display: block; color: var(--ct-muted); font-size: 13px; }

/* ---------- Alerts ---------- */

.ct-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--ct-space-3);
  padding: var(--ct-space-4);
  border: 1px solid var(--ct-primary-200);
  border-radius: var(--ct-radius-md);
  background: var(--ct-primary-50);
  color: var(--ct-ink);
  font-size: var(--ct-fs-sm);
}
.ct-alert > .ct-icon { margin-top: 1px; color: var(--ct-primary); }
.ct-alert strong { display: block; }
.ct-alert--success { border-color: #b7e4c7; background: var(--ct-success-bg); }
.ct-alert--success > .ct-icon { color: var(--ct-success); }
.ct-alert--warning { border-color: #f6d79b; background: var(--ct-warning-bg); }
.ct-alert--warning > .ct-icon { color: var(--ct-warning); }
.ct-alert--danger { border-color: #f5c2c2; background: var(--ct-danger-bg); }
.ct-alert--danger > .ct-icon { color: var(--ct-danger); }

/* ---------- FAQ ---------- */

.ct-faq { display: grid; gap: var(--ct-space-3); }
.ct-faq__item {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  background: var(--ct-surface);
  transition: border-color 160ms var(--ct-ease), box-shadow 160ms var(--ct-ease);
}
.ct-faq__item[open] { border-color: var(--ct-primary-200); box-shadow: var(--ct-shadow-md); }
.ct-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ct-space-4);
  min-height: 56px;
  padding: 12px var(--ct-space-5);
  color: var(--ct-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.ct-faq__item > summary::-webkit-details-marker { display: none; }
.ct-faq__item > summary .ct-icon { color: var(--ct-primary); transition: transform 160ms var(--ct-ease); }
.ct-faq__item[open] > summary .ct-icon { transform: rotate(180deg); }
.ct-faq__body { padding: 0 var(--ct-space-5) var(--ct-space-5); color: var(--ct-text); font-size: 15px; }

/* ---------- Steps & stepper ---------- */

.ct-steps {
  display: grid;
  grid-template-columns: repeat(var(--ct-steps, 4), minmax(0, 1fr));
  gap: var(--ct-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ct-step;
}
.ct-steps > li {
  position: relative;
  padding: var(--ct-space-6) var(--ct-space-4) var(--ct-space-5);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-sm);
  text-align: center;
  counter-increment: ct-step;
}
.ct-steps > li::before {
  content: counter(ct-step);
  position: absolute;
  top: -14px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ct-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%);
}
.ct-steps > li + li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--ct-space-8) / -2 - 5px);
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ct-primary);
  border-right: 2px solid var(--ct-primary);
  transform: translateY(-50%) rotate(45deg);
}
.ct-steps .ct-icon { color: var(--ct-primary); }
.ct-steps h3 { margin-top: var(--ct-space-2); font-size: 16px; font-weight: 700; }
.ct-steps p { margin-top: 2px; color: var(--ct-muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 1023px) {
  .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--ct-space-8); }
  .ct-steps > li + li::after { display: none; }
}
@media (max-width: 479px) {
  .ct-steps { grid-template-columns: 1fr; }
}

.ct-stepper {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-stepper > li {
  position: relative;
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ct-muted);
  font-size: var(--ct-fs-sm);
  font-weight: 600;
  text-align: center;
}
.ct-stepper > li + li::before {
  content: "";
  position: absolute;
  top: 19px;
  right: calc(50% + 26px);
  left: calc(-50% + 26px);
  height: 2px;
  background: var(--ct-border);
}
.ct-stepper__dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ct-border);
  border-radius: 50%;
  background: var(--ct-surface);
  color: var(--ct-muted);
}
.ct-stepper > li.is-done,
.ct-stepper > li.is-current { color: var(--ct-ink); }
.ct-stepper > li.is-done .ct-stepper__dot { border-color: var(--ct-primary); background: var(--ct-primary); color: #fff; }
.ct-stepper > li.is-current .ct-stepper__dot { border-color: var(--ct-primary); color: var(--ct-primary); box-shadow: var(--ct-focus); }
.ct-stepper > li.is-done + li::before,
.ct-stepper > li.is-done + li.is-current::before { background: var(--ct-primary); }

@media (max-width: 479px) {
  .ct-stepper > li { font-size: 12px; }
  .ct-stepper__dot { width: 32px; height: 32px; }
  .ct-stepper > li + li::before { top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); }
}

/* ---------- Summary / key-value rows ---------- */

.ct-summary { position: sticky; top: calc(var(--ct-header-h) + 24px); }
.ct-rows { margin: 0; }
.ct-rows > div {
  display: flex;
  justify-content: space-between;
  gap: var(--ct-space-4);
  padding-block: 10px;
  border-bottom: 1px solid var(--ct-border);
  font-size: 15px;
}
.ct-rows dt { color: var(--ct-muted); font-weight: 500; }
.ct-rows dd { margin: 0; color: var(--ct-ink); font-weight: 600; text-align: right; }
.ct-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ct-space-4);
  margin-top: var(--ct-space-4);
  padding: var(--ct-space-4);
  border-radius: var(--ct-radius-md);
  background: var(--ct-primary-100);
  color: var(--ct-ink);
  font-weight: 700;
}
.ct-total strong { color: var(--ct-primary); font-size: 24px; font-weight: 800; }

.ct-checklist { display: grid; gap: var(--ct-space-2); margin: 0; padding: 0; list-style: none; }
.ct-checklist li { display: flex; align-items: flex-start; gap: var(--ct-space-2); font-size: var(--ct-fs-sm); }
.ct-checklist .ct-icon { margin-top: 3px; color: var(--ct-success); }

@media (max-width: 1023px) {
  .ct-summary { position: static; }
}

/* ---------- Tables ---------- */

.ct-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); background: var(--ct-surface); }
.ct-table { width: 100%; border-collapse: collapse; font-size: var(--ct-fs-sm); }
.ct-table th,
.ct-table td { padding: 12px 16px; border-bottom: 1px solid var(--ct-border); text-align: left; vertical-align: middle; }
.ct-table thead th { background: var(--ct-primary-50); color: var(--ct-ink); font-weight: 700; white-space: nowrap; }
.ct-table tbody tr:last-child > * { border-bottom: 0; }
.ct-table .is-featured { background: var(--ct-primary-50); }
.ct-table tbody th small { display: block; font-weight: 400; }
/* Tables that become labelled records on phones */
@media (max-width: 767px) {
  .ct-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ct-table--stack tbody tr { display: block; padding: var(--ct-space-3) 0; border-bottom: 1px solid var(--ct-border); }
  .ct-table--stack tbody :is(th, td) { display: flex; justify-content: space-between; gap: var(--ct-space-3); padding: 4px var(--ct-space-4); border: 0; text-align: right; }
  .ct-table--stack tbody :is(th, td)::before { content: attr(data-label); color: var(--ct-muted); font-weight: 500; text-align: left; }
}

/* ---------- Copy field, file row, list row ---------- */

.ct-copy { display: flex; gap: var(--ct-space-2); }
.ct-copy .ct-input { min-height: 44px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }

.ct-row {
  display: flex;
  align-items: center;
  gap: var(--ct-space-4);
  padding: var(--ct-space-4);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  background: var(--ct-surface);
}
.ct-row + .ct-row { margin-top: var(--ct-space-3); }
.ct-row__main { flex: 1; min-width: 0; }
.ct-row__main strong { display: block; color: var(--ct-ink); overflow-wrap: anywhere; }
.ct-row__main small { display: block; color: var(--ct-muted); font-size: 13px; }

@media (max-width: 479px) {
  .ct-row { flex-wrap: wrap; }
  .ct-row > .ct-btn { width: 100%; }
}

/* ---------- Empty state ---------- */

.ct-empty {
  display: grid;
  justify-items: center;
  gap: var(--ct-space-3);
  padding: var(--ct-space-8) var(--ct-space-6);
  text-align: center;
}
.ct-empty h2,
.ct-empty h3 { font-size: var(--ct-fs-h3); }
.ct-empty p { max-width: 460px; color: var(--ct-muted); }
.ct-empty .ct-actions { justify-content: center; margin-top: var(--ct-space-2); }

/* ---------- Member shell ---------- */

.ct-member { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: var(--ct-space-6); align-items: start; }
.ct-member__content { display: grid; gap: var(--ct-space-6); min-width: 0; }

.ct-member-nav { position: sticky; top: calc(var(--ct-header-h) + 24px); padding: var(--ct-space-3); }
.ct-member-nav__who { padding: var(--ct-space-3) var(--ct-space-3) var(--ct-space-4); border-bottom: 1px solid var(--ct-border); margin-bottom: var(--ct-space-2); }
.ct-member-nav__who strong { display: block; color: var(--ct-ink); overflow-wrap: anywhere; }
.ct-member-nav__who small { color: var(--ct-muted); font-size: 13px; }
.ct-member-nav ul { margin: 0; padding: 0; list-style: none; }
.ct-member-nav ul + ul { margin-top: var(--ct-space-2); padding-top: var(--ct-space-2); border-top: 1px solid var(--ct-border); }
.ct-member-nav a {
  display: flex;
  align-items: center;
  gap: var(--ct-space-3);
  min-height: 44px;
  padding: 0 var(--ct-space-3);
  border-radius: var(--ct-radius-md);
  color: var(--ct-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.ct-member-nav a:hover { background: var(--ct-primary-50); color: var(--ct-primary); }
.ct-member-nav a[aria-current="page"] { background: var(--ct-primary); color: #fff; }
.ct-member-nav a.is-danger { color: var(--ct-danger); }
.ct-member-nav a.is-danger:hover { background: var(--ct-danger-bg); }

@media (max-width: 1023px) {
  .ct-member { grid-template-columns: 1fr; }
  .ct-member-nav { position: static; padding: 6px; }
  .ct-member-nav__who { display: none; }
  .ct-member-nav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
  .ct-member-nav ul { display: flex; gap: 6px; }
  .ct-member-nav ul + ul { margin: 0; padding: 0 0 0 6px; border-top: 0; border-left: 1px solid var(--ct-border); }
  .ct-member-nav a { white-space: nowrap; font-size: var(--ct-fs-sm); }
}

/* ---------- Pagination ---------- */

.ct-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--ct-space-6) 0 0; padding: 0; list-style: none; }
.ct-pagination a,
.ct-pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  background: var(--ct-surface);
  color: var(--ct-ink);
  font-weight: 600;
  text-decoration: none;
}
.ct-pagination a:hover { border-color: var(--ct-primary); color: var(--ct-primary); }
.ct-pagination [aria-current="page"] { border-color: var(--ct-primary); background: var(--ct-primary); color: #fff; }

/* ---------- Error / status pages ---------- */

.ct-status-page { padding: var(--ct-space-10) 0 var(--ct-section-y); background: var(--ct-primary-50); text-align: center; }
.ct-status-page__code {
  display: block;
  color: var(--ct-primary);
  font-size: clamp(88px, 16vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.ct-status-page h1 { margin-top: var(--ct-space-4); font-size: var(--ct-fs-h1); font-weight: 800; line-height: 1.3; }
.ct-status-page__lead { max-width: 560px; margin: var(--ct-space-3) auto 0; color: var(--ct-text); font-size: var(--ct-fs-lead); }
.ct-status-page .ct-grid { max-width: 960px; margin: var(--ct-space-8) auto 0; text-align: left; }
.ct-status-page .ct-actions { justify-content: center; margin-top: var(--ct-space-8); }

@media (min-width: 768px) {
  .ct-status-page .ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ct-space-4); }
}
@media (max-width: 767px) {
  .ct-status-page { padding-top: var(--ct-space-8); }
  .ct-status-page .ct-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
}

/* ---------- Product card ---------- */

.ct-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ct-space-6); }
.ct-product-grid--center { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); }
@media (max-width: 1023px) { .ct-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ct-product-grid, .ct-product-grid--center { grid-template-columns: 1fr; } }

.ct-product-card {
  --accent: var(--ct-accent-blue);
  --accent-soft: #e7efff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-sm);
  transition: border-color 160ms var(--ct-ease), box-shadow 220ms var(--ct-ease), transform 220ms var(--ct-ease);
}
.ct-product-card--green { --accent: var(--ct-accent-green); --accent-soft: #e3f6ec; }
.ct-product-card--purple { --accent: var(--ct-accent-purple); --accent-soft: #efeafe; }
.ct-product-card--orange { --accent: var(--ct-accent-orange); --accent-soft: #fff0de; }
.ct-product-card--pink { --accent: var(--ct-accent-pink); --accent-soft: #fde8f0; }
@media (hover: hover) {
  .ct-product-card:hover { border-color: var(--ct-primary-200); box-shadow: var(--ct-shadow-md); transform: translateY(-2px); }
}

.ct-product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--accent);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
  color: #fff;
}
.ct-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ct-product-card__placeholder {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.ct-product-card__pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 12px;
  border-radius: var(--ct-radius-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--ct-ink);
  font-size: var(--ct-fs-xs);
  font-weight: 600;
}

.ct-product-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--ct-space-3); padding: var(--ct-space-5) var(--ct-space-6) var(--ct-space-6); }
.ct-product-card__title { font-size: var(--ct-fs-h3); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.ct-product-card__title a { color: var(--ct-ink); text-decoration: none; }
.ct-product-card__title a:hover { color: var(--ct-primary); }
.ct-product-card__text { color: var(--ct-muted); font-size: var(--ct-fs-sm); line-height: 1.6; }
.ct-product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: var(--ct-space-3); border-top: 1px solid var(--ct-border); }
.ct-product-card__price small { flex-basis: 100%; color: var(--ct-muted); font-size: var(--ct-fs-xs); }
.ct-product-card__price strong { color: var(--ct-ink); font-size: 24px; font-weight: 800; line-height: 1.2; }
.ct-product-card__price span { color: var(--ct-muted); font-size: 13px; }
.ct-product-card__ask { font-size: 17px !important; }
.ct-product-card__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--ct-space-3); }

/* ---------- Plan card ---------- */

.ct-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: var(--ct-space-6); align-items: start; }
@media (max-width: 639px) { .ct-plan-grid { grid-template-columns: 1fr; } }

.ct-plan {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-sm);
}
.ct-plan.is-featured { border: 2px solid var(--ct-primary); box-shadow: var(--ct-shadow-lg); }
.ct-plan__head { position: relative; padding: var(--ct-space-6) var(--ct-space-6) 0; }
.ct-plan.is-featured .ct-plan__head { margin-bottom: var(--ct-space-1); padding-bottom: var(--ct-space-5); background: var(--ct-primary); color: #fff; }
.ct-plan__head h3 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.ct-plan.is-featured .ct-plan__head h3 { color: #fff; }
.ct-plan__head p { margin-top: 2px; color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-plan.is-featured .ct-plan__head p { color: rgba(255, 255, 255, .85); }
.ct-plan__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--ct-radius-pill);
  background: var(--ct-highlight);
  color: var(--ct-ink);
  font-size: var(--ct-fs-xs);
  font-weight: 700;
}
.ct-plan__price { display: flex; align-items: baseline; gap: 6px; padding: var(--ct-space-4) var(--ct-space-6); border-bottom: 1px solid var(--ct-border); }
.ct-plan__price strong { color: var(--ct-ink); font-size: var(--ct-fs-price); font-weight: 800; line-height: 1.1; }
.ct-plan__price span { color: var(--ct-muted); font-size: 15px; font-weight: 600; }
.ct-plan__body { flex: 1; padding: var(--ct-space-4) var(--ct-space-6); }
.ct-plan__included { display: flex; gap: var(--ct-space-2); margin-bottom: var(--ct-space-3) !important; padding: var(--ct-space-3); border-radius: var(--ct-radius-md); background: var(--ct-primary-50); color: var(--ct-ink); font-size: var(--ct-fs-sm); }
.ct-plan__included .ct-icon { margin-top: 2px; color: var(--ct-primary); }
.ct-plan__group { margin: var(--ct-space-3) 0 var(--ct-space-2) !important; color: var(--ct-muted); font-size: var(--ct-fs-xs); font-weight: 700; letter-spacing: .02em; }
.ct-plan__list { display: grid; gap: var(--ct-space-2); margin: 0; padding: 0; list-style: none; }
.ct-plan__list li { display: flex; align-items: flex-start; gap: var(--ct-space-2); color: var(--ct-text); font-size: var(--ct-fs-sm); line-height: 1.5; }
.ct-plan__list .ct-icon { margin-top: 1px; color: var(--ct-success); }
.ct-plan__value { margin-left: auto; padding-left: var(--ct-space-2); color: var(--ct-ink); font-weight: 600; text-align: right; white-space: nowrap; }
.ct-plan__more { margin-top: var(--ct-space-3); }
.ct-plan__more > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--ct-primary); font-size: var(--ct-fs-sm); font-weight: 600; list-style: none; cursor: pointer; }
.ct-plan__more > summary::-webkit-details-marker { display: none; }
.ct-plan__more[open] > summary { display: none; }
.ct-plan__foot { display: grid; gap: var(--ct-space-2); padding: 0 var(--ct-space-6) var(--ct-space-6); text-align: center; }
.ct-plan__terms { color: var(--ct-muted); font-size: 13px; }

/* ---------- Comparison table ---------- */

.ct-compare .ct-table { min-width: 560px; }
.ct-compare thead th { vertical-align: bottom; }
.ct-compare thead th:not(:first-child),
.ct-compare td { width: 22%; text-align: center; }
.ct-compare__name { display: block; color: var(--ct-ink); font-size: 15px; }
.ct-compare__price { display: block; color: var(--ct-muted); font-size: 13px; font-weight: 500; }
.ct-compare thead th.is-featured { background: var(--ct-primary); }
.ct-compare thead th.is-featured :is(.ct-compare__name, .ct-compare__price) { color: #fff; }
.ct-compare tbody th[scope="row"] { color: var(--ct-text); font-weight: 500; }
.ct-compare__group th { background: #f6f8fc; color: var(--ct-ink); font-size: 13px; font-weight: 700; }
.ct-compare__yes { display: inline-flex; color: var(--ct-success); }
.ct-compare__no { color: #94a3b8; }

/* Phones: 2-3 packages must fit without sideways scrolling, so the package columns
   (the whole point of the table) are never pushed off-screen. 4+ packages still scroll. */
@media (max-width: 640px) {
  .ct-compare .ct-table { min-width: 0; table-layout: fixed; }
  .ct-compare[data-cols="4"] .ct-table,
  .ct-compare[data-cols="5"] .ct-table { min-width: 560px; table-layout: auto; }
  .ct-compare .ct-table th,
  .ct-compare .ct-table td { padding: 10px 8px; font-size: 13px; }
  .ct-compare thead th:first-child { width: 40%; }
  .ct-compare thead th:not(:first-child),
  .ct-compare td { width: auto; }
  .ct-compare tbody th[scope="row"] { overflow-wrap: anywhere; line-height: 1.4; }
  .ct-compare thead th { white-space: normal; }
  .ct-compare__name { font-size: 14px; overflow-wrap: anywhere; }
  .ct-compare__price { font-size: 12px; }
  .ct-compare td { overflow-wrap: anywhere; line-height: 1.35; }
}

/* ---------- Rich text from the catalog ---------- */

.ct-prose { color: var(--ct-text); font-size: 15px; line-height: 1.75; }
.ct-prose > * + * { margin-top: var(--ct-space-3); }
.ct-prose :is(h2, h3, h4) { margin-top: var(--ct-space-6); color: var(--ct-ink); line-height: 1.4; }
.ct-prose h2 { font-size: 22px; }
.ct-prose h3 { font-size: 18px; }
.ct-prose :is(ul, ol) { padding-left: 1.4em; }
.ct-prose li + li { margin-top: 4px; }
.ct-prose img { border-radius: var(--ct-radius-md); }
.ct-prose a { color: var(--ct-primary); }
.ct-prose table { width: 100%; border-collapse: collapse; font-size: var(--ct-fs-sm); }
.ct-prose :is(th, td) { padding: 8px 10px; border: 1px solid var(--ct-border); }
.ct-prose > :first-child { margin-top: 0; }

/* ---------- Page building blocks ---------- */

.ct-band-tint { padding: var(--ct-space-7); border-radius: var(--ct-radius-xl); background: var(--ct-primary-50); }
@media (max-width: 767px) { .ct-band-tint { padding: var(--ct-space-4); } }

.ct-subnav {
  position: sticky;
  top: var(--ct-header-h);
  z-index: 20;
  border-bottom: 1px solid var(--ct-border);
  background: rgba(255, 255, 255, .96);
}
.ct-subnav ul { display: flex; gap: var(--ct-space-1); margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.ct-subnav li { flex: 0 0 auto; }
.ct-subnav li:first-child { margin-inline-start: auto; }
.ct-subnav li:last-child { margin-inline-end: auto; }
.ct-subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--ct-space-3); color: var(--ct-ink); font-size: var(--ct-fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ct-subnav a:hover { color: var(--ct-primary); }
:where(.ct-ui) [id] { scroll-margin-top: calc(var(--ct-header-h) + 64px); }

.ct-hero__search { max-width: 560px; margin: var(--ct-space-6) auto 0; }
.ct-hero__search .ct-search__row { padding: 6px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-pill); background: var(--ct-surface); box-shadow: var(--ct-shadow-md); }
.ct-hero__search .ct-input { min-height: 44px; border: 0; border-radius: var(--ct-radius-pill); box-shadow: none !important; }
.ct-hero__search .ct-btn { border-radius: var(--ct-radius-pill); }
.ct-hero__search-note { margin-top: var(--ct-space-3) !important; color: var(--ct-muted); font-size: var(--ct-fs-sm); }

.ct-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ct-space-4); margin-bottom: var(--ct-space-6); }
.ct-toolbar__count { color: var(--ct-muted); font-size: var(--ct-fs-sm); }

.ct-gallery { display: grid; gap: var(--ct-space-3); }
.ct-gallery__main { overflow: hidden; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); background: var(--ct-surface); box-shadow: var(--ct-shadow-md); }
.ct-gallery__main img { display: block; width: 100%; height: auto; }
.ct-gallery__thumbs { display: flex; gap: var(--ct-space-2); overflow-x: auto; }
.ct-gallery__thumb { flex: none; width: 104px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--ct-radius-sm); background: none; cursor: pointer; }
.ct-gallery__thumb[aria-pressed="true"] { border-color: var(--ct-primary); }
.ct-gallery__thumb img { display: block; width: 100%; height: 72px; object-fit: cover; }

.ct-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--ct-radius-xl); box-shadow: var(--ct-shadow-lg); }
.ct-dialog::backdrop { background: rgba(11, 27, 63, .6); }
.ct-dialog__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: var(--ct-space-2); background: var(--ct-surface); }
.ct-dialog img { display: block; width: 100%; height: auto; }

.ct-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ct-space-6); align-items: start; }
@media (max-width: 1023px) { .ct-split { grid-template-columns: 1fr; } }

.ct-legal { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: var(--ct-space-6); align-items: start; }
:is(.ct-legal, .ct-member, .ct-split) > * { min-width: 0; }
.ct-legal__article { display: grid; gap: var(--ct-space-4); min-width: 0; }
.ct-legal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ct-space-3); }
.ct-legal__head h2 { font-size: 24px; font-weight: 800; }
.ct-legal__head small { display: block; color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-legal__section { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--ct-space-3); }
.ct-legal__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ct-primary); color: #fff; font-size: var(--ct-fs-sm); font-weight: 700; }
.ct-legal__section h3 { margin-bottom: var(--ct-space-2); font-size: 18px; font-weight: 700; line-height: 1.5; }
@media (max-width: 1023px) { .ct-legal { grid-template-columns: 1fr; } }

.ct-pricing__tabs { max-width: max-content; margin: 0 auto var(--ct-space-8); }
.ct-pricing__product { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: var(--ct-space-2) var(--ct-space-4); margin-bottom: var(--ct-space-6); text-align: center; }
.ct-pricing__product h2 { font-size: var(--ct-fs-h3); font-weight: 700; }
.ct-pricing__compare { margin-top: var(--ct-section-y); }
@media (max-width: 767px) { .ct-pricing__tabs { max-width: 100%; } }

.ct-heading-bar {
  margin-bottom: var(--ct-space-4) !important;
  padding-left: var(--ct-space-3);
  border-left: 4px solid var(--ct-primary);
  font-size: var(--ct-fs-h3);
  font-weight: 700;
  line-height: 1.35;
}
.ct-grid--center { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); }
.ct-hp { display: none !important; }
.ct-text-success { color: var(--ct-success) !important; }

.ct-contact__info { display: grid; gap: var(--ct-space-4); }
.ct-contact__info h2 { font-size: var(--ct-fs-h3); }
.ct-contact__links { display: grid; gap: var(--ct-space-2); }
.ct-about__mark { display: grid; place-items: center; min-height: 260px; }
.ct-about__mark img { width: min(340px, 90%); }
.ct-faq-nav { margin-bottom: var(--ct-space-7); }
.ct-faq-group + .ct-faq-group { margin-top: var(--ct-space-8); }

.ct-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--ct-space-4); margin: 0; padding: 0; list-style: none; }
.ct-steps--3 { --ct-steps: 3; }
.ct-hero__search-icon { display: grid; place-items: center; padding-left: 10px; color: var(--ct-muted); }
.ct-hero__search .ct-search__row { align-items: center; }
.ct-channel { display: flex; align-items: center; gap: var(--ct-space-3); color: var(--ct-ink); text-decoration: none; }
.ct-channel strong { display: block; }
.ct-channel small { display: block; color: var(--ct-muted); font-size: 13px; overflow-wrap: anywhere; }

/* ---------- Auth ---------- */

.ct-auth { padding: var(--ct-space-9) 0 var(--ct-section-y); background: radial-gradient(70% 50% at 50% 0%, #fff, rgba(255, 255, 255, 0)), var(--ct-primary-50); }
.ct-auth__intro { max-width: 640px; margin: 0 auto var(--ct-space-7); text-align: center; }
.ct-auth__intro .ct-tile { margin-bottom: var(--ct-space-3); }
.ct-auth__intro h1 { font-size: var(--ct-fs-h1); font-weight: 800; line-height: 1.3; }
.ct-auth__intro p { margin-top: var(--ct-space-2); color: var(--ct-text); font-size: var(--ct-fs-lead); }
.ct-auth__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 980px; margin-inline: auto; padding: var(--ct-space-3); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-xl); background: var(--ct-surface); box-shadow: var(--ct-shadow-lg); }
.ct-auth__panel { display: grid; align-content: center; gap: var(--ct-space-5); padding: var(--ct-space-8); border-radius: calc(var(--ct-radius-xl) - 6px); background: var(--ct-primary-50); }
.ct-auth__panel img { width: min(260px, 100%); }
.ct-auth__panel h2 { font-size: var(--ct-fs-h3); font-weight: 700; }
.ct-auth__form { padding: var(--ct-space-8) var(--ct-space-8) var(--ct-space-7); }
.ct-auth__form h2 { margin-bottom: var(--ct-space-5); font-size: 26px; font-weight: 800; }
.ct-auth__switch { margin-top: var(--ct-space-5) !important; color: var(--ct-muted); font-size: var(--ct-fs-sm); text-align: center; }
.ct-auth__switch a { font-weight: 700; }
.ct-auth__values { max-width: 980px; margin: var(--ct-space-8) auto 0; }
.ct-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ct-space-3); }
.ct-label-row a { font-size: 13px; font-weight: 600; }
.ct-steplist { display: grid; gap: var(--ct-space-3); margin: 0; padding: 0; list-style: none; counter-reset: ct-steplist; }
.ct-steplist li { display: flex; align-items: flex-start; gap: var(--ct-space-3); counter-increment: ct-steplist; }
.ct-steplist li::before { content: counter(ct-steplist); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ct-surface); color: var(--ct-primary); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--ct-primary-200); }
.ct-steplist li.is-current::before { background: var(--ct-primary); color: #fff; box-shadow: none; }
.ct-steplist strong { display: block; color: var(--ct-ink); font-size: 15px; }
.ct-steplist small { display: block; color: var(--ct-muted); font-size: 13px; }

@media (max-width: 879px) {
  .ct-auth__card { grid-template-columns: 1fr; }
  .ct-auth__panel { padding: var(--ct-space-6); }
  .ct-auth__panel img { width: 180px; }
}
@media (max-width: 479px) {
  .ct-auth { padding-top: var(--ct-space-7); }
  .ct-auth__card { padding: 0; border-radius: var(--ct-radius-lg); }
  .ct-auth__panel { border-radius: var(--ct-radius-lg) var(--ct-radius-lg) 0 0; }
  .ct-auth__form { padding: var(--ct-space-6) var(--ct-space-4); }
}

/* ---------- Checkout ---------- */

.ct-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--ct-space-6); align-items: start; }
.ct-checkout > * { min-width: 0; }
.ct-checkout__main,
.ct-checkout__aside { display: grid; gap: var(--ct-space-5); }
.ct-checkout__aside { position: sticky; top: calc(var(--ct-header-h) + 24px); }
@media (max-width: 1023px) {
  .ct-checkout { grid-template-columns: 1fr; }
  .ct-checkout__aside { position: static; }
}

.ct-stepper-card { margin-bottom: var(--ct-space-5); padding: var(--ct-space-5) var(--ct-space-6); }

.ct-line { display: flex; align-items: center; gap: var(--ct-space-4); padding-block: var(--ct-space-4); border-bottom: 1px solid var(--ct-border); }
.ct-line:first-child { padding-top: 0; }
.ct-line:last-child { padding-bottom: 0; border-bottom: 0; }
.ct-line__main { flex: 1; min-width: 0; }
.ct-line__main strong { display: block; color: var(--ct-ink); font-size: 16px; overflow-wrap: anywhere; }
.ct-line__product { display: block; margin-top: 2px; color: var(--ct-muted); font-size: 13px; overflow-wrap: anywhere; }
.ct-line__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ct-line__price { min-width: 96px; color: var(--ct-ink); font-size: 17px; font-weight: 800; white-space: nowrap; text-align: right; }
.ct-line__price small { display: block; color: var(--ct-muted); font-size: 12px; font-weight: 500; }
.ct-line__remove { flex: none; color: var(--ct-danger); }
.ct-line__remove:hover { background: var(--ct-danger-bg); color: var(--ct-danger); }
@media (max-width: 479px) {
  .ct-line { flex-wrap: wrap; }
  .ct-line > .ct-tile { display: none; }
}

.ct-card__head-link { margin-left: auto; color: var(--ct-danger); font-size: var(--ct-fs-sm); font-weight: 600; text-decoration: none; }
.ct-card__head-link:hover { text-decoration: underline; }

.ct-input-prefix { display: flex; align-items: stretch; }
.ct-input-prefix > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--ct-border); border-right: 0; border-radius: var(--ct-radius-md) 0 0 var(--ct-radius-md); background: #f6f8fb; color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-input-prefix > .ct-input { flex: 1; min-width: 0; border-radius: 0 var(--ct-radius-md) var(--ct-radius-md) 0; }

.ct-domain-box { padding: var(--ct-space-4); border: 1px dashed var(--ct-primary-200); border-radius: var(--ct-radius-md); background: var(--ct-primary-50); }
.ct-domain-box + .ct-domain-box { margin-top: var(--ct-space-3); }
.ct-domain-box h3 { display: flex; align-items: center; gap: var(--ct-space-2); margin-bottom: var(--ct-space-3); font-size: 15px; }
.ct-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-pill { padding: 2px 10px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-pill); background: var(--ct-surface); color: var(--ct-ink); font-size: 13px; }

.ct-terms-box { margin-top: var(--ct-space-4); padding: var(--ct-space-4); border: 1px solid #f6d79b; border-radius: var(--ct-radius-md); background: var(--ct-warning-bg); font-size: var(--ct-fs-sm); }
.ct-terms-box strong { display: flex; align-items: center; gap: 6px; color: var(--ct-warning); }
.ct-terms-box p { margin: var(--ct-space-2) 0 var(--ct-space-3) !important; color: var(--ct-text); }

/* QR payment */
.ct-qr { display: grid; justify-items: center; gap: var(--ct-space-4); text-align: center; }
.ct-qr__frame { display: grid; place-items: center; width: min(280px, 100%); aspect-ratio: 1; padding: var(--ct-space-3); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); background: #fff; }
.ct-qr__frame img { width: 100%; height: auto; }
.ct-qr__loading { display: grid; justify-items: center; gap: var(--ct-space-2); color: var(--ct-muted); font-size: 13px; }
.ct-spinner { width: 32px; height: 32px; border: 3px solid var(--ct-primary-200); border-right-color: var(--ct-primary); border-radius: 50%; animation: ct-spin .8s linear infinite; }
.ct-qr__amount small { display: block; color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-qr__amount strong { color: var(--ct-primary); font-size: 34px; font-weight: 800; }
.ct-countdown { display: flex; align-items: center; justify-content: space-between; gap: var(--ct-space-3); color: var(--ct-ink); font-weight: 700; }
.ct-countdown__time { font-size: 24px; font-variant-numeric: tabular-nums; }
.ct-countdown__time.urgent { color: var(--ct-danger); }
.ct-progress { height: 8px; margin-top: var(--ct-space-3); overflow: hidden; border-radius: var(--ct-radius-pill); background: var(--ct-primary-100); }
.ct-progress > div { width: 100%; height: 100%; background: var(--ct-primary); transition: width 1s linear; }
.ct-progress > div.urgent { background: var(--ct-danger); }
.ct-spin { animation: ct-spin 1.2s linear infinite; }

/* Slip upload */
.ct-upload { position: relative; display: grid; place-items: center; gap: var(--ct-space-2); min-height: 180px; padding: var(--ct-space-6); border: 2px dashed var(--ct-primary-200); border-radius: var(--ct-radius-lg); background: var(--ct-primary-50); text-align: center; cursor: pointer; transition: border-color 160ms var(--ct-ease), background-color 160ms var(--ct-ease); }
.ct-upload:hover,
.ct-upload.dragover { border-color: var(--ct-primary); background: var(--ct-primary-100); }
.ct-upload.is-invalid { border-color: var(--ct-danger); background: var(--ct-danger-bg); }
.ct-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ct-upload img { max-height: 250px; border-radius: var(--ct-radius-md); }
.ct-upload .ct-icon { color: var(--ct-primary); }
.ct-bank { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-space-4); }
.ct-bank__logo { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border: 1px solid var(--ct-border); border-radius: 50%; background: #fff; }
.ct-bank__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ct-bank__number { color: var(--ct-primary); font-size: 18px; font-weight: 800; letter-spacing: .02em; }

/* Result pages */
.ct-result { display: grid; justify-items: center; gap: var(--ct-space-3); padding: var(--ct-space-7) var(--ct-space-6); text-align: center; }
.ct-result h2,
.ct-result__title { font-size: 28px; font-weight: 800; line-height: 1.35; }
.ct-result__resend { display: grid; justify-items: center; gap: var(--ct-space-2); width: 100%; margin-top: var(--ct-space-3); padding-top: var(--ct-space-5); border-top: 1px solid var(--ct-border); color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-result > p { max-width: 560px; color: var(--ct-text); }
.ct-result .ct-alert { width: 100%; max-width: 560px; text-align: left; }

/* ---------- Member area ---------- */

.ct-kpi { display: flex; align-items: center; gap: var(--ct-space-3); padding: var(--ct-space-4) var(--ct-space-5); }
.ct-kpi dt { color: var(--ct-muted); font-size: var(--ct-fs-sm); font-weight: 500; }
.ct-kpi dd { margin: 0; color: var(--ct-ink); font-size: 24px; font-weight: 800; line-height: 1.2; }
dl.ct-grid { margin: 0; }
.ct-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .ct-kpi { flex-direction: column; align-items: flex-start; gap: var(--ct-space-2); padding: var(--ct-space-4); }
  .ct-kpi .ct-tile { width: 40px; height: 40px; }
  .ct-kpi dd { font-size: 20px; white-space: nowrap; overflow-wrap: normal; }
}
@media (max-width: 339px) { .ct-kpis { grid-template-columns: 1fr; } }
.ct-kpi dd { overflow-wrap: anywhere; }

.ct-live:empty { display: none; }
.ct-live { margin: 0; padding: var(--ct-space-3) var(--ct-space-4); border-radius: var(--ct-radius-md); background: var(--ct-primary-50); color: var(--ct-ink); font-size: var(--ct-fs-sm); }

.ct-toolbar-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: var(--ct-space-4); padding: var(--ct-space-4) var(--ct-space-5); }
.ct-toolbar-card [role="status"] { color: var(--ct-muted); font-size: var(--ct-fs-sm); white-space: nowrap; }
@media (max-width: 767px) { .ct-toolbar-card { grid-template-columns: 1fr; } }

.ct-order { padding: 0; overflow: hidden; }
.ct-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-space-4); padding: var(--ct-space-5) var(--ct-space-6); }
.ct-order__title { flex: 1; min-width: 180px; }
.ct-order__title h2 { color: var(--ct-ink); font-size: 17px; font-weight: 700; line-height: 1.4; }
.ct-order__title small { display: flex; align-items: center; gap: 4px; color: var(--ct-muted); font-size: 13px; }
.ct-order__amount { color: var(--ct-ink); font-size: 20px; font-weight: 800; white-space: nowrap; }
.ct-order__body { display: grid; gap: var(--ct-space-4); padding: var(--ct-space-5) var(--ct-space-6) var(--ct-space-6); border-top: 1px solid var(--ct-border); }
.ct-order__body h3 { display: flex; align-items: center; gap: var(--ct-space-2); font-size: 15px; font-weight: 700; }
@media (max-width: 479px) {
  .ct-order__head,
  .ct-order__body { padding-inline: var(--ct-space-4); }
}

.ct-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ct-space-3); padding: var(--ct-space-4); border-radius: var(--ct-radius-md); background: var(--ct-warning-bg); }
.ct-next--ok { background: var(--ct-success-bg); }
.ct-next strong { display: block; color: var(--ct-ink); }
.ct-next p { color: var(--ct-text); font-size: var(--ct-fs-sm); }

.ct-license { display: grid; gap: var(--ct-space-3); padding: var(--ct-space-4); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-md); }
.ct-license + .ct-license { margin-top: var(--ct-space-3); }
.ct-license__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ct-space-2); }
.ct-license__top strong { color: var(--ct-ink); }
.ct-license__meta { display: flex; flex-wrap: wrap; gap: var(--ct-space-2) var(--ct-space-4); color: var(--ct-muted); font-size: 13px; }
.ct-license__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ct-days { color: var(--ct-warning); font-weight: 600; }

/* Quotation pages (markup shared with admin; skin applies on customer pages only) */
.ct-ui .ct-quotes-customer { max-width: none; margin: 0; padding: 0; color: var(--ct-text); font-family: var(--ct-font); }
.ct-ui .ct-quotes-customer .quote-panel { margin-bottom: var(--ct-space-5); padding: var(--ct-space-6); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); box-shadow: var(--ct-shadow-sm); }
.ct-ui .ct-quotes-customer :is(h1, h2, h3) { color: var(--ct-ink); }
.ct-ui .ct-quotes-customer h2 a { color: var(--ct-ink); text-decoration: none; }
.ct-ui .ct-quotes-customer h2 a:hover { color: var(--ct-primary); }
.ct-ui .ct-quotes-customer p { margin: var(--ct-space-2) 0; }
.ct-ui .ct-quotes-customer .quote-button { min-height: 40px; padding: 0 18px; border-color: var(--ct-primary-200); border-radius: var(--ct-radius-pill); color: var(--ct-primary); font-weight: 600; }
.ct-ui .ct-quotes-customer .quote-button:hover { border-color: var(--ct-primary); background: var(--ct-primary-50); }
.ct-ui .ct-quotes-customer .quote-primary { border-color: var(--ct-primary); background: var(--ct-primary); color: #fff; }
.ct-ui .ct-quotes-customer .quote-primary:hover { background: var(--ct-primary-hover); color: #fff; }
.ct-ui .ct-quotes-customer .quote-status { padding: 3px 12px; font-size: var(--ct-fs-xs); }
.ct-ui .ct-quotes-customer .quote-amount { color: var(--ct-ink); font-size: 24px; font-weight: 800; }
.ct-ui .ct-quotes-customer .quote-alert { border: 1px solid var(--ct-primary-200); background: var(--ct-primary-50); color: var(--ct-ink); }
.ct-ui .ct-quotes-customer .quote-alert-error { border-color: #f5c2c2; background: var(--ct-danger-bg); color: var(--ct-danger); }
.ct-ui .ct-quotes-customer .quote-alert-success { border-color: #b7e4c7; background: var(--ct-success-bg); color: var(--ct-ink); }
.ct-ui .ct-quotes-customer .quote-table-wrap { border: 1px solid var(--ct-border); border-radius: var(--ct-radius-md); }
.ct-ui .ct-quotes-customer .quote-table thead { background: var(--ct-primary-50); }
.ct-ui .ct-quotes-customer .quote-table :is(th, td) { padding: 10px 14px; border-color: var(--ct-border); }
.ct-ui .ct-quotes-customer .quote-response :is(select, textarea) { min-height: 48px; border-color: var(--ct-border); border-radius: var(--ct-radius-md); font-family: var(--ct-font); }
.ct-ui .ct-quotes-customer .quote-response :is(select, textarea):focus { border-color: var(--ct-primary); outline: none; box-shadow: var(--ct-focus); }
.ct-ui .ct-quotes-customer .quote-list { gap: var(--ct-space-5); }
.ct-ui .ct-quotes-customer .quote-list .quote-panel { margin: 0; }
@media (max-width: 767px) { .ct-ui .ct-quotes-customer .quote-panel { padding: var(--ct-space-4); } }

/* Guest quotation review (standalone document, no site layout) */
body.quote-guest-page.ct-ui { background: var(--ct-bg); }
.quote-guest-page .quote-guest-brand { max-width: 1120px; margin: 0 auto; padding: var(--ct-space-5) var(--ct-gutter); border-bottom: 1px solid var(--ct-border); }
.quote-guest-page .ct-quotes-customer { max-width: 1120px; margin: 0 auto; padding: var(--ct-space-6) var(--ct-gutter) var(--ct-section-y); }

/* Site setup (school-admin markup inside the member shell) */
.ct-ui .ct-member__content.cw-setup { display: block; max-width: none; margin: 0; padding: 0; }

/* ---------- Motion ---------- */

@keyframes ct-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ct-header *,
  .ct-footer *,
  .ct-ui * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .ct-card--link:hover { transform: none; }
}

/* Product imagery: shared public components, no commerce-band illustration. */
.ct-tile { --ct-tile-start: #4999ff; --ct-tile-end: #235ad1; background: linear-gradient(145deg, var(--ct-tile-start), var(--ct-tile-end)); color: #fff; box-shadow: inset 0 1px 0 #ffffff50, 0 6px 14px #173b7426; }
.ct-tile--green { --ct-tile-start: #27b98b; --ct-tile-end: #087956; }
.ct-tile--purple { --ct-tile-start: #a179f5; --ct-tile-end: #6b40c7; }
.ct-tile--orange { --ct-tile-start: #ffb64c; --ct-tile-end: #bc6109; }
.ct-tile--pink { --ct-tile-start: #f080b2; --ct-tile-end: #be326d; }
.ct-tile--success { background: var(--ct-success-bg); color: var(--ct-success); box-shadow: none; }
.ct-tile--warning { background: var(--ct-warning-bg); color: var(--ct-warning); box-shadow: none; }
.ct-tile--danger { background: var(--ct-danger-bg); color: var(--ct-danger); box-shadow: none; }
.ct-hero-visual { position: relative; max-width: 780px; margin: var(--ct-space-7) auto 0; }
.ct-hero-visual > img { display: block; width: 100%; height: auto; }
.ct-hero-products { list-style: none; padding: 0; margin: 0; position: absolute; inset: 15% 0 auto; display: grid; gap: var(--ct-space-4); text-align: left; }
.ct-hero-products li { max-width: 240px; }
.ct-hero-products li:nth-child(even) { justify-self: end; }
.ct-hero-products a { text-decoration: none; display: flex; align-items: center; gap: var(--ct-space-3); padding: var(--ct-space-3); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); box-shadow: var(--ct-shadow-md); color: var(--ct-ink); font-weight: 700; }
.ct-showcase { background: var(--ct-primary-50); }
.ct-preview { margin: 0; padding: var(--ct-space-4); min-width: 0; }
.ct-preview > a { display: grid; align-items: start; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-md); background: var(--ct-surface); }
.ct-preview img { display: block; width: 100%; height: auto; }
.ct-preview figcaption { padding: var(--ct-space-4) var(--ct-space-2) var(--ct-space-2); }
.ct-preview h3 { font-size: 20px; }
.ct-preview p { color: var(--ct-muted); margin-top: var(--ct-space-2); }
.ct-about__photo { padding: 0; overflow: hidden; }
.ct-about__photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.ct-cta--photo { position: relative; isolation: isolate; overflow: hidden; background: #103a79; }
.ct-cta__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; z-index: -1; }
@media (max-width: 767px) {
  .ct-hero-products { position: static; display: flex; flex-wrap: wrap; justify-content: center; margin-top: var(--ct-space-4); }
  .ct-hero-products li { max-width: 100%; }
  .ct-hero-products a { font-size: var(--ct-fs-sm); }
  .ct-hero-products .ct-tile { width: 36px; height: 36px; }
}

/* Reference-led refinement: one shared system for the customer website. */
:where(body.ct-ui) { --ct-ink: #071440; --ct-border: #d8e8ff; --ct-shadow-sm: 0 2px 5px #1264ba12, 0 3px 0 #c4dfff50; --ct-shadow-md: 0 5px 18px #1264ba17; }
.ct-ui .ct-btn { border-radius: var(--ct-radius-pill); }
.ct-ui .ct-btn:not(.ct-btn--outline, .ct-btn--ghost, .ct-btn--danger, .ct-btn--on-blue, .ct-btn--on-blue-outline) { background-image: linear-gradient(180deg, #008fff, #0753ef); box-shadow: 0 4px 8px #0862df24; }
.ct-ui .ct-tab[aria-selected="true"], .ct-ui .ct-tab[aria-pressed="true"], .ct-ui .ct-member-nav a[aria-current="page"] { background: linear-gradient(135deg, #009aff, #0754f7); box-shadow: 0 3px 7px #0662f52b; }
.ct-ui .ct-card { border-color: var(--ct-border); box-shadow: var(--ct-shadow-sm); }
.ct-ui .ct-section-head h2 { color: var(--ct-ink); font-weight: 800; }
.ct-ui .ct-section-head { margin-bottom: var(--ct-space-6); }
.ct-ui .ct-hero { padding-block: 40px 56px; background: radial-gradient(ellipse at 50% 5%, #fff 0%, #ffffff00 65%), linear-gradient(120deg, #a4d8ff, #eff8ff 46%, #b1dcff); }
.ct-ui .ct-hero::before { content: ""; position: absolute; width: 55%; height: 180%; left: -25%; bottom: -150%; border: 64px solid #78bdff4d; border-radius: 50%; transform: rotate(-25deg); pointer-events: none; }
.ct-ui .ct-band { position: relative; overflow: hidden; padding-bottom: 64px; background: radial-gradient(ellipse at 95% 100%, #9adfff 0%, #2fa7ff00 60%), linear-gradient(115deg, #0763ef, #079dff); }
.ct-ui .ct-band::after { content: ""; position: absolute; right: -8%; bottom: -92px; width: 55%; height: 150px; border-radius: 50%; background: #e5f5ff4d; pointer-events: none; transform: rotate(-12deg); }
.ct-ui .ct-band__row { position: relative; z-index: 1; }
.ct-ui .ct-cta { background: linear-gradient(110deg, #0053f5, #008eff); }
.ct-ui .ct-cta--light { background: linear-gradient(120deg, #eaf5ff, #d8ebff); }
.ct-ui .ct-cta--photo { background: #0755cb; }
.ct-ui .ct-footer { background: linear-gradient(110deg, #102849, #001d37); }
.ct-ui .ct-product-card { border-color: var(--ct-border); box-shadow: var(--ct-shadow-sm); border-radius: 20px; }
.ct-ui .ct-product-card__media { position: relative; background: radial-gradient(ellipse at 85% 0%, #ffffff55, transparent 65%), linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), white 25%)); }
.ct-ui .ct-product-card__media .ct-product-card__device { object-fit: contain; padding: 20px 12px 0; filter: drop-shadow(0 8px 10px #00368b30); }
.ct-ui .ct-product-card__body { position: relative; background: #fff; border-radius: 20px 20px 0 0; margin-top: -16px; }
.ct-ui .ct-plan { border-color: var(--ct-border); box-shadow: var(--ct-shadow-sm); }
.ct-ui .ct-plan.is-featured .ct-plan__head { background: linear-gradient(130deg, #008fff, #0753ef); }
.ct-ui .ct-auth { background: radial-gradient(ellipse at 50% 25%, #fff, #e9f5ff 75%); }
.ct-ui .ct-auth__panel { background: radial-gradient(ellipse at 30% 80%, #c7eaff, transparent 65%), #edf7ff; }
.ct-ui .ct-member { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
.ct-member > .ct-member-nav a { white-space: nowrap; }
.ct-ui .ct-member-nav { background: linear-gradient(160deg, #fff, #f1f8ff); }
.ct-ui .ct-member-nav__who { text-align: center; padding-block: 20px; }
.ct-policy-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.ct-policy-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; color: var(--ct-ink); text-decoration: none; font-weight: 700; text-align: center; background: #f5faff; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); box-shadow: var(--ct-shadow-sm); }
.ct-policy-tabs a .ct-icon { color: var(--ct-primary); }
.ct-policy-tabs a[aria-current="page"] { background: linear-gradient(135deg, #008fff, #0753ef); color: #fff; }
.ct-policy-tabs a[aria-current="page"] .ct-icon { color: #fff; }
.ct-home { --ct-section-y: 32px; }
.ct-home .ct-section-head h2 { font-size: 26px; }
.ct-home .ct-section-head p { font-size: 15px; }
.ct-home .ct-section-head { margin-bottom: 20px; }
.ct-home-hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 0 48px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 70%, #77d5ff 0%, #0094ff 38%, #0755e9 100%); }
.ct-home-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: conic-gradient(from 225deg at 50% 85%, #ffffff00, #ffffff22 20deg, #ffffff00 21deg 45deg, #ffffff0d 46deg 70deg, #ffffff00 71deg 100deg, #ffffff16 101deg 125deg, #ffffff00 126deg); }
.ct-home-hero::after { content: ""; position: absolute; z-index: -1; bottom: -75px; left: -5%; width: 110%; height: 120px; border-radius: 50%; background: var(--ct-bg); box-shadow: 0 -18px 0 #ffffff30, 0 -35px 0 #ffffff15; }
.ct-home-hero .ct-eyebrow { background: #fff; color: #09326a; }
.ct-home-hero h1 { margin: 4px 0 12px; color: #fff; font-size: clamp(42px, 5vw, 64px); line-height: 1.18; font-weight: 800; }
.ct-home-hero h1 > span { display: block; margin-top: 8px; font-size: clamp(24px, 3.2vw, 38px); }
.ct-home-hero h1 em { color: #ffec42; font-style: normal; }
.ct-home-hero__lead { color: #fff; font-size: 17px; line-height: 1.65; }
.ct-home-hero .ct-chips { justify-content: center; margin-top: 18px; }
.ct-home-hero .ct-chips .ct-icon { color: #fff; }
.ct-home-hero .ct-btn--outline { background: #fff; border-color: #0753ef; color: #0753ef; }
.ct-home-hero .ct-actions { position: relative; z-index: 1; margin-top: 0; }
.ct-orbit { position: relative; display: flex; align-items: center; justify-content: center; gap: 36px; max-width: 880px; min-height: 180px; margin: 14px auto 0; padding-bottom: 18px; }
.ct-orbit__rings { position: absolute; left: 5%; right: 5%; bottom: 8px; height: 66px; border: 1px solid #d5f5ff; border-radius: 50%; background: radial-gradient(ellipse, #d7faffc7, #83dcff25 65%, transparent); box-shadow: 0 0 0 18px #ffffff12, 0 0 0 36px #ffffff10, inset 0 0 0 18px #ffffff12; }
.ct-orbit__brand { position: relative; display: grid; place-items: center; width: 110px; height: 110px; flex: none; color: #fff; filter: drop-shadow(0 12px 0 #0760d5) drop-shadow(0 18px 10px #00479f66); transform: rotate(-6deg); }
.ct-orbit__products { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; max-width: 660px; list-style: none; margin: 0; padding: 0; }
.ct-orbit__products li { width: 140px; transform: rotate(5deg); }
.ct-orbit__products li:nth-child(even) { transform: rotate(-5deg); }
.ct-orbit__products a { min-height: 120px; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 12px; background: linear-gradient(145deg, #fff, #e2f0ff); border: 3px solid #fff; border-radius: 20px; box-shadow: 0 6px 0 #acd6ff, 0 10px 20px #003b9133; color: var(--ct-ink); text-decoration: none; }
.ct-orbit__products strong { font-size: 13px; line-height: 1.4; }
.ct-orbit__products .ct-tile { background: transparent; color: var(--ct-primary); box-shadow: none; }
.ct-home .ct-band-tint { padding: 22px; background: linear-gradient(110deg, #e1efff, #eef7ff); }
.ct-home .ct-feature { padding: 18px 14px; }
.ct-home .ct-feature h3 { font-size: 16px; }
.ct-home .ct-feature .ct-tile { width: 38px; height: 38px; border-radius: 12px; }
.ct-home-reasons .ct-icon { flex: none; color: var(--ct-primary); }
.ct-home .ct-showcase { background: radial-gradient(ellipse at center, #dfedff, transparent 70%); }
.ct-home .ct-showcase .ct-grid { max-width: 860px; margin-inline: auto; gap: 24px; align-items: center; }
.ct-home .ct-preview { padding: 9px; box-shadow: 0 12px 26px #083c7b20; }
.ct-home .ct-preview:first-child { transform: rotate(-3deg); }
.ct-home .ct-preview:last-child { transform: rotate(3deg); }
.ct-home .ct-preview figcaption { padding: 12px; }
.ct-home .ct-preview h3 { font-size: 17px; }
.ct-home .ct-preview p { font-size: 14px; }
.ct-home .ct-preview > a { aspect-ratio: 16 / 9; }
.ct-mobile-total { display: none; }
@media (max-width: 1023px) {
  .ct-ui .ct-member { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ct-ui .ct-hero { padding-block: 32px 48px; }
  .ct-ui .ct-band { padding-bottom: 56px; }
  .ct-home { --ct-section-y: 28px; }
  .ct-home-hero { padding-top: 32px; }
  .ct-home-hero h1 { font-size: 42px; }
  .ct-home-hero h1 > span { font-size: 26px; line-height: 1.45; }
  .ct-home-hero h1 em { display: block; }
  .ct-home-hero__lead { font-size: 15px; }
  .ct-home-hero .ct-actions { flex-direction: column; }
  .ct-home-hero .ct-actions > a { width: 100%; }
  .ct-home-hero .ct-chips { font-size: 13px; gap: 12px; }
  .ct-orbit { gap: 18px; min-height: 190px; }
  .ct-orbit__brand { width: 90px; }
  .ct-orbit__products { gap: 12px; }
  .ct-orbit__products li { width: 120px; }
  .ct-home .ct-section-head h2 { font-size: 22px; }
  .ct-home .ct-preview { transform: none; }
  .ct-policy-tabs { gap: 6px; }
  .ct-policy-tabs a { padding: 12px 5px; font-size: 12px; }
  .ct-mobile-total { position: fixed; bottom: 0; inset-inline: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid var(--ct-border); box-shadow: 0 -6px 24px #003b9112; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ct-mobile-total small { display: block; color: var(--ct-muted); font-size: 12px; }
  .ct-mobile-total strong { color: var(--ct-primary); font-size: 21px; white-space: nowrap; }
  .ct-mobile-total .ct-btn { min-height: 44px; padding-inline: 16px; font-size: 14px; }
  body:has(.ct-mobile-total) { padding-bottom: 100px; }
}

.ct-hero__symbols { position: absolute; inset: 0; max-width: 1160px; margin-inline: auto; pointer-events: none; }
.ct-hero__symbols > span { position: absolute; top: 24%; left: 24px; width: 82px; height: 82px; display: grid; place-items: center; color: var(--ct-primary); background: linear-gradient(145deg, #fff, #dfedff); border: 3px solid #fff; border-radius: 24px; box-shadow: 0 6px 0 #c4dfff, 0 10px 16px #0755cc1a; transform: rotate(-12deg); }
.ct-hero__symbols > span + span { left: auto; right: 24px; top: 35%; transform: rotate(12deg); }
.ct-ui .ct-auth__panel img { width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.ct-home-hero .ct-chips li { color: #fff; }
.ct-ui .ct-footer__social[data-social="facebook"] { background: #176ae8; color: #fff; }
.ct-ui .ct-footer__social[data-social="tiktok"] { background: #050b15; color: #fff; }
.ct-ui .ct-footer__social[data-social="youtube"] { background: #e11d1d; color: #fff; }
.ct-ui .ct-footer__social[data-social="instagram"] { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); color: #fff; }
.ct-ui .ct-footer__social[data-social="line"] { background: #06c755; color: #fff; }
.ct-footer__qr a { display: inline-block; border-radius: 12px; }
.ct-footer__qr a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ct-ui .ct-plan.is-featured .ct-plan__price { background: #0753ef; color: #fff; border-radius: 0 0 16px 16px; }
.ct-ui .ct-plan.is-featured .ct-plan__price strong, .ct-ui .ct-plan.is-featured .ct-plan__price span { color: #fff; }
@media (min-width: 768px) {
  .ct-home .ct-product-grid--single { display: block; max-width: 820px; margin-inline: auto; }
  .ct-home .ct-product-grid--single .ct-product-card { display: grid; grid-template-columns: 46% minmax(0, 1fr); }
  .ct-home .ct-product-grid--single .ct-product-card__media { height: 100%; min-height: 270px; aspect-ratio: auto; }
  .ct-home .ct-product-grid--single .ct-product-card__body { margin: 0 0 0 -16px; border-radius: 20px 0 0 20px; padding: 24px; }
  .ct-home .ct-product-grid--single .ct-product-card__media .ct-product-card__device { padding: 35px 20px 0 8px; }
}
@media (min-width: 980px) and (max-width: 1199px) {
  .ct-ui .ct-footer__grid { grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); gap: 20px; }
  .ct-ui .ct-footer__brand { grid-column: auto; display: block; max-width: none; }
  .ct-ui .ct-footer__blurb { margin-top: 14px; font-size: 12px; }
  .ct-ui .ct-footer__links { font-size: 12px; }
}
@media (max-width: 1199px) {
  .ct-hero__symbols > span { width: 56px; height: 56px; border-radius: 16px; opacity: .8; left: 12px; }
  .ct-hero__symbols > span + span { right: 12px; }
  .ct-hero__symbols .ct-icon { width: 28px; height: 28px; }
}
@media (max-width: 980px) { .ct-hero__symbols { display: none; } }

.ct-order__details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; color: var(--ct-primary); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; background: #f5faff; }
.ct-order__details > summary::-webkit-details-marker { display: none; }
.ct-order__details[open] > summary > .ct-icon { transform: rotate(180deg); }
.ct-order__details > summary:focus-visible { outline: 3px solid var(--ct-primary-200); outline-offset: -3px; }
.ct-ui .ct-order__head { padding-block: 18px; }
@media (max-width: 767px) { .ct-order__details > summary { padding: 12px 16px; } }

.ct-orbit__brand { width: 120px; height: 120px; border-radius: 50%; background: #fff; padding: 8px; filter: drop-shadow(0 8px 12px #00479f44); transform: rotate(-6deg); }
.ct-orbit__brand img { width: 100%; height: auto; }
@media (max-width: 767px) { .ct-orbit__brand { width: 90px; height: 90px; } }

.ct-cta__mascot { flex: none; width: 155px; height: 125px; object-fit: contain; align-self: end; margin: -16px -8px -32px -20px; }
.ct-contact__mascot { display: block; width: 100%; max-width: 330px; height: auto; margin-inline: auto; }
.ct-ui .ct-about__photo img { min-height: 0; object-fit: contain; padding: 16px; }
@media (max-width: 1023px) and (min-width: 768px) { .ct-cta__mascot { width: 115px; height: 110px; } }
@media (max-width: 767px) { .ct-cta__mascot { width: 180px; height: 130px; align-self: center; margin: -12px auto 0; } }

.ct-ui .ct-tile > .ct-icon { color: inherit; }

.ct-auth__brand { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 12px; }

/* School CMS and installation workspace: ct-ui skin over existing command forms. */
.ct-school-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.ct-school-tabs > a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); box-shadow: var(--ct-shadow-sm); background: #fff; color: var(--ct-ink); text-decoration: none; }
.ct-school-tabs > a > span:nth-child(2) { flex: 1; min-width: 0; }
.ct-school-tabs strong { display: block; font-size: 15px; }
.ct-school-tabs small { display: block; margin-top: 4px; color: var(--ct-muted); font-size: 12px; }
.ct-school-tabs > a > .ct-icon { color: var(--ct-primary); }
.ct-school-tabs > a[aria-current="page"] { border-color: var(--ct-primary); background: linear-gradient(135deg,#f2f8ff,#e4f0ff); }
.ct-ui .school-admin.ct-school-workspace { --sa-border: var(--ct-border); --cw-line: var(--ct-border); --cw-muted: var(--ct-muted); --cw-ink: var(--ct-ink); --cw-brand: var(--ct-primary); max-width: none; margin: 0; padding: 0; color: var(--ct-text); font-family: var(--ct-font); font-size: 15px; line-height: 1.65; }
.ct-ui .ct-school-workspace :is(h2,h3) { color: var(--ct-ink); font-weight: 700; line-height: 1.45; }
.ct-ui .ct-school-workspace h2 { font-size: 23px; }
.ct-ui .ct-school-workspace h3 { font-size: 18px; }
.ct-ui .ct-school-workspace p { margin-block: 8px 16px; }
.ct-ui .ct-school-workspace .sa-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; }
.ct-ui .ct-school-workspace .school-admin__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--ct-radius-pill); color: #fff !important; background: linear-gradient(180deg,#008fff,#0753ef); box-shadow: 0 3px 8px #0862df24; font: 600 14px/1.5 var(--ct-font); text-decoration: none; cursor: pointer; }
.ct-ui .ct-school-workspace .school-admin__button--secondary { color: var(--ct-primary) !important; background: #fff; border-color: var(--ct-primary-200); box-shadow: none; }
.ct-ui .ct-school-workspace .school-admin__button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.ct-ui .ct-school-workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { min-height: 46px; max-width: 100%; padding: 11px 14px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-md); background: #fff; color: var(--ct-ink); font: 400 14px/1.6 var(--ct-font); }
.ct-ui .ct-school-workspace :is(input,select,textarea):focus { border-color: var(--ct-primary); outline: 3px solid var(--ct-primary-200); outline-offset: 1px; }
.ct-ui .ct-school-workspace :is(input[type=checkbox],input[type=radio]) { accent-color: var(--ct-primary); width: 18px; height: 18px; flex: none; }
.ct-ui .ct-school-workspace :is(.school-admin__panel,.school-admin__nav,.sa-site,.cw-license,.cw-help,.cw-empty) { border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); background: #fff; box-shadow: var(--ct-shadow-sm); }
.ct-ui .ct-school-workspace .sa-site { padding: 22px 24px; margin-bottom: 24px; }
.ct-ui .ct-school-workspace .sa-site__icon { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(145deg,#48aaff,#0753ef); color: #fff; box-shadow: 0 5px 12px #0862df24; }
.ct-ui .ct-school-workspace .sa-site__domain { margin: 4px 0 8px; font-size: 23px; font-weight: 800; }
.ct-ui .ct-school-workspace .sa-site__label { margin: 0; color: var(--ct-muted); }
.ct-ui .ct-school-workspace .sa-site__meta { margin: 0; }
.ct-ui .ct-school-workspace .school-admin__workspace { grid-template-columns: 218px minmax(0,1fr); gap: 24px; align-items: start; }
.ct-ui .ct-school-workspace .school-admin__workspace > * { min-width: 0; }
.ct-ui .ct-school-workspace .school-admin__nav { padding: 12px; top: calc(var(--ct-header-h) + 16px); }
.ct-ui .ct-school-workspace .school-admin__nav a { padding: 10px 12px; gap: 10px; border-radius: 10px; color: var(--ct-ink); font-size: 14px; }
.ct-ui .ct-school-workspace .school-admin__nav a[aria-current="page"] { background: linear-gradient(135deg,#009aff,#0754f7); color: #fff; box-shadow: 0 3px 7px #0662f52b; }
.ct-ui .ct-school-workspace .school-admin__nav a:hover:not([aria-current]) { background: var(--ct-primary-50); color: var(--ct-primary); }
.ct-ui .ct-school-workspace .sa-nav-title { margin: 18px 12px 6px; color: var(--ct-muted); font-size: 12px; letter-spacing: 0; }
.ct-ui .ct-school-workspace .school-admin__panel { padding: 28px; }
.ct-ui .ct-school-workspace .cw-overview-header { padding-bottom: 18px; border-bottom: 1px solid var(--ct-border); }
.ct-ui .ct-school-workspace .cw-overview-header h2 { margin: 6px 0 8px; font-size: 26px; }
.ct-ui .ct-school-workspace .cw-overview-header p:last-child { margin-bottom: 0; }
.ct-ui .ct-school-workspace .cw-quick-tasks { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.ct-ui .ct-school-workspace .cw-quick-tasks a { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 16px; border-color: var(--ct-border); border-radius: var(--ct-radius-lg); background: linear-gradient(150deg,#f6fbff,#fff); box-shadow: var(--ct-shadow-sm); }
.ct-ui .ct-school-workspace .cw-quick-tasks a > .sa-ico { width: 46px; height: 46px; border-radius: 14px; background: #e6efff; color: var(--ct-primary); }
.ct-ui .ct-school-workspace .cw-quick-tasks a:nth-child(2) > .sa-ico { color: #7846c6; background: #f1eaff; }
.ct-ui .ct-school-workspace .cw-quick-tasks a:nth-child(3) > .sa-ico { color: #087956; background: #e3f6ec; }
.ct-ui .ct-school-workspace .cw-quick-tasks a > span:last-child { align-self: flex-end; color: var(--ct-primary); }
.ct-ui .ct-school-workspace .cw-quick-tasks strong { font-size: 16px; }
.ct-ui .ct-school-workspace .cw-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ct-ui .ct-school-workspace .cw-shortcuts h3 { grid-column: 1/-1; margin: 0 0 4px; }
.ct-ui .ct-school-workspace .cw-shortcuts > a { border: 1px solid var(--ct-border); border-radius: 12px; padding: 16px; color: var(--ct-ink); background: #fff; }
.ct-ui .ct-school-workspace .school-admin__section { padding-bottom: 20px; border-bottom: 1px solid var(--ct-border); }
.ct-ui .ct-school-workspace .school-admin__form label { font-size: 14px; font-weight: 600; color: var(--ct-ink); }
.ct-ui .ct-school-workspace .school-admin__search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--ct-primary-50); margin-bottom: 16px; }
.ct-ui .ct-school-workspace .school-admin__table { border: 1px solid var(--ct-border); border-radius: 12px; }
.ct-ui .ct-school-workspace th { color: var(--ct-ink); background: #edf5ff; }
.ct-ui .ct-school-workspace td { border-color: var(--ct-border); }
.ct-ui .ct-school-workspace .school-admin__files article { border-radius: 14px; border-color: var(--ct-border); background: #f8fbff; }
.ct-ui .ct-school-workspace .school-admin__pagination { flex-wrap: wrap; font-size: 14px; }
.ct-ui .ct-school-workspace .sa-empty { padding: 36px 24px; }
.ct-school-empty-art { display: block; width: min(320px,100%); height: auto; margin: 0 auto 12px; }
.ct-ui .ct-school-workspace .sa-empty > .sa-ico { display: grid; width: 64px; height: 64px; margin-inline: auto; border-radius: 20px; background: #eaf3ff; color: var(--ct-primary); }
.ct-ui .ct-school-workspace .sa-alert { border-radius: 14px; padding: 16px 20px; }
.ct-ui .ct-school-workspace .cw-live:not(:empty) { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; margin: 0 0 16px !important; overflow: visible !important; }
.ct-setup-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.ct-setup-summary > div { display: flex; gap: 12px; align-items: center; padding: 20px 16px; min-width: 0; }
.ct-setup-summary > div > div { min-width: 0; }
.ct-setup-summary > div:nth-child(2) .ct-tile { background: linear-gradient(145deg,#27b98b,#087956); }
.ct-setup-summary > div:nth-child(3) .ct-tile { background: linear-gradient(145deg,#a179f5,#6b40c7); }
.ct-setup-summary span:not(.ct-tile) { display: block; font-size: 12px; color: var(--ct-muted); }
.ct-setup-summary strong { display: block; color: var(--ct-ink); font-size: 28px; font-weight: 800; line-height: 1.3; }
.ct-setup-summary small { font-size: 13px; font-weight: 400; color: var(--ct-muted); }
.ct-ui .ct-school-workspace .cw-help { padding: 0 22px 8px; margin: 0 0 24px; background: linear-gradient(135deg,#f5faff,#fff); }
.ct-ui .ct-school-workspace .cw-help summary { display: flex; align-items: center; gap: 10px; min-height: 64px; font-size: 17px; color: var(--ct-ink); list-style: none; }
.ct-ui .ct-school-workspace .cw-help summary::-webkit-details-marker { display: none; }
.ct-setup-help-toggle { margin-left: auto; color: var(--ct-primary); }
.ct-ui .ct-school-workspace .cw-help[open] .ct-setup-help-toggle { transform: rotate(180deg); }
.ct-ui .ct-school-workspace .cw-help ol { list-style: none; counter-reset: setup; margin: 0; padding: 0 0 16px; gap: 14px; }
.ct-ui .ct-school-workspace .cw-help li { counter-increment: setup; padding: 16px 16px 16px 54px; position: relative; border: 1px solid var(--ct-border); border-radius: 12px; background: #fff; }
.ct-ui .ct-school-workspace .cw-help li::before { content: counter(setup); position: absolute; top: 16px; left: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ct-primary); color: #fff; font-weight: 700; }
.ct-ui .ct-school-workspace .cw-help p { font-size: 13px; margin: 6px 0 0; }
.ct-ui .ct-school-workspace .cw-license { margin-bottom: 24px; }
.ct-ui .ct-school-workspace .cw-license-header { padding: 22px; background: linear-gradient(110deg,#edf6ff,#fff); border-color: var(--ct-border); }
.ct-ui .ct-school-workspace .cw-license-header h2 { font-size: 20px; }
.ct-ui .ct-school-workspace .cw-license-header p { font-size: 13px; margin: 6px 0 0; }
.ct-ui .ct-school-workspace .sa-chip { border-radius: var(--ct-radius-pill); padding: 5px 12px; font-size: 12px; }
.ct-ui .ct-school-workspace .cw-installation { padding: 22px; border-color: var(--ct-border); }
.ct-ui .ct-school-workspace .cw-installation h3 { font-size: 18px; }
.ct-ui .ct-school-workspace .cw-next { padding: 12px 16px; border-radius: 10px; background: var(--ct-primary-50); color: var(--ct-text); font-size: 14px; }
.ct-ui .ct-school-workspace .cw-domain-form { padding: 22px; background: #f5faff; border-top: 1px solid var(--ct-border); }
.ct-ui .ct-school-workspace .cw-domain-form h3 { font-size: 17px; }
.ct-ui .ct-school-workspace .cw-domain-form small { font-size: 12px; }
/* Action buttons on the setup page used an unstyled class (provisioning.css is not loaded here). */
.ct-ui .ct-school-workspace .prov__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--ct-radius-pill); background: linear-gradient(180deg, #008fff, #0753ef); box-shadow: 0 4px 8px #0862df24; color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.ct-ui .ct-school-workspace .prov__button, .ct-ui .ct-school-workspace .prov__button:hover { text-decoration: none; }
.ct-ui .ct-school-workspace .prov__button:not(.prov__button--secondary, .prov__button--danger):hover { color: #fff; }
.ct-ui .ct-school-workspace .prov__button:hover { filter: brightness(1.06); }
/* Destructive action sits apart from the routine ones so it is not hit by accident. */
.ct-ui .ct-school-workspace .cw-inline-actions > form:has(.prov__button--danger) { margin-left: auto; }
.ct-ui .ct-school-workspace .prov__button:focus-visible { outline: none; box-shadow: var(--ct-focus); }
.ct-ui .ct-school-workspace .prov__button:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.ct-ui .ct-school-workspace .prov__button--secondary { background: var(--ct-surface, #fff); border-color: var(--ct-primary-200); box-shadow: none; color: var(--ct-primary); }
.ct-ui .ct-school-workspace .prov__button--secondary:hover { background: var(--ct-primary-50); border-color: var(--ct-primary); filter: none; }
.ct-ui .ct-school-workspace .prov__button--danger { background: #fff; border-color: #f1c9c5; box-shadow: none; color: #b42318; }
.ct-ui .ct-school-workspace .prov__button--danger:hover { background: #fef3f2; border-color: #b42318; filter: none; }
/* Line the register button up with the input, not with the helper text under it. */
.ct-ui .ct-school-workspace .cw-domain-form .prov__button { margin-bottom: 26px; }
.ct-ui .ct-school-workspace .cw-domain-form input { min-height: 52px; border-radius: 12px; }
.ct-ui .ct-school-workspace .cw-empty { padding: 36px 24px; }
.ct-ui .ct-school-workspace .cw-empty > .ct-tile { margin-bottom: 18px; }
.ct-ui .ct-school-workspace .cw-empty h2 { font-size: 22px; }
.ct-ui .ct-school-workspace .cw-empty p { font-size: 14px; }
.ct-ui .ct-school-workspace .cw-secrets { border: 1px solid #ebc15d; border-left: 4px solid #d99b13; padding: 24px; border-radius: 16px; background: #fffcf0; box-shadow: var(--ct-shadow-sm); }
.ct-ui .ct-school-workspace .cw-secret-block { border-color: #ecdba7; }
.ct-ui .ct-school-workspace .cw-why { font-size: 15px; line-height: 1.7; }
.ct-ui .ct-school-workspace .cw-steps { margin: 16px 0; padding: 0; list-style: none; counter-reset: cwstep; display: grid; gap: 10px; }
.ct-ui .ct-school-workspace .cw-steps li { counter-increment: cwstep; position: relative; padding: 12px 14px 12px 52px; border: 1px solid #ecdba7; border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.6; }
.ct-ui .ct-school-workspace .cw-steps li::before { content: counter(cwstep); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #d99b13; color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.ct-ui .ct-school-workspace .cw-forward { margin: 12px 0 18px; padding: 10px 14px; border: 1px dashed #d99b13; border-radius: 12px; background: #fff; }
.ct-ui .ct-school-workspace .cw-forward summary { cursor: pointer; font-weight: 600; color: var(--ct-primary); }
.ct-ui .ct-school-workspace .cw-forward textarea { width: 100%; margin: 12px 0; }
.ct-ui .ct-school-workspace .cw-fields-title { margin: 18px 0 6px; font-weight: 600; }
.ct-ui .ct-school-workspace .cw-hint { margin: 8px 0 12px; font-size: 13px; color: var(--ct-muted, #5b6472); }
.ct-ui .ct-school-workspace .cw-note--info { padding: 12px 16px; border-radius: 10px; background: var(--ct-primary-50); font-size: 14px; }
.ct-ui .ct-school-workspace .cw-copy-field button { border-color: var(--ct-primary-200); border-radius: 12px; color: var(--ct-primary); font-weight: 600; min-height: 44px; }
.ct-ui .ct-school-workspace .sa-code { font: 13px/1.6 Consolas,monospace; }
.ct-ui .ct-school-workspace .cw-secondary-task { padding: 8px 14px; border: 1px solid var(--ct-border); border-radius: 12px; margin-top: 12px; background: #fafcff; }
.ct-ui .ct-school-workspace .cw-secondary-task summary { color: var(--ct-primary); }
/* Inside the action row the disclosure is a secondary pill that matches the primary button. */
.ct-ui .ct-school-workspace .cw-inline-actions { align-items: flex-start; gap: 12px; }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task { margin: 0; padding: 0; border: 0; background: none; }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task[open] { flex: 1 1 100%; }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 48px; padding: 0 22px; border: 1px solid var(--ct-primary-200); border-radius: var(--ct-radius-pill); background: var(--ct-surface, #fff); color: var(--ct-primary); font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; transition: background .15s, border-color .15s; }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > summary::-webkit-details-marker { display: none; }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > summary::after { content: "\25BE"; font-size: 12px; transition: transform .15s; }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task[open] > summary::after { transform: rotate(180deg); }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > summary:hover { background: var(--ct-primary-50); border-color: var(--ct-primary); }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > summary:focus-visible { outline: none; box-shadow: var(--ct-focus); }
.ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > p { margin: 12px 0; padding: 12px 16px; border-radius: 10px; background: #fafcff; border: 1px solid var(--ct-border); }
.ct-ui .ct-school-workspace .cw-rotate { border-color: #f2d5ab; background: #fffaf3; }
@media (max-width: 1199px) { .ct-ui .ct-school-workspace .cw-quick-tasks { grid-template-columns: 1fr; } .ct-ui .ct-school-workspace .cw-quick-tasks a { flex-direction: row; align-items: center; } }
@media (max-width: 1023px) {
  .ct-school-tabs > a { gap: 10px; padding: 14px; }
  .ct-school-tabs small { display: none; }
  .ct-school-tabs > a > .ct-icon { display: none; }
  .ct-ui .ct-school-workspace .school-admin__workspace { grid-template-columns: 1fr; }
  .ct-ui .ct-school-workspace .school-admin__nav { position: static; flex-wrap: wrap; flex-direction: column; }
  .ct-ui .ct-school-workspace .cw-menu-toggle { border-radius: 12px; border-color: var(--ct-primary-200); color: var(--ct-primary); }
}
@media (max-width: 767px) {
  .ct-school-tabs { display: flex; overflow-x: auto; padding-bottom: 6px; gap: 8px; }
  .ct-school-tabs > a { flex: 0 0 auto; padding: 12px; }
  .ct-school-tabs strong { font-size: 13px; }
  .ct-school-tabs .ct-tile { width: 34px; height: 34px; border-radius: 10px; }
  .ct-ui .ct-school-workspace .school-admin__panel { padding: 20px 16px; }
  .ct-ui .ct-school-workspace .sa-site { padding: 18px 16px; }
  .ct-ui .ct-school-workspace .sa-site__switch { display: grid; grid-template-columns: 1fr auto; }
  .ct-ui .ct-school-workspace .sa-site__switch label { grid-column: 1/-1; }
  .ct-ui .ct-school-workspace .cw-shortcuts { grid-template-columns: 1fr; }
  .ct-ui .ct-school-workspace .school-admin__search > input { width: 100%; min-width: 0; }
  .ct-ui .ct-school-workspace .school-admin__table { padding-inline: 12px; }
  .ct-ui .ct-school-workspace .cw-license-header, .ct-ui .ct-school-workspace .cw-installation, .ct-ui .ct-school-workspace .cw-domain-form { padding: 18px 16px; }
  .ct-ui .ct-school-workspace .cw-domain-form .prov__button { width: 100%; margin-bottom: 0; }
  .ct-setup-summary { gap: 8px; }
  .ct-setup-summary > div { display: block; text-align: center; padding: 14px 6px; }
  .ct-setup-summary .ct-tile { width: 36px; height: 36px; margin-bottom: 10px; }
  .ct-setup-summary strong { font-size: 24px; }
  .ct-setup-summary small { display: block; font-size: 11px; }
  .ct-ui .ct-school-workspace .cw-help { padding-inline: 16px; }
  .ct-ui .ct-school-workspace .cw-help summary { font-size: 15px; }
  .ct-ui .ct-school-workspace .cw-help ol { grid-template-columns: 1fr; }
  .ct-ui .ct-school-workspace .cw-secrets { padding: 20px 16px; }
  .ct-ui .ct-school-workspace .cw-inline-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .ct-ui .ct-school-workspace .cw-inline-actions .prov__button, .ct-ui .ct-school-workspace .cw-inline-actions > .cw-secondary-task > summary { width: 100%; }
  .ct-ui .ct-school-workspace .cw-inline-actions > form:has(.prov__button--danger) { margin-left: 0; }
  .ct-ui .ct-school-workspace .cw-inline-actions .school-admin__button { width: 100%; }
}

.ct-ui .ct-school-workspace .school-admin__form > .school-admin__table { grid-column: 1 / -1; }
.ct-ui .ct-school-workspace .school-admin__form > fieldset { min-width: 0; padding: 16px; border: 1px solid var(--ct-border); border-radius: 12px; }
.ct-ui .ct-school-workspace .school-admin__table input[type=number] { width: 84px; }
.ct-ui .ct-school-workspace .school-admin__message { padding: 18px; margin-block: 16px; border: 1px solid var(--ct-border); border-radius: 12px; background: #f8fbff; }
.ct-ui .ct-school-workspace .school-admin__message form { display: inline-flex; margin-right: 16px; }

/* Responsive contract: mobile <=767, tablet 768–1023, desktop >=1024. */
@media (max-width: 1023px) {
  .ct-header__bar { position: relative; }
  .ct-header__actions > .ct-menu { position: static; }
  .ct-header__actions > .ct-menu > .ct-menu__panel { left: var(--ct-gutter); right: var(--ct-gutter); top: calc(var(--ct-header-h) - 4px); width: auto; min-width: 0; max-width: none; max-height: calc(100dvh - var(--ct-header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .ct-ui :is(input,select,textarea) { scroll-margin-block: calc(var(--ct-header-h) + 16px); }
}
@media (max-width: 767px) {
  .ct-ui :is(.ct-input,.ct-select,.ct-textarea), .ct-ui .ct-school-workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea), .ct-ui .ct-quotes-customer :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { font-size: 16px; }
  .ct-ui :is(.ct-btn,.ct-tab,.ct-pagination a,.ct-input-btn) { min-height: 44px; }
  .ct-ui .ct-input-btn { min-width: 44px; }
  .ct-home .ct-preview:is(:first-child,:last-child) { transform: none; }
  .ct-home #home-steps-title .ct-hl { white-space: nowrap; }
  .ct-ui :is(.ct-card__head,.ct-label-row,.ct-rows > div,.ct-total) { flex-wrap: wrap; }
  .ct-ui .ct-rows dd { min-width: 0; overflow-wrap: anywhere; }
  .ct-ui .ct-card__head h2 { min-width: 0; }
  .ct-ui .ct-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .ct-ui .ct-footer__links a { min-height: 44px; align-items: center; }
}
@media (max-width: 359px) {
  .ct-header__bar { gap: 8px; }
  .ct-header__brand { width: 104px; height: 32px; }
  .ct-header__brand img { margin-top: -8px; }
  .ct-member__toggle { padding-inline: 4px; }
  .ct-member__toggle > .ct-icon { display: none; }
  .ct-mobile-total { gap: 8px; padding-inline: 12px; }
  .ct-mobile-total .ct-btn { font-size: 13px; padding-inline: 12px; }
  .ct-ui .ct-search__row .ct-btn { padding-inline: 12px; }
  .ct-ui .ct-auth__form { padding-inline: 16px; }
  .ct-ui .ct-label-row { align-items: flex-start; gap: 4px 12px; }
}
/* Email verification: reference 29, using the existing registration flow. */
.ct-email-verification__body { padding-block: var(--ct-space-5); }
.ct-email-verification__card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: var(--ct-space-5); padding: var(--ct-space-5); }
.ct-email-verification__visual { position: relative; min-width: 0; background: radial-gradient(circle, var(--ct-primary-50), transparent 70%); }
.ct-email-verification__visual img { display: block; width: 100%; height: auto; max-width: 380px; margin-inline: auto; }
.ct-email-verification__seal { position: absolute; right: 12%; bottom: 12%; display: flex; align-items: center; padding: var(--ct-space-3); border-radius: var(--ct-radius-lg); background: var(--ct-surface); color: var(--ct-primary); box-shadow: var(--ct-shadow-md); }
.ct-email-verification__seal > span { color: var(--ct-success); }
.ct-email-verification__content { min-width: 0; }
.ct-email-verification__content h2 { margin-top: 0; font-size: clamp(26px, 3vw, 38px); }
.ct-email-verification__address { display: flex; align-items: center; gap: var(--ct-space-3); padding: var(--ct-space-3); border-radius: var(--ct-radius-md); background: var(--ct-primary-50); color: var(--ct-ink); }
.ct-email-verification__address svg { flex-shrink: 0; color: var(--ct-primary); }
.ct-email-verification__address strong { min-width: 0; overflow-wrap: anywhere; }
.ct-email-verification__content .ct-result__resend { margin-top: var(--ct-space-3); }
.ct-email-verification__steps { margin-top: var(--ct-space-4); padding: var(--ct-space-4); }
.ct-email-verification__steps h2 { display: flex; align-items: center; gap: var(--ct-space-2); margin-top: 0; }
.ct-email-verification__help { display: flex; align-items: center; gap: var(--ct-space-3); margin-top: var(--ct-space-4); padding: var(--ct-space-4); }
.ct-email-verification__help h2, .ct-email-verification__help p { margin: 0; }
.ct-email-verification__help > .ct-btn { margin-inline-start: auto; flex-shrink: 0; }
@media (max-width: 767px) {
  .ct-email-verification__card { grid-template-columns: minmax(0, 1fr); padding: var(--ct-space-3); gap: var(--ct-space-3); }
  .ct-email-verification__visual { max-width: 260px; margin-inline: auto; }
  .ct-email-verification__help { flex-wrap: wrap; }
  .ct-email-verification__help > div { flex: 1 1 180px; }
  .ct-email-verification__help > .ct-btn { width: 100%; margin: 0; }
}

/* Home hero orbit — single row (ref #1): products left, brand centre, products right. */
.ct-orbit { flex-wrap: nowrap; gap: 14px; max-width: 920px; min-height: 0; margin-top: 22px; padding: 6px 0 30px; }
.ct-orbit__rings { left: 2%; right: 2%; bottom: 6px; height: 74px; }
.ct-orbit__products { flex-wrap: nowrap; gap: 14px; max-width: none; align-items: center; }
.ct-orbit__products li { --ct-orbit-w: clamp(78px, 9.6vw, 100px); flex: none; width: var(--ct-orbit-w); transform: none; }
.ct-orbit__products--left li:nth-child(1) { transform: translateY(-12px) rotate(-11deg); }
.ct-orbit__products--left li:nth-child(2) { transform: translateY(-2px) rotate(-6deg); }
.ct-orbit__products--left li:nth-child(3) { transform: translateY(6px) rotate(-2deg); }
.ct-orbit__products--right li:nth-child(1) { transform: translateY(6px) rotate(3deg); }
.ct-orbit__products--right li:nth-child(2) { transform: translateY(-2px) rotate(7deg); }
.ct-orbit__products--right li:nth-child(3) { transform: translateY(-12px) rotate(11deg); }
.ct-orbit__products a { min-height: calc(var(--ct-orbit-w) * 1.08); gap: 6px; padding: 10px 6px; border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease; }
.ct-orbit__products a:hover { transform: translateY(-4px); box-shadow: 0 6px 0 #acd6ff, 0 16px 24px #003b9144; }
.ct-orbit__products a:focus-visible { outline: 3px solid #ffec42; outline-offset: 3px; }
.ct-orbit__products strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.ct-orbit__products .ct-tile { width: 42px; height: 42px; background: transparent; color: var(--ct-tile-end); }
.ct-orbit__products .ct-tile .ct-icon { width: 36px; height: 36px; }
.ct-orbit__more a { background: linear-gradient(145deg, #ffffff4d, #ffffff26); border: 2px dashed #ffffffcc; box-shadow: none; color: #fff; }
.ct-orbit__more a:hover { box-shadow: 0 10px 20px #003b9144; }
.ct-orbit__more .ct-tile { color: #fff; }
.ct-orbit__brand { width: 124px; height: 124px; margin-inline: 4px; }
.ct-home-hero .ct-actions { margin-top: 4px; }
.ct-home-hero .ct-btn--outline .ct-icon { color: #0753ef; }
.ct-home-hero .ct-chips { gap: 12px 36px; margin-top: 22px; }
@media (max-width: 767px) {
  .ct-orbit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 340px; padding-bottom: 26px; }
  .ct-orbit__rings { left: -6%; right: -6%; }
  .ct-orbit__brand { grid-column: 1 / -1; order: -1; justify-self: center; width: 96px; height: 96px; margin: 0 0 4px; }
  .ct-orbit__products { display: contents; }
  .ct-orbit__products li { --ct-orbit-w: 100%; width: auto; }
  .ct-orbit__products li:nth-child(odd) { transform: rotate(-3deg); }
  .ct-orbit__products li:nth-child(even) { transform: rotate(3deg); }
  .ct-orbit__products--left li:nth-child(n), .ct-orbit__products--right li:nth-child(n) { transform: none; }
  .ct-orbit__products a { min-height: 104px; }
  .ct-orbit__products a:hover { transform: none; }
  .ct-home-hero .ct-chips { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ct-orbit__products a { transition: none; } }
/* Chips sit on the light wave under the hero, as in ref #1. */
.ct-home-hero { padding-bottom: 28px; }
.ct-home-hero::after { bottom: -72px; height: 150px; }
.ct-home-hero .ct-chips { margin-top: 24px; }
.ct-home-hero .ct-chips li, .ct-home-hero .ct-chips li { color: #0b2a5b; font-weight: 600; }
.ct-home-hero .ct-chips .ct-icon { color: var(--ct-primary); }
.ct-orbit__products li { position: relative; z-index: 1; }
.ct-home-hero .ct-chips { margin-top: 52px; }
@media (max-width: 767px) { .ct-home-hero .ct-chips { margin-top: 68px; } }
@media (max-width: 767px) { .ct-home-hero::after { left: -35%; width: 170%; } .ct-home-hero .ct-chips { margin-top: 56px; } }

/* Home showcase: 1–4 admin-picked product gallery images. */
.ct-home .ct-showcase__grid { display: grid; gap: 20px; margin-inline: auto; align-items: start; grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.ct-home .ct-showcase__grid .ct-preview, .ct-home .ct-showcase__grid .ct-preview:first-child, .ct-home .ct-showcase__grid .ct-preview:last-child { transform: none; }
.ct-home .ct-showcase__grid .ct-preview > a { transition: box-shadow .18s ease; }
.ct-home .ct-showcase__grid .ct-preview:hover > a { box-shadow: 0 8px 20px #083c7b33; }
@media (min-width: 768px) {
  .ct-home .ct-showcase__grid--1 { max-width: 560px; }
  .ct-home .ct-showcase__grid--2 { max-width: 860px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-home .ct-showcase__grid--3 { max-width: 1000px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-home .ct-showcase__grid--4 { max-width: 760px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ct-home .ct-showcase__grid--4 { max-width: 1120px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Pricing product picker (more than 4 products): searchable popover instead of a scrolling tab strip. */
.ct-pricing .ct-picker, .ct-picker { display: flex; justify-content: center; margin: 0 auto var(--ct-space-8); }
.ct-picker .ct-menu { width: min(520px, 100%); }
.ct-picker__current { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg); background: var(--ct-surface); box-shadow: var(--ct-shadow-sm); cursor: pointer; color: var(--ct-ink); }
.ct-picker__current:hover { border-color: var(--ct-primary-200); }
.ct-picker__current:focus-visible { outline: 3px solid var(--ct-primary-200); outline-offset: 2px; }
.ct-picker__current > .ct-icon { margin-left: auto; flex: none; color: var(--ct-primary); transition: transform .18s ease; }
.ct-picker .ct-menu[open] > .ct-picker__current > .ct-icon { transform: rotate(180deg); }
.ct-picker__current .ct-tile { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.ct-picker__label { min-width: 0; text-align: left; }
.ct-picker__label small { display: block; color: var(--ct-muted); font-size: var(--ct-fs-xs); }
.ct-picker__label strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--ct-fs-base, 16px); font-weight: 700; }
.ct-picker__panel { left: 0; right: 0; width: auto; min-width: 0; max-width: none; padding: var(--ct-space-3); }
.ct-picker__search { position: relative; display: block; margin-bottom: var(--ct-space-2); }
.ct-picker__search .ct-icon { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--ct-muted); pointer-events: none; }
.ct-picker__search input { width: 100%; min-height: 44px; padding: 0 12px 0 40px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-md); background: var(--ct-surface); font: inherit; font-size: var(--ct-fs-sm); color: var(--ct-ink); }
.ct-picker__search input:focus-visible { outline: 3px solid var(--ct-primary-200); outline-offset: 1px; border-color: var(--ct-primary); }
.ct-picker__list { margin: 0; padding: 0; list-style: none; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.ct-picker__list li[hidden] { display: none; }
.ct-picker__item { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: inherit; }
.ct-picker__item.is-active { background: var(--ct-primary-50); color: var(--ct-primary); font-weight: 700; }
.ct-picker__empty { margin: 0; padding: var(--ct-space-4); text-align: center; color: var(--ct-muted); font-size: var(--ct-fs-sm); }
.ct-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .ct-picker__current { min-height: 60px; padding-inline: 14px; } }

/* About page (ref #8): who / vision-mission / why / approach. */
.ct-about .ct-section--tight { padding-top: 0; }
.ct-about .ct-about__checks { margin-top: var(--ct-space-4); }
.ct-about .ct-checklist .ct-icon { color: var(--ct-primary); }
.ct-about__note { margin-top: var(--ct-space-4); color: var(--ct-muted); font-size: var(--ct-fs-sm); line-height: 1.6; }
.ct-about__vm h2 { display: flex; align-items: center; gap: 12px; margin-bottom: var(--ct-space-3); font-size: 20px; font-weight: 700; }
.ct-about__vm h2 .ct-tile { flex: none; width: 44px; height: 44px; border-radius: 14px; }
.ct-about__vm > p { color: var(--ct-muted); line-height: 1.7; }
.ct-about__why { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ct-space-4); margin: 0; padding: 0; list-style: none; }
.ct-about__why > li { flex: 1 1 200px; max-width: 250px; padding: 22px 16px; }

/* Footer product links stay on one line; full name is in the title attribute. */
.ct-footer__links a.ct-footer__link--clip { display: flex; max-width: 100%; min-width: 0; }
.ct-footer__link--clip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cart line quantity stepper: sits in the price column, left of the price. */
.ct-qty { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0 var(--ct-space-2, 8px) 0 0; }
.ct-qty__btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--ct-border); border-radius: 10px; background: var(--ct-surface); color: var(--ct-primary); cursor: pointer; }
.ct-qty__btn:hover:not(:disabled) { background: var(--ct-primary-50); border-color: var(--ct-primary-200); }
.ct-qty__btn:focus-visible { outline: 3px solid var(--ct-primary-200); outline-offset: 2px; }
.ct-qty__btn:disabled { color: var(--ct-muted); opacity: .45; cursor: not-allowed; }
.ct-qty__value { min-width: 26px; text-align: center; color: var(--ct-ink); font-weight: 700; }
@media (max-width: 767px) { .ct-qty__btn { width: 40px; height: 40px; } }
@media (max-width: 479px) {
  .ct-line__main { flex: 1 1 100%; }
  .ct-qty { margin: 0 auto 0 0; }
}

/* Cart summary: keep the reassurance list off the buttons (.ct-checklist resets margin after .ct-section-foot). */
.ct-checklist.ct-section-foot { margin-top: var(--ct-space-6); }
.ct-checkout__aside .ct-actions.ct-section-foot { margin-top: var(--ct-space-5); }

/* Bank-transfer slip states (my-orders + upload-slip). */
.ct-next--wait { background: var(--ct-primary-50); }
.ct-next--danger { background: var(--ct-danger-bg); }
.ct-next strong .ct-icon { margin-right: 6px; vertical-align: -3px; }
.ct-alert p + p { margin-top: 4px; }
.ct-alert strong { display: block; }
.ct-resubmit { display: block; } /* not grid: a grid <details> shows its content while closed */
.ct-resubmit > :not(summary) + :not(summary) { margin-top: var(--ct-space-5); }
.ct-resubmit > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--ct-border); border-radius: var(--ct-radius-md); background: var(--ct-surface); color: var(--ct-primary); font-weight: 700; cursor: pointer; list-style: none; }
.ct-resubmit > summary::-webkit-details-marker { display: none; }
.ct-resubmit > summary .ct-icon:last-child { transition: transform .18s ease; }
.ct-resubmit[open] > summary .ct-icon:last-child { transform: rotate(180deg); }
.ct-resubmit > summary:focus-visible { outline: 3px solid var(--ct-primary-200); outline-offset: 2px; }
.ct-resubmit[open] > summary { margin-bottom: var(--ct-space-5); }

/* Member notifications stay available inside the account menu on small screens. */
@media (max-width: 767px) { .ct-header__notification { display: none; } }
