*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-600); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--brand); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.section p, .hero p, .cta-band p, .page-hero p { max-width: 72ch; }
.center p, .section-head p, .hero p, .cta-band p, .page-hero p, .center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; line-height: 1.7; color: #4a5366; }
.section-head p { font-size: 1.05rem; }
.split p { font-size: 1.02rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header (mirrors iibp.com.au) ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 14px rgba(5, 26, 75, .08); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 92px; position: relative; }
.site-header .container { max-width: none; padding: 0 34px; }
@media (max-width: 860px) { .site-header .container { padding: 0 16px; } }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 66px; width: auto; }
.logo .logo-mark { height: var(--logo-h, 58px); width: auto; max-width: 300px; object-fit: contain; display: block; }
.logo-name { font-family: var(--font-heading); font-weight: 600; color: var(--brand); font-size: .84rem; line-height: 1.25; letter-spacing: .2px; white-space: nowrap; }
.logo-name + .logo-sub { margin-left: 2px; }
.logo-sub { font-family: var(--font-heading); font-weight: 600; color: var(--brand); font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; border-left: 2px solid var(--accent); padding-left: 12px; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; align-self: stretch; }
.menu { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; align-self: stretch; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-item > a { position: relative; display: flex; align-items: center; gap: 5px; text-decoration: none; color: var(--brand); font-family: var(--font-body); font-weight: 700; font-size: .97rem; letter-spacing: .1px; padding: 10px 13px; border-radius: 10px; transition: color .15s, background .15s; white-space: nowrap; }
.menu-item > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.menu-item > a:hover, .menu-item:focus-within > a { background: var(--accent-50); }
.menu-item > a:hover::after, .menu-item.active > a::after { transform: scaleX(1); }
.menu-item.active > a { background: var(--brand-50); }
.menu-item > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-item .caret { opacity: .55; transition: transform .2s; }
.menu-item:hover .caret, .menu-item.sub-open .caret { transform: rotate(180deg); }
.sub-toggle { display: none; }
.submenu { position: absolute; top: calc(100% - 14px); left: 0; min-width: 236px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(5, 26, 75, .16), 0 0 0 1px rgba(5, 26, 75, .06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 40; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu-item:hover > .submenu, .menu-item:focus-within > .submenu, .menu-item.sub-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .12s, color .12s, padding .12s; }
.submenu a:hover, .submenu a:focus-visible { background: var(--accent-50); color: var(--brand); padding-left: 18px; }
.submenu a.active { color: var(--accent-600); background: var(--accent-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link-plain { font-weight: 700; color: var(--brand); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav-link-plain:hover, .nav-link-plain.active { background: var(--accent-50); }
.nav-pill { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; transition: border-color .15s, background .15s; }
.nav-pill:hover, .nav-pill.active { border-color: var(--accent); background: var(--accent-50); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--brand); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* Account menu */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer; font: inherit; color: var(--brand); transition: border-color .15s, box-shadow .15s; text-align: left; }
.acct-btn:hover, .acct.open .acct-btn { border-color: var(--accent); box-shadow: 0 6px 18px rgba(5, 26, 75, .1); }
.acct-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct-btn .avatar-nav { flex: none; }
.acct-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.acct-hello { font-size: .9rem; color: var(--text); white-space: nowrap; }
.acct-hello strong { color: var(--brand); font-family: var(--font-heading); }
.acct-status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.acct-status i, .acct-state i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b8; flex: none; }
.tone-ok i { background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, .16); }
.tone-warn i { background: var(--gold, #e3b23c); box-shadow: 0 0 0 3px rgba(227, 178, 60, .2); }
.tone-info i { background: var(--accent); box-shadow: 0 0 0 3px rgba(46, 163, 242, .18); }
.acct-status.tone-ok { color: #1c7f56; }
.acct-status.tone-warn { color: #9a6b00; }
.acct-btn .caret { opacity: .5; transition: transform .2s; }
.acct.open .acct-btn .caret { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 22px 54px rgba(5, 26, 75, .2), 0 0 0 1px rgba(5, 26, 75, .06); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top right; transition: opacity .16s, transform .16s, visibility .16s; z-index: 45; }
.acct.open .acct-menu { opacity: 1; visibility: visible; transform: none; }
.acct-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; }
.acct-head > div { display: flex; flex-direction: column; min-width: 0; }
.acct-head strong { font-family: var(--font-heading); color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-state { display: flex; align-items: center; gap: 9px; margin: 0 4px 6px; padding: 10px 12px; border-radius: 11px; background: var(--bg-soft, #f4f6fa); text-decoration: none; color: var(--text); font-size: .84rem; font-weight: 600; }
.acct-state span { flex: 1; }
.acct-state em { font-style: normal; color: var(--accent-600); font-size: .8rem; }
.acct-state.tone-ok { background: rgba(34, 160, 107, .08); color: #1c7f56; }
.acct-state.tone-warn { background: rgba(227, 178, 60, .12); color: #7d5800; }
.acct-state:hover { filter: brightness(.97); }
.acct-links { display: flex; flex-direction: column; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct-links a, .acct-out button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.acct-links a svg, .acct-out svg { color: var(--muted); flex: none; }
.acct-links a:hover, .acct-links a:focus-visible { background: var(--accent-50); color: var(--brand); outline: none; }
.acct-links a:hover svg { color: var(--accent); }
.acct-out { margin: 4px 0 0; }
.acct-out button { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; }
.acct-out button:hover, .acct-out button:focus-visible { background: #fdecec; color: #b3261e; outline: none; }
.acct-out button:hover svg { color: #b3261e; }

@media (max-width: 1360px) { .nav-pill { display: none; } }
@media (max-width: 1280px) { .menu-item > a { padding: 10px 10px; font-size: .94rem; } .menu-item > a::after { left: 10px; right: 10px; } .acct-status { max-width: 150px; } .logo-sub { display: none; } }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: 0 18px 30px rgba(5, 26, 75, .14); max-height: calc(100vh - 92px); overflow-y: auto; }
  .nav.open { display: flex; }
  .menu { flex-direction: column; gap: 0; }
  .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu-item > a { flex: 1; padding: 14px 8px; border-radius: 8px; font-size: 1rem; }
  .menu-item > a::after, .menu-item .caret { display: none; }
  .menu-item > a:hover { background: none; }
  .menu-item.active > a { color: var(--accent-600); background: none; }
  .sub-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 8px; color: var(--brand); cursor: pointer; }
  .sub-toggle svg { transition: transform .2s; }
  .menu-item.sub-open .sub-toggle svg { transform: rotate(180deg); }
  .submenu { position: static; width: 100%; min-width: 0; box-shadow: none; padding: 0 0 10px 10px; opacity: 1; visibility: visible; transform: none; display: none; background: none; }
  .submenu::before { display: none; }
  .menu-item:hover > .submenu, .menu-item:focus-within > .submenu { display: none; }
  .menu-item.sub-open > .submenu { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; padding: 6px 0 14px; gap: 10px; order: -1; border-bottom: 1px solid var(--line); }
  .nav-actions:not(:has(.acct)) { flex-direction: row; } .nav-actions:not(:has(.acct)) > * { flex: 1; }
  .nav-actions .btn, .nav-link-plain { text-align: center; }
  .acct-btn { width: 100%; border-radius: 14px; padding: 8px 14px 8px 8px; }
  .acct-btn .caret { margin-left: auto; }
  .acct-status { max-width: none; }
  .acct-menu { position: static; width: auto; box-shadow: none; padding: 6px 0 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .acct.open .acct-menu { display: block; }
  .acct-head { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; padding: 14px 28px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-dark { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-light:hover { background: #fff; color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8e1d17; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .7rem; letter-spacing: 1px; border-radius: 8px; }
.btn-link { background: none; border: none; padding: 0; color: var(--accent-600); cursor: pointer; font: inherit; text-decoration: underline; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--brand); }
.field { margin-bottom: 18px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd6e2; border-radius: var(--radius); font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; border-left: 4px solid; font-size: .93rem; }
.alert-success { background: var(--success-50); border-color: var(--success); color: #134d30; }
.alert-error { background: var(--danger-50); border-color: var(--danger); color: #7a1a14; }
.alert-info { background: var(--info-50); border-color: var(--accent); color: var(--brand); }

/* ---------- Heroes ---------- */
.hero { position: relative; color: #fff; padding: 150px 0 140px; background: var(--brand) center / cover no-repeat; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 26, 75, .35) 0%, rgba(5, 26, 75, .55) 100%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: 2px; max-width: 900px; margin: 0 auto 18px; text-shadow: 0 3px 18px rgba(0, 0, 0, .35); }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto; color: #eef3fb; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.hero .row { margin-top: 30px; justify-content: center; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.hero .eyebrow, .page-hero .eyebrow { color: #fff; }
.page-hero { position: relative; color: #fff; padding: 84px 0 76px; background: var(--brand) center / cover no-repeat; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 26, 75, .92) 0%, rgba(5, 26, 75, .72) 55%, rgba(5, 26, 75, .45) 100%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; max-width: 820px; letter-spacing: 1px; }
.page-hero p { color: #dfe7f5; margin: 12px 0 0; max-width: 680px; font-size: 1.05rem; }
.breadcrumb { font-size: .8rem; color: #b9c6de; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- Sections & cards ---------- */
.section { padding: 80px 0; position: relative; }
.section-alt, .section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head p { color: var(--muted); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-body { padding: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel + .panel { margin-top: 20px; }
.panel h2, .panel h3 { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.split .media { position: relative; }
.split .media img { border-radius: 4px; box-shadow: var(--shadow-lg); position: relative; }
.split .media::before { content: ''; position: absolute; top: -18px; right: -16px; width: 70%; height: 80%; background: repeating-linear-gradient(135deg, #e6ebf3 0 2px, transparent 2px 12px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; border-radius: var(--radius-xl); transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.course-cover { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand), var(--brand-600)); position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; text-align: center; padding: 16px; }
.course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-cover .tag { position: absolute; top: 14px; left: 14px; }
.course-card .card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.course-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.course-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.course-meta { display: flex; gap: 6px 14px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; text-transform: uppercase; letter-spacing: .5px; }
.course-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-heading); font-weight: 600; color: var(--brand); font-size: 1.1rem; }
.tag { display: inline-block; background: var(--brand); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; }
.tag-accent { background: var(--accent); }
.tag-muted { background: var(--brand-50); color: var(--brand); }
.tag-success { background: var(--success-50); color: var(--success); }
.tag-danger { background: var(--danger-50); color: var(--danger); }

.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.upcoming { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.upcoming img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.upcoming div { padding: 16px 18px 20px; }
.upcoming h3 { font-size: 1.02rem; margin-bottom: 6px; }
.upcoming p { font-size: .86rem; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 30px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.feature .icon { width: 54px; height: 54px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 820px) { .journey { grid-template-columns: 1fr; } }
.journey .step { background: #fff; border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow); text-align: center; }
.journey .num { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 8px var(--brand-50); }
.journey h3 { margin-bottom: 6px; }
.journey p { color: var(--muted); margin: 0 0 18px; }

.quote-band { display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(120deg, #0b2a6b 0%, var(--brand) 60%); color: #fff; }
.quote-band .quote { padding: 70px 8%; }
.quote-band blockquote { margin: 0; border-left: 4px solid var(--gold); padding-left: 26px; }
.quote-band h2 { color: #fff; }
.quote-band p { font-weight: 600; color: #e7eefb; }
.quote-band .photo { background: center / cover no-repeat; min-height: 340px; }
@media (max-width: 820px) { .quote-band { grid-template-columns: 1fr; } }

.stats-band { background: var(--brand); color: #fff; padding: 44px 0; }
.stats-band .container { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 20px; }
.stats-band strong { display: block; font-family: var(--font-heading); font-size: 2.4rem; font-weight: 600; color: #fff; }
.stats-band span { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: #b9c6de; }

.cta-band { position: relative; background: var(--brand) center / cover no-repeat; color: #fff; padding: 84px 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(5, 26, 75, .78); }
.cta-band .container { position: relative; text-align: center; max-width: 760px; }
.cta-band h2 { color: #fff; letter-spacing: 1px; }
.cta-band p { color: #dfe7f5; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-family: var(--font-heading); font-weight: 600; color: var(--brand); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--accent-600); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Footer (full width, navy) ---------- */
.site-footer { background: var(--brand-700); color: #c7d2e6; margin-top: auto; font-size: .92rem; line-height: 1.7; position: relative; }
.site-footer::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--accent) 0 34%, var(--gold) 34% 50%, var(--accent) 50%); }
.footer-main { padding: 64px 34px 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 48px; max-width: 1480px; margin: 0 auto; }
.footer-brand .logo { display: inline-flex; align-items: center; gap: 12px; background: #fff; padding: 10px 16px 10px 12px; border-radius: 12px; margin-bottom: 18px; }
.footer-brand .logo .logo-mark { height: var(--logo-h, 56px); width: auto; max-width: 280px; }
.footer-brand .logo .logo-name { display: block; color: var(--brand); }
.footer-tagline { font-family: var(--font-heading); font-weight: 600; color: #fff; font-size: 1.05rem; margin: 0 0 8px; letter-spacing: .2px; }
.footer-about { max-width: 46ch; margin: 0 0 20px; color: #aebbd6; }
.footer-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer h4 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin: 6px 0 18px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d9e1f1; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.site-footer nav a { position: relative; padding-left: 0; transition: padding-left .18s, color .15s; }
.site-footer nav a:hover { padding-left: 8px; text-decoration: none; color: var(--accent); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list svg { flex: none; color: var(--accent); margin-top: 3px; }
.footer-bottom { background: #020a24; color: #8fa3c9; font-size: .8rem; }
.footer-bottom-inner { max-width: 1480px; margin: 0 auto; padding: 18px 34px; display: flex; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; align-items: center; }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal a { color: #c7d2e6; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .footer-main { padding: 48px 16px 36px; } .footer-bottom-inner { padding: 16px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-bottom-inner { justify-content: center; text-align: center; } }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 350px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 112px; }
.curriculum { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.curriculum li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.curriculum li:last-child { border-bottom: none; }
.curriculum .num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 600; color: var(--brand); }
.prose { white-space: pre-line; }
.aside-cover { border-radius: var(--radius); margin: -6px -6px 18px; aspect-ratio: 16/10; object-fit: cover; width: calc(100% + 12px); max-width: none; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--brand-50); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.progress.done > span { background: var(--success); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.enrol-card .card-body > * + * { margin-top: 12px; }
.cert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-item { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }

/* ---------- Player ---------- */
.player { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 92px); background: var(--bg-soft); }
.player-side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px; overflow-y: auto; }
.player-side h2 { font-size: 1.1rem; }
.player-main { padding: 26px; min-width: 0; }
.lesson-nav { list-style: none; padding: 0; margin: 16px 0; }
.lesson-nav li a, .lesson-nav li > span { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: .88rem; }
.lesson-nav li a:hover { background: var(--bg-soft); }
.lesson-nav li.current a { background: var(--brand-50); font-weight: 600; color: var(--brand); }
.lesson-nav li.locked > span { color: var(--muted); }
.lesson-nav .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; font-size: .68rem; }
.lesson-nav li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.lesson-nav li.current .dot { border-color: var(--accent); }
.lesson-nav .kind { margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-600); font-weight: 700; }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } .player-side { border-right: none; border-bottom: 1px solid var(--line); } }

.viewer { background: #1d2740; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.viewer-stage { position: relative; display: flex; justify-content: center; align-items: center; padding: 16px; min-height: 300px; flex: 1; }
.viewer-stage canvas { max-width: 100%; height: auto; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); background: #fff; }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--brand); color: #dfe6ee; flex-wrap: wrap; }
.viewer-bar button { background: rgba(255, 255, 255, .1); color: #fff; border: none; border-radius: var(--radius); padding: 8px 14px; cursor: pointer; font: inherit; font-size: .85rem; }
.viewer-bar button:hover:not([disabled]) { background: var(--accent); color: #fff; }
.viewer-bar button[disabled] { opacity: .4; cursor: default; }
.viewer-bar .page-info { font-size: .85rem; min-width: 90px; text-align: center; }
.viewer:fullscreen { border-radius: 0; }
.viewer:fullscreen .viewer-stage canvas { max-height: calc(100vh - 80px); width: auto; }
.viewer-loading { color: #c9d3df; }
.lesson-status { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.h5p-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; min-height: 240px; }
.h5p-box .h5p-loading { color: var(--muted); padding: 40px; text-align: center; }
.embed-frame { width: 100%; min-height: 480px; border: 0; display: block; background: #fff; }
.h5p-score { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Assessment ---------- */
.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.question legend { font-weight: 600; color: var(--brand); padding: 0; margin-bottom: 12px; font-family: var(--font-heading); font-size: 1.05rem; }
.question fieldset { border: none; padding: 0; margin: 0; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; font-weight: 400; color: var(--text); }
.option:hover { border-color: var(--accent); background: var(--accent-50); }
.option input { margin-top: 5px; }
.option.correct { border-color: var(--success); background: var(--success-50); }
.option.wrong { border-color: var(--danger); background: var(--danger-50); }
.q-type { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--brand-50) 0); }
.score-ring > div { width: 118px; height: 118px; background: var(--surface); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--brand); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--brand-50); color: var(--brand); font-family: var(--font-body); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td .progress { min-width: 90px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---------- Admin / teaching area ---------- */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 92px); background: var(--bg-soft); }
.admin-side { background: var(--brand); padding: 22px 14px; }
.admin-side a { display: flex; align-items: center; gap: 10px; color: #c3cfe6; text-decoration: none; padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.admin-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side a.active { background: var(--accent); color: #fff; }
.admin-side .label { color: #7f93b8; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 14px 14px 6px; }
.admin-side .role { margin: 0 14px 10px; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; } .admin-side .label, .admin-side .role { display: none; } .admin-main { padding: 20px 16px 48px; } }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.7rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; border-top: 3px solid var(--accent); }
.kpi strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.8rem; color: var(--brand); }
.kpi span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--brand); border-color: var(--accent); }
.dropzone { border: 2px dashed #c9d3e3; border-radius: var(--radius-lg); padding: 30px; text-align: center; background: var(--bg-soft); transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-50); }
.dropzone input[type=file] { margin: 12px auto 0; display: block; max-width: 100%; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { padding: 6px 9px; font-size: .86rem; }
details summary { cursor: pointer; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.upload-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.upload-grid .panel + .panel { margin-top: 0; }
@media (max-width: 1000px) { .upload-grid { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 470px; margin: 56px auto; padding: 0 20px; }
.auth-wrap .panel { padding: 36px; border-top: 4px solid var(--brand); box-shadow: var(--shadow); }
.demo-logins { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); padding: 18px 20px; }
.demo-logins h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; line-height: 1.45; }
.demo-row strong { color: var(--brand); font-size: .9rem; }

/* ---------- Verify ---------- */
.verify-result { border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; }
.verify-result.valid { background: var(--success-50); border: 1px solid var(--success); }
.verify-result.invalid { background: var(--danger-50); border: 1px solid var(--danger); }

/* ---------- Admin shell (2026-10 redesign) ---------- */
.admin-side { display: flex; flex-direction: column; gap: 2px; }
.admin-side .who { display: flex; align-items: center; gap: 10px; padding: 0 14px 8px; }
.admin-side .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: none; }
.admin-side .who-text { display: flex; flex-direction: column; min-width: 0; }
.admin-side .who-text strong { color: #fff; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-side .who-text span { color: #8fa3c9; font-size: .72rem; }
.admin-side a .ico { flex: none; opacity: .85; }
.admin-side a span:first-of-type { flex: 1 1 auto; }
.admin-side a .badge { background: var(--gold); color: var(--brand); border-radius: 999px; font-size: .62rem; font-weight: 700; padding: 2px 7px; letter-spacing: 0; white-space: nowrap; flex: none; }
.admin-side a span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-side .side-foot { margin-top: auto; padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); color: #8fa3c9; font-size: .72rem; line-height: 1.5; }
.admin-side .side-foot strong { color: #fff; }
@media (max-width: 860px) { .admin-side { flex-direction: row; } .admin-side a { padding: 8px 12px; font-size: .82rem; } .admin-side .who, .admin-side .side-foot, .admin-side a .ico, .admin-side a .badge { display: none; } }

.pill { display: inline-block; border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 1px 8px; line-height: 1.6; vertical-align: middle; }
.pill-gold { background: var(--gold); color: var(--brand); }
.pill-danger, .pill-error { background: var(--danger-50); color: var(--danger); }
.pill-warning { background: #fdf3dc; color: #7a5a0f; }
.pill-notice, .pill-info { background: var(--brand-50); color: var(--brand); }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warn { color: #7a5a0f !important; }
.alert-gold { background: #fdf3dc; border-color: var(--gold); color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel + .panel { margin-top: 20px; }
.kpis-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kpis-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.kpi-gold { border-top-color: var(--gold); }
.kpi-success { border-top-color: var(--success); }
.kpi-danger { border-top-color: var(--danger); }
.kpi .small { margin-top: 4px; text-transform: none; letter-spacing: 0; }
.console { margin: 0; background: var(--brand-700); color: #c3cfe6; border-radius: var(--radius); padding: 16px; font-size: .8rem; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.console .ok { color: #7fd3a1; }
.console .bad { color: #ff9b94; }
.console-sm { font-size: .74rem; max-height: 180px; overflow-y: auto; }
.console-tall { max-height: 320px; overflow-y: auto; }
.commits { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.commit { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.commit code { background: var(--brand-50); color: var(--brand); padding: 2px 7px; border-radius: 4px; font-size: .78rem; white-space: nowrap; }
.log-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.log-entry { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.log-error { border-left-color: var(--danger); }
.log-warning { border-left-color: var(--gold); }
.log-notice, .log-info { border-left-color: var(--accent); }
.log-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.log-msg { font-weight: 600; word-break: break-word; }
.log-trace { font-size: .76rem; color: var(--muted); word-break: break-word; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-label { display: flex; align-items: center; gap: 6px; font-size: .86rem; margin: 0; color: var(--text); font-weight: 400; }
.inline-label select { padding: 6px 9px; font-size: .86rem; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.seg { display: inline-flex; gap: 4px; background: var(--brand-50); border-radius: var(--radius); padding: 3px; }
.seg a, .seg label { padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; margin: 0; }
.seg a.active, .seg label.active { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 2px rgba(5, 26, 75, .08); }
.seg-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; margin: 0; color: var(--text); }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.keyset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px 4px; margin: 0 0 16px; }
.keyset legend { font-weight: 700; font-size: .84rem; color: var(--brand); padding: 0 6px; display: flex; gap: 8px; align-items: center; }
.inline-check { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-weight: 400; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--success); } .dot-bad { background: var(--danger); } .dot-muted { background: #c9d3e3; }
.gw-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.health > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.health > div:last-child { border-bottom: 0; }
.health span:first-child { color: var(--muted); }
.add-user-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.add-user-grid .field { margin: 0; }
@media (max-width: 1100px) { .add-user-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .add-user-grid { grid-template-columns: 1fr; } }
.manage-row td { background: var(--bg-soft); }
details.menu { position: relative; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; min-width: 300px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
details.menu .menu-body input { max-width: 190px; }

/* ---------- Toast notifications ---------- */
.toast { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; align-items: flex-start; gap: 12px; width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px 14px 18px 16px; font-size: .93rem; overflow: hidden; animation: toast-in .3s ease-out; }
.toast-success { border-left-color: var(--success); } .toast-success .toast-icon, .toast-success .toast-bar span { color: var(--success); background: var(--success); }
.toast-error { border-left-color: var(--danger); } .toast-error .toast-icon, .toast-error .toast-bar span { color: var(--danger); background: var(--danger); }
.toast-info { border-left-color: var(--accent); } .toast-info .toast-icon, .toast-info .toast-bar span { color: var(--accent); background: var(--accent); }
.toast-warning { border-left-color: #d99a1e; } .toast-warning .toast-icon, .toast-warning .toast-bar span { color: #d99a1e; background: #d99a1e; }
.toast-icon { flex: none; margin-top: 1px; background: none !important; }
.toast-text { flex: 1 1 auto; color: var(--text); line-height: 1.45; }
.toast-close { flex: none; background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; margin: -2px -4px 0 0; }
.toast-close:hover { color: var(--brand); }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand-50); }
.toast-bar span { display: block; height: 100%; width: 100%; transform-origin: left; animation: toast-bar linear forwards; animation-play-state: paused; }
.toast-out { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 600px) { .toast { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-out { animation: none; } }

/* ---------- Profile / avatars / activity ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; }
.avatar-initials { background: var(--accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .5px; }
.avatar-xl { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent-50); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.admin-side .who .avatar-initials { background: var(--accent); }
.account-page { padding: 36px 20px 60px; }
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.account-side { text-align: center; }
.account-photo .avatar-wrap { display: flex; justify-content: center; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.account-stats strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--brand); }
.account-stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.activity { list-style: none; margin: 0; padding: 0; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.act:last-child { border-bottom: 0; }
.act-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.act-login .act-icon, .act-register .act-icon { background: var(--accent-50); color: var(--accent-600); }
.act-course_done .act-icon, .act-certificate .act-icon, .act-lesson_done .act-icon { background: var(--success-50); color: var(--success); }
.act-password .act-icon, .act-password_reset .act-icon { background: #fdf3dc; color: #7a5a0f; }
.act-body { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.act-time { flex: none; white-space: nowrap; }
.modal { position: fixed; inset: 0; z-index: 1100; background: rgba(5, 26, 75, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; width: min(520px, 100%); box-shadow: var(--shadow-lg); }
.camera-stage { margin-top: 14px; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.camera-stage video, .camera-stage canvas { width: 100%; height: 100%; object-fit: cover; }
.camera-stage video { transform: scaleX(-1); }

/* ---------- Auth pages (split layout) ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 92px); }
.auth-brand { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand) 55%, #0b2a6b 100%); color: #fff; display: flex; align-items: center; padding: 56px 48px; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: blob-drift 18s ease-in-out infinite alternate; will-change: transform; }
.auth-blob.b1 { width: 420px; height: 420px; right: -140px; top: -120px; background: radial-gradient(circle at 30% 30%, #2ea3f2, transparent 70%); }
.auth-blob.b2 { width: 360px; height: 360px; left: -120px; bottom: -100px; background: radial-gradient(circle at 60% 40%, #e3b23c, transparent 68%); opacity: .35; animation-duration: 24s; animation-delay: -6s; }
.auth-blob.b3 { width: 220px; height: 220px; right: 18%; bottom: 14%; background: radial-gradient(circle at 50% 50%, #1484d0, transparent 70%); animation-duration: 15s; animation-delay: -3s; }
@keyframes blob-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.12); } }
.auth-brand-inner { position: relative; max-width: 440px; animation: rise .7s ease-out both; }
.auth-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-brand-logo img { background: #fff; border-radius: 10px; padding: 6px 8px; height: var(--logo-h, 50px); width: auto; max-width: 240px; box-sizing: content-box; }
.auth-brand-logo span { font-family: var(--font-heading); font-weight: 600; font-size: .92rem; line-height: 1.3; color: #fff; }
.auth-brand-title { font-size: 2rem; line-height: 1.2; margin: 0 0 14px; color: #fff; }
.auth-brand-lead { color: #c3cfe6; font-size: 1rem; line-height: 1.65; margin: 0 0 28px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: #e8eefb; animation: rise .6s ease-out both; }
.auth-points li:nth-child(1) { animation-delay: .25s; } .auth-points li:nth-child(2) { animation-delay: .4s; } .auth-points li:nth-child(3) { animation-delay: .55s; }
.auth-point-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-brand-foot { margin-top: 40px; font-size: .78rem; color: #7f93b8; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px 38px; box-shadow: var(--shadow-lg); animation: rise .6s ease-out .1s both; }
.auth-h1 { font-size: 1.7rem; margin: 0 0 6px; }
.auth-sub { margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form > * { animation: rise .5s ease-out both; }
.auth-form > :nth-child(2) { animation-delay: .15s; } .auth-form > :nth-child(3) { animation-delay: .22s; } .auth-form > :nth-child(4) { animation-delay: .29s; } .auth-form > :nth-child(5) { animation-delay: .36s; } .auth-form > :nth-child(6) { animation-delay: .43s; } .auth-form > :nth-child(7) { animation-delay: .5s; }
.auth-grid { gap: 16px; }
.auth-row { margin: -4px 0 4px; }
.auth-alt { margin-top: 22px; }
/* floating labels */
.fl { position: relative; }
.fl input { width: 100%; padding: 22px 44px 8px 14px; font-size: 1rem; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.fl input:focus { box-shadow: 0 0 0 4px var(--accent-50); outline: none; border-color: var(--accent); }
.fl label { position: absolute; left: 14px; top: 15px; margin: 0; font-weight: 400; color: var(--muted); font-size: .98rem; pointer-events: none; transition: transform .15s ease, font-size .15s ease, color .15s; transform-origin: left top; }
.fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--text); transition: background-color 9999s; }
.fl input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px var(--accent-50); }
.fl.filled label, .fl input:focus + label, .fl input:not(:placeholder-shown) + label, .fl input:-webkit-autofill + label { transform: translateY(-9px); font-size: .72rem; color: var(--accent-600); font-weight: 600; letter-spacing: .3px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover, .pw-toggle[aria-pressed=true] { color: var(--brand); background: var(--brand-50); }
.pw-meter { height: 5px; border-radius: 999px; background: var(--brand-50); overflow: hidden; margin-top: -8px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s ease, background .3s; background: var(--danger); }
.pw-meter span.fair { background: var(--gold); } .pw-meter span.good { background: var(--accent); } .pw-meter span.strong { background: var(--success); }
.pw-hint { margin-top: -8px; }
.auth-btn { margin-top: 6px; padding: 15px 24px; display: flex; gap: 10px; transition: transform .15s, box-shadow .15s, background .15s; }
.auth-btn:hover { box-shadow: 0 10px 24px rgba(5, 26, 75, .22); }
.auth-arrow { display: inline-block; transition: transform .2s; }
.auth-btn:hover .auth-arrow { transform: translateX(4px); }
.auth-done { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); display: flex; align-items: center; justify-content: center; margin: 4px 0 18px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.auth-card .demo-logins { margin-top: 26px; animation: rise .5s ease-out .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 28px 20px; min-height: 0; }
  .auth-brand-inner { max-width: none; }
  .auth-brand-title { font-size: 1.35rem; margin-bottom: 8px; }
  .auth-brand-lead, .auth-points, .auth-brand-foot { display: none; }
  .auth-brand-logo { margin-bottom: 14px; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .auth-blob, .auth-brand-inner, .auth-points li, .auth-card, .auth-form > *, .auth-done, .auth-card .demo-logins { animation: none; } }

/* ---------- Responsive hardening ---------- */
.grid-2 > *, .settings-grid > *, .account-grid > *, .admin-head > *, .panel, .kpi { min-width: 0; }
input, select, textarea { max-width: 100%; }
.auth-split { overflow-x: hidden; } .auth-split > * { min-width: 0; }
.row > form { max-width: 100%; }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; }
  .inline-form input[type=search], .inline-form input[type=password] { flex: 1 1 160px; min-width: 0; }
  .admin-head { flex-direction: column; align-items: stretch; }
  .admin-head .row { flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg { flex-wrap: wrap; }
  .keyset .grid-2 { grid-template-columns: 1fr; }
  .commit { flex-direction: column; gap: 6px; }
  .act { flex-wrap: wrap; } .act-time { width: 100%; padding-left: 42px; }
}
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi strong { font-size: 1.4rem; } .auth-card { padding: 24px 18px; } .account-stats { gap: 4px; } }

/* ---------- Course management ---------- */
.course-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.course-status a { display: inline-flex; align-items: center; gap: 6px; }
.course-filters { flex-wrap: wrap; }
.course-filters select { padding: 6px 9px; font-size: .86rem; }
.view-switch a { padding: 6px 9px; display: inline-flex; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ccard-cover { position: relative; display: block; height: 130px; background: linear-gradient(135deg, var(--brand-600), var(--brand)) center/cover; }
.ccard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 26, 75, .55), rgba(5, 26, 75, 0) 60%); }
.ccard-status, .ccard-price { position: absolute; top: 10px; z-index: 1; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; background: #fff; color: var(--brand); }
.ccard-status { left: 10px; } .ccard-price { right: 10px; background: rgba(255, 255, 255, .9); }
.is-live .ccard-status { background: var(--success); color: #fff; }
.is-draft .ccard-status { background: var(--gold); color: var(--brand); }
.is-soon .ccard-status { background: var(--brand-50); color: var(--brand); }
.is-draft .ccard-cover { filter: saturate(.6); }
.ccard-body { padding: 14px 16px 10px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.ccard-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.ccard-title a { color: var(--brand); text-decoration: none; }
.ccard-title a:hover { color: var(--accent-600); }
.ccard-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.ccard-stats strong { color: var(--text); }
.ccard-progress { height: 5px; border-radius: 999px; background: var(--brand-50); overflow: hidden; margin-top: 6px; }
.ccard-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.ccard-teacher { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.ccard-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px solid var(--line); background: var(--bg-soft); position: relative; }
.ccard-actions .btn-sm { padding: 7px 10px; font-size: .66rem; letter-spacing: .6px; }
.ccard-more { margin-left: auto; }
.ccard-more summary { letter-spacing: 2px; }
.ccard-more .menu-body { min-width: 240px; }
.ccard-more .menu-body a, .ccard-more .menu-body .btn-link { text-decoration: none; text-align: left; font-weight: 600; font-size: .86rem; color: var(--brand); padding: 4px 0; }
.ccard-more .menu-body a:hover, .ccard-more .menu-body .btn-link:hover { color: var(--accent-600); }
@media (max-width: 600px) { .course-grid { grid-template-columns: 1fr; } .course-toolbar { align-items: stretch; } }
.course-filters input[type=search] { width: 220px; flex: 0 1 220px; }
.course-filters select { width: auto; }
.ccard { overflow: visible; }
.ccard-cover { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.ccard-actions { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.ccard-more .menu-body { top: auto; bottom: calc(100% + 6px); }
@media (max-width: 600px) { .course-filters input[type=search] { flex: 1 1 100%; width: auto; } }
details.ccard-more .menu-body { top: auto; bottom: calc(100% + 6px); right: 0; }
.ccard { position: relative; }
.ccard:hover, .ccard:focus-within, .ccard:has(details[open]) { z-index: 5; }
.import-warnings { margin: 0; padding-left: 20px; line-height: 1.7; }
.import-warnings li + li { margin-top: 4px; }
.import-report { margin-bottom: 20px; border-left: 4px solid var(--success); }

/* ---------- Course player: modules ---------- */
.module-nav { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; background: #fff; }
.module-nav summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--brand); }
.module-nav summary::-webkit-details-marker { display: none; }
.module-nav .mod-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; flex: none; }
.module-nav.done .mod-num { background: var(--success-50); color: var(--success); }
.module-nav.locked summary { color: var(--muted); }
.module-nav .mod-title { flex: 1 1 auto; min-width: 0; }
.module-nav .mod-count { flex: none; }
.module-nav .lesson-nav { margin: 0; padding: 0 6px 6px; border-top: 1px solid var(--line); }
.module-nav .lesson-nav li a, .module-nav .lesson-nav li > span { font-size: .84rem; padding: 8px 10px; }
.lesson-nav li.optional > a::after, .lesson-nav li.optional > span::after { content: "optional"; font-size: .64rem; color: var(--muted); margin-left: auto; }
.lesson-nav.course-level { margin-top: 14px; border-top: 2px solid var(--line); padding-top: 8px; }
.quiz-section { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-600); margin: 24px 0 8px; }
.feedback-form .stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 2rem; line-height: 1; }
.feedback-form .stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.feedback-form .stars label { cursor: pointer; color: #d6dce8; margin: 0; font-weight: 400; transition: color .1s, transform .1s; }
.feedback-form .stars label:hover, .feedback-form .stars label:hover ~ label, .feedback-form .stars input:checked ~ label { color: var(--gold); }
.feedback-form .stars label:hover { transform: scale(1.15); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font-weight: 500; font-size: .9rem; margin: 0; color: var(--text); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.choice input { accent-color: var(--brand); }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }
.outline-module { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.outline-module summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.outline-module summary::-webkit-details-marker { display: none; }
.outline-module .curriculum { margin: 0; padding: 0 14px 8px 28px; }
.outline-module .curriculum li { padding: 6px 0; border: 0; }
.rating-badge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars-static { position: relative; display: inline-block; color: #d6dce8; letter-spacing: 1px; font-size: 1.1rem; line-height: 1; }
.stars-static::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: var(--gold); width: calc(var(--r, 0) / 5 * 100%); overflow: hidden; white-space: nowrap; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.testimonial { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 8px; }
.testimonial p { margin: 0; font-size: .93rem; line-height: 1.55; }
.testimonial footer { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: .88rem; }

/* ---------- Module editor / feedback ---------- */
.module-list { display: flex; flex-direction: column; gap: 14px; }
.mod-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mod-card .mod-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.mod-card .grow { flex: 1 1 240px; min-width: 0; }
.mod-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mod-part { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: .86rem; border-left-width: 4px; }
.mod-part strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--brand); }
.mod-part.ok { border-left-color: var(--success); } .mod-part.partial { border-left-color: var(--gold); } .mod-part.todo { border-left-color: #d6dce8; }
.mod-part:hover { background: var(--bg-soft); }
@media (max-width: 900px) { .mod-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quiz-progress { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.quiz-progress span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d6dce8; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.quiz-progress span.on.a { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz-progress span.on.b { background: var(--brand); border-color: var(--brand); color: #fff; }
.quiz-progress span:nth-child(6) { margin-left: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr 120px 32px; gap: 10px; align-items: center; font-size: .86rem; padding: 5px 0; }
.bar-row .bar { height: 8px; border-radius: 999px; background: var(--brand-50); overflow: hidden; } .bar-row .bar i { display: block; height: 100%; background: var(--accent); }
.fb-row { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin-top: 12px; }
.fb-row.is-public { border-color: var(--success); background: var(--success-50); }
.fb-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; } .fb-head .grow { flex: 1 1 240px; min-width: 0; }
.fb-body p { margin: 8px 0 0; font-size: .92rem; }

/* ---------- H5P editor ---------- */
.h5p-create-panel { background: linear-gradient(135deg, #f3f9ff, #fff); border-left: 4px solid var(--accent); }
.h5p-editor-panel { padding: 0; overflow: hidden; }
.h5p-editor-panel .h5p-editor { min-height: 320px; }
.h5p-editor-panel iframe.h5p-editor-iframe { width: 100%; border: 0; display: block; }
.h5p-editor-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 14px; box-shadow: 0 6px 24px rgba(5, 26, 75, .12); }
.h5p-editor-form .alert { margin-bottom: 14px; }
.h5p-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.h5p-lib { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; }
.h5p-lib img, .h5p-lib .h5p-lib-icon { width: 42px; height: 42px; border-radius: 8px; flex: none; object-fit: contain; background: var(--brand-50); }
.h5p-lib .h5p-lib-icon { display: grid; place-items: center; color: var(--brand); font-weight: 700; font-size: .8rem; }
.h5p-lib h4 { margin: 0 0 2px; font-size: .95rem; }
.h5p-lib .small { line-height: 1.45; }
.h5p-lib .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.h5p-lib.is-update { border-color: var(--gold); background: #fffbf0; }
.h5p-lib.is-restricted { opacity: .75; }
@media (max-width: 640px) { .h5p-editor-bar { position: static; } }

/* ---------- Motion: first load + reveal on scroll ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes underline-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero { isolation: isolate; }
.hero .hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; animation: hero-zoom 9s ease-out both; z-index: -1; }
.hero.has-bg { background-image: none !important; }
.hero.has-bg::before { z-index: 0; }
.hero .eyebrow, .hero h1, .hero p, .hero .row { animation: fade-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .3s; }
.hero p { animation-delay: .5s; }
.hero .row { animation-delay: .7s; }
.hero .eyebrow::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin: 10px auto 0; transform-origin: left; animation: underline-grow .7s .9s ease-out both; }
.site-header { animation: fade-up .6s ease-out both; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
html:not(.js-ready) [data-reveal] { opacity: 1; transform: none; transition: none; }
.journey .step, .feature, .course-grid .course-card { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .18s; }
.journey .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature .icon { transition: transform .25s; }
.feature:hover .icon { transform: rotate(-6deg) scale(1.08); }
.stats-band strong { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg, .hero .eyebrow, .hero h1, .hero p, .hero .row, .hero .eyebrow::after, .site-header { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Verify page ---------- */
.verify-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.verify-form { padding: 26px 28px; }
.verify-label { display: block; font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.verify-input-row { display: flex; gap: 10px; }
.verify-input-row input { flex: 1; font-size: 1.25rem; letter-spacing: 3px; padding: 14px 16px; text-transform: uppercase; }
.verify-form .hint { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.verify-result { padding: 28px; margin-top: 22px; }
.verify-status { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.verify-status h2 { font-size: 1.5rem; margin-bottom: 4px; }
.verify-status p { margin-bottom: .6em; }
.verify-result.valid .verify-status h2 { color: var(--success); }
.verify-result.invalid .verify-status h2 { color: var(--danger); }
.verify-badge { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.verify-badge.ok { background: var(--success); animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.verify-badge.no { background: var(--danger); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.verify-facts { background: #fff; border-radius: var(--radius); padding: 6px 18px; margin: 10px 0 20px; }
.verify-facts li { font-size: .95rem; }
.verify-tips { margin: 0 0 1em; padding-left: 20px; }
.verify-tips li { margin-bottom: 6px; }
.verify-copy { margin-top: 44px; }
.verify-copy h2 { font-size: 1.5rem; }
.verify-steps { display: grid; gap: 18px; margin-top: 18px; }
.vstep { display: flex; gap: 16px; align-items: flex-start; }
.vstep .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-heading); font-weight: 600; display: grid; place-items: center; }
.vstep strong { display: block; color: var(--brand); font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 2px; }
.vstep p { margin: 0; color: #4a5366; }
.verify-aside { display: grid; gap: 16px; }
.verify-aside h3 { font-size: 1.05rem; margin-bottom: 8px; }
.verify-aside .small { font-size: .9rem; color: #4a5366; }
.verify-list { margin: 0; padding-left: 0; list-style: none; }
.verify-list li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: .92rem; }
.verify-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.verify-stat { text-align: center; background: var(--brand); border-color: var(--brand); color: #fff; }
.verify-stat strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; color: #fff; }
.verify-stat span { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: #b9c6de; }
@media (max-width: 900px) { .verify-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .verify-input-row { flex-direction: column; } .verify-form { padding: 20px; } .verify-result { padding: 20px; } }

/* ---------- Membership ---------- */
.apply-switch { display: flex; gap: 6px; background: var(--brand-50); border-radius: 10px; padding: 4px; margin: 0 0 18px; }
.apply-switch a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 8px; font-weight: 700; font-size: .86rem; color: var(--muted); text-decoration: none; }
.apply-switch a.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(5, 26, 75, .12); }
.apply-section-title { font-family: var(--font-body); font-weight: 700; font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin: 16px 0 10px; }
.apply-key { background: var(--accent-50); border: 1px solid #cfe7fb; border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.apply-key summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: .9rem; }
.apply-vetting { transition: opacity .2s; }
.apply-vetting.is-dim { opacity: .45; }
.req { color: var(--danger); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tier-featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.tier-featured::before { content: 'Most comprehensive'; position: absolute; top: -12px; right: 22px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tier-price { font-family: var(--font-heading); font-weight: 600; font-size: 2.1rem; color: var(--brand); margin: 12px 0 4px; }
.tier-price span { font-size: .95rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.tier-list { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.tier-list li { position: relative; padding-left: 28px; margin-bottom: 12px; line-height: 1.55; font-size: .95rem; }
.tier-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--success-50); color: var(--success); font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.flow { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; display: grid; gap: 14px; }
.flow li { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; }
.flow .num { flex: none; font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; color: var(--accent); width: 44px; }
.flow strong { display: block; color: var(--brand); font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.flow p { margin: 0; color: #4a5366; }
.matrix table td:first-child { font-weight: 700; color: var(--brand); }
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.progress-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: .78rem; color: var(--muted); position: relative; }
.progress-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done::before { background: var(--success); }
.progress-steps .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.progress-steps li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.progress-steps li.current .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.progress-steps li.current { color: var(--brand); font-weight: 700; }
.quote-box { margin: 10px 0; padding: 12px 16px; background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.invoice-card { border-left: 4px solid var(--gold); margin-top: 18px; }
.bank-box { margin-top: 16px; background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; }
.member-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 30px; }
.member-card.is-active { border-left-color: var(--success); }
.member-card strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: var(--brand); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.partner-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.partner-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.partner-logo { flex: none; width: 76px; height: 76px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-logo span { font-family: var(--font-heading); font-weight: 600; color: var(--brand); font-size: 1.3rem; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 34px; }
.resource { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.resource h3 { font-size: 1.02rem; margin: 0 0 4px; }
.resource-ico { flex: none; width: 54px; height: 54px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: .72rem; display: grid; place-items: center; letter-spacing: 1px; }
.badge-page { padding-top: 48px; }
.badge-layout { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.badge-visual img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(5, 26, 75, .25)); }
.seat-code { font-size: 1rem; letter-spacing: 1px; color: var(--brand); font-weight: 700; }
.seat-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.decision-alt { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.decision-alt summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: .9rem; }
.decision-alt form { margin-top: 10px; }
.text-danger { color: var(--danger); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .badge-layout { grid-template-columns: 1fr; } .badge-visual { max-width: 320px; margin: 0 auto; } }
@media (max-width: 640px) { .progress-steps { grid-template-columns: 1fr; gap: 10px; } .progress-steps li { flex-direction: row; text-align: left; } .progress-steps li::before { display: none; } .seat-form .grid-2 { grid-template-columns: 1fr !important; } .flow li { flex-direction: column; gap: 6px; } }

/* ---------- Email template editor ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tpl-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tpl-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.tpl-editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.tpl-editor .panel { margin: 0; }
.tpl-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tpl-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 9px; font-size: .78rem; cursor: pointer; color: var(--text); }
.tpl-toolbar button:hover { border-color: var(--accent); color: var(--brand); }
.tpl-toolbar .chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--brand-50); }
.tpl-toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.tpl-editor textarea { font-family: var(--font-body); line-height: 1.6; }
.tpl-preview { position: sticky; top: 16px; }
.tpl-preview iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: #f4f6fa; }
@media (max-width: 1100px) { .tpl-editor { grid-template-columns: 1fr; } .tpl-preview { position: static; } }
.content-section { margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--brand); }
.content-section:first-of-type { margin-top: 0; }
.content-field.is-edited input, .content-field.is-edited textarea { border-color: var(--accent); }
.content-editor input::placeholder, .content-editor textarea::placeholder { color: #8a93a6; }
.home-list { list-style: none; margin: 0; padding: 0; min-height: 64px; border: 2px dashed transparent; border-radius: var(--radius); }
.home-list.is-empty { border-color: var(--line); display: grid; place-items: center; color: var(--muted); font-size: .86rem; padding: 18px; }
.home-list.is-empty::before { content: attr(data-empty); }
.home-grid { grid-template-columns: 1fr 1fr; }
.home-item .acts { display: flex; gap: 4px; flex: none; }
.home-item .grow { flex: 1; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }
.home-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; cursor: grab; }
.home-item.dragging { opacity: .5; }
.home-item .grip { color: #b4bccb; letter-spacing: -2px; font-size: 1.1rem; }
.home-item .pos { width: 22px; text-align: center; font-weight: 700; color: var(--accent); font-size: .85rem; }
.home-item .thumb { width: 52px; height: 36px; border-radius: 6px; background: var(--brand) center / cover; flex: none; }
.home-item .grow { min-width: 0; }
.btn.is-dirty { box-shadow: 0 0 0 3px var(--accent-50); }
/* Quick actions on course cards */
.qa { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.qa a, .qa button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; padding: 0; position: relative; }
.qa a:hover, .qa button:hover { border-color: var(--accent); background: var(--accent-50); }
.qa .is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.qa .is-gold { color: #b8860b; }
.qa .is-on.is-gold { background: var(--gold); border-color: var(--gold); color: #222; }
.qa .is-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-50); }
.qa [data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--brand-700); color: #fff; font-size: .7rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 20; }
.qa [data-tip]:hover::after, .qa [data-tip]:focus-visible::after { opacity: 1; }
.qa form { margin: 0; }
.qa .sep { width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
.ccard-actions .qa-primary { display: flex; gap: 6px; margin-bottom: 6px; }
/* Bulk selection on the course list */
.bulk-bar { position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 10px 16px; margin: 0 0 16px; box-shadow: var(--shadow-lg); }
.bulk-bar .check, .bulk-bar strong { color: #fff; margin: 0; }
.bulk-bar .grow { flex: 1; }
.bulk-bar .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.bulk-bar .btn-primary { background: var(--accent); border-color: var(--accent); }
.bulk-hint { margin: -6px 0 14px; }
.ccard { position: relative; }
.ccard-select { position: absolute; top: 12px; left: 12px; z-index: 3; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(5, 26, 75, .2); margin: 0; }
.ccard-select input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; cursor: pointer; }
.ccard:has(.ccard-select) .ccard-status { left: 50px; }
.ccard.is-selected { outline: 3px solid var(--accent); outline-offset: 2px; }
tr.is-selected td { background: var(--accent-50); }
.qa [data-tip]::after { display: none; }
.qa [data-tip]:hover::after, .qa [data-tip]:focus-visible::after { display: block; }
.qa > :nth-last-child(-n+3)[data-tip]::after, .qa > :nth-last-child(-n+3) [data-tip]::after { left: auto; right: 0; transform: none; }
.qa > :nth-child(-n+2)[data-tip]::after, .qa > :nth-child(-n+2) [data-tip]::after { left: 0; transform: none; }

/* ---------- Confirmation dialog (assets/js/ui.js) ---------- */
dialog.ui-confirm { border: 0; padding: 0; border-radius: 16px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(5, 26, 75, .35); background: #fff; color: var(--text); }
dialog.ui-confirm::backdrop { background: rgba(5, 26, 75, .45); backdrop-filter: blur(2px); }
dialog.ui-confirm[open] { animation: ui-pop .18s cubic-bezier(.2, .9, .3, 1.2); }
dialog.ui-confirm[open]::backdrop { animation: ui-fade .18s ease-out; }
@keyframes ui-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ui-fade { from { opacity: 0; } to { opacity: 1; } }
.ui-confirm-box { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 24px 24px 20px; margin: 0; }
.ui-confirm-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); grid-row: span 2; }
.ui-confirm-icon::before { content: '?'; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; }
dialog.ui-confirm[data-tone="danger"] .ui-confirm-icon { background: var(--danger-50); color: var(--danger); }
dialog.ui-confirm[data-tone="danger"] .ui-confirm-icon::before { content: '!'; }
.ui-confirm-body h2 { font-size: 1.12rem; margin: 6px 0 6px; }
.ui-confirm-msg { margin: 0; color: #4a5366; line-height: 1.6; font-size: .95rem; }
.ui-confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; color: #fff; }
@media (prefers-reduced-motion: reduce) { dialog.ui-confirm[open], dialog.ui-confirm[open]::backdrop { animation: none; } }

/* ---------- Error log ---------- */
details.log-entry { padding: 0; gap: 0; }
details.log-entry > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
details.log-entry > summary::-webkit-details-marker { display: none; }
details.log-entry > summary::after { content: '›'; position: absolute; right: 16px; top: 12px; font-size: 1.3rem; color: var(--muted); transition: transform .15s; }
details.log-entry { position: relative; }
details.log-entry[open] > summary::after { transform: rotate(90deg); }
details.log-entry > summary:hover { background: var(--bg-soft); }
.log-head { display: flex; gap: 8px; align-items: baseline; padding-right: 22px; }
.log-head .log-msg { font-weight: 600; word-break: break-word; }
.log-detail { padding: 12px 14px 14px; border-top: 1px dashed var(--line); background: #fbfcfe; }
.log-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; font-size: .86rem; }
.log-dl dt { color: var(--muted); }
.log-dl dd { margin: 0; word-break: break-word; }
.log-trace-box { font-size: .76rem; max-height: 260px; margin: 0; }
.log-filters .pill { margin-left: 2px; }
.btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
@media (max-width: 560px) { .log-dl { grid-template-columns: 1fr; } .log-dl dt { margin-top: 6px; } }
.log-meta .log-copy { margin-right: 10px; padding: 3px 10px; font-size: .7rem; letter-spacing: .04em; min-height: 0; line-height: 1.4; vertical-align: 1px; }

/* ---------- Members-only pricing ---------- */
.price-locked { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--brand); background: rgba(46,163,242,.10); border-radius: 999px; padding: 5px 11px; }
.price-gate { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(5,26,75,.05), rgba(46,163,242,.08)); border: 1px solid rgba(46,163,242,.25); color: var(--brand); }
.price-gate svg { flex: none; margin-top: 2px; }
.price-gate strong { font-family: var(--font-heading); }
.field .pw-meter { margin-top: 10px; }

/* ---------- Account tabs ---------- */
.account-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.account-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--brand); }
.account-tabs a.active { color: var(--brand); border-bottom-color: var(--accent); }
.password-wrap { max-width: 560px; }

/* ---------- Website pages (merged from iibp.com.au) ---------- */
.cms-body { font-size: 1.04rem; line-height: 1.75; color: var(--text); }
.cms-body img { max-width: 100%; height: auto; }
.cms-section { padding: 72px 0; position: relative; }
.cms-section:nth-of-type(even) { background: var(--bg-soft); }
.cms-section > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.cms-section > * + * { margin-top: 48px; }
.cms-row { max-width: 900px !important; }
.cms-row > :first-child, .cms-col > :first-child, .cms-card > :first-child { margin-top: 0; }
.cms-body h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.cms-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; margin: 1.6em 0 .6em; }
.cms-body h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.cms-body h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.cms-body h4:has(+ h1), .cms-body h4:has(+ h2) { font-family: var(--font-body); font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-600); margin-bottom: 8px; }
.cms-body p { margin: 0 0 1.05em; }
.cms-body ul, .cms-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.cms-body li { margin: .35em 0; }
.cms-body li::marker { color: var(--accent); }
.cms-body a:not(.btn) { color: var(--accent-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cms-body blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: #fff; border-radius: 0 12px 12px 0; font-size: 1.1rem; font-style: italic; box-shadow: 0 6px 20px rgba(5, 26, 75, .06); }
.cms-body blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: .9rem; color: var(--muted); }
.cms-body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.cms-body th, .cms-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.cms-body th { background: var(--bg-soft); color: var(--brand); }
.cms-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.cms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0 !important; }
.cms-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; align-items: center; }
.cms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cms-card { background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 10px 30px rgba(5, 26, 75, .07); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; font-size: .97rem; }
.cms-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(5, 26, 75, .11); }
.cms-card > img { display: block; max-height: 180px; width: auto; max-width: 100%; margin: 0 0 16px; border-radius: 10px; }
.cms-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.cms-card h3 a { color: inherit !important; text-decoration: none; }
.cms-card p:last-child { margin-bottom: 0; }
.cms-person { text-align: center; }
.cms-person > img { width: 132px; height: 132px; max-height: none; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 0 0 5px var(--accent-50); }
.cms-role { color: var(--accent-600); font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px !important; }
.cms-figure { margin: 0; }
.cms-figure img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 18px 40px rgba(5, 26, 75, .14); }
.cms-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; margin: 1em 0; }
.cms-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cms-map { aspect-ratio: auto; height: 380px; background: var(--bg-soft); }
.cms-body video { width: 100%; border-radius: 16px; }
details.cms-faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; overflow: hidden; }
details.cms-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--brand); position: relative; }
details.cms-faq summary::-webkit-details-marker { display: none; }
details.cms-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
details.cms-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.cms-faq > :not(summary) { padding: 0 20px; }
details.cms-faq > :last-child { padding-bottom: 16px; }
.cms-social { display: flex; gap: 8px; flex-wrap: wrap; }
.cms-stat { text-align: center; } .cms-stat strong { display: block; font-size: 2.4rem; color: var(--brand); font-family: var(--font-heading); }
/* Image-backed sections */
.cms-hero, .cms-band { color: #fff; background: var(--brand) var(--cms-bg, none) center / cover no-repeat !important; }
.cms-hero::before, .cms-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 26, 75, .93) 0%, rgba(5, 26, 75, .78) 50%, rgba(5, 26, 75, .5) 100%); }
.cms-hero > *, .cms-band > * { position: relative; }
.cms-hero { padding: 110px 0 100px; }
.cms-hero .cms-row { max-width: var(--container) !important; }
.cms-hero .cms-row > * { max-width: 760px; }
.cms-hero h1, .cms-hero h2, .cms-hero h3, .cms-band h1, .cms-band h2, .cms-band h3, .cms-band .cms-card h3 { color: #fff; }
.cms-hero p, .cms-band p { color: #dfe7f5; }
.cms-hero h4, .cms-band h4 { color: #9fd4fa !important; }
.cms-hero a:not(.btn), .cms-band a:not(.btn) { color: #fff; }
.cms-hero .btn-primary, .cms-band .btn-primary { background: var(--gold); color: var(--brand); }
.cms-hero .btn-primary:hover, .cms-band .btn-primary:hover { background: #f0c45a; color: var(--brand); }
.cms-band .cms-card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; backdrop-filter: blur(4px); }
.cms-band .cms-card p { color: #dfe7f5; }
.cms-body-flush > .cms-section:first-child { margin-top: 0; }
.cms-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand), var(--brand-600)); color: #fff; border-radius: 20px; padding: 34px 38px; }
.cms-cta h3 { color: #fff; margin: 0 0 6px; } .cms-cta p { color: #dfe7f5; margin: 0; }
.btn-gold { background: var(--gold); color: var(--brand); } .btn-gold:hover { background: #f0c45a; color: var(--brand); }
.cms-wide { margin: 1.4em 0; }
.page-plain-head { padding: 56px 0 8px; }
.page-plain-head h1 { margin: 6px 0 10px; }
.breadcrumb-dark { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.breadcrumb-dark a { color: var(--accent-600); text-decoration: none; }
.preview-bar { background: var(--gold); color: var(--brand); text-align: center; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
.preview-bar a { color: var(--brand); margin-left: 8px; }
.edit-fab { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(5, 26, 75, .3); transition: transform .15s; }
.edit-fab:hover { transform: translateY(-2px); color: #fff; }
@media (max-width: 700px) { .cms-section { padding: 52px 0; } .cms-hero { padding: 72px 0 64px; } .cms-cols { gap: 28px; } .cms-cta { padding: 26px 22px; } .edit-fab span { display: none; } }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.news-card, .news-lead { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.news-card:hover, .news-lead:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5, 26, 75, .12); }
.news-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), var(--brand-600)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-cover img, .news-lead:hover .news-cover img { transform: scale(1.04); }
.news-cover span { color: rgba(255, 255, 255, .7); font-family: var(--font-heading); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-600); }
.news-body h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; color: var(--brand); }
.news-body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.news-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--brand); font-size: .9rem; }
.news-lead { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 34px; }
.news-lead .news-cover { aspect-ratio: auto; min-height: 320px; }
.news-lead .news-body { padding: 36px; justify-content: center; gap: 12px; }
.news-lead h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; }
.news-lead .tag { align-self: flex-start; }
.news-lead .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 820px) { .news-lead { grid-template-columns: 1fr; } .news-lead .news-cover { min-height: 0; aspect-ratio: 16 / 9; } .news-lead .news-body { padding: 24px; } }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pager a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--brand); }
.pager a.active, .pager a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-hero-post h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; }
.post-date { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #9fd4fa; margin-bottom: 10px; }
.cms-article { padding: 56px 20px 72px; }
.cms-prose { max-width: 760px; margin: 0 auto; }
.cms-prose img { border-radius: 14px; }
.post-cover { margin: 0 0 28px; } .post-cover img { width: 100%; border-radius: 18px; box-shadow: 0 16px 40px rgba(5, 26, 75, .14); }
.post-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }

/* Contact */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 14px 36px rgba(5, 26, 75, .08); scroll-margin-top: 110px; }
.contact-form h3 { margin: 0 0 18px; }
.contact-form .grid-2 { gap: 0 16px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-cards { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0; }
.contact-cards li::marker { content: none; }
.contact-cards svg { color: var(--accent); flex: none; margin-top: 3px; }
.contact-cards div { display: flex; flex-direction: column; line-height: 1.5; }
.contact-cards strong { color: var(--brand); font-family: var(--font-heading); }
.cms-section .cms-cols:has(.contact-form) { align-items: start; }

/* ---------- Admin: website page editor ---------- */
.seg-radio label:has(input:checked) { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 2px rgba(5, 26, 75, .08); }
.import-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--accent-50), #fff); border-color: rgba(46, 163, 242, .35); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.strong-link { font-weight: 700; color: var(--brand); text-decoration: none; }
.strong-link:hover { text-decoration: underline; }
.page-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.page-form-side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.page-form-side .panel, .page-form-main .panel { margin: 0; }
.page-form-main { display: flex; flex-direction: column; gap: 16px; }
.side-h { margin: 0 0 12px; font-size: 1rem; }
.input-lg { font-size: 1.25rem !important; font-weight: 600; padding: 12px 14px !important; }
.slug-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.slug-field span { display: flex; align-items: center; padding: 0 10px; background: var(--bg-soft); color: var(--muted); font-size: .82rem; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
.slug-field input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }
.hero-preview { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--bg-soft); }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-panel { padding: 0 !important; overflow: visible; }
.editor { position: relative; }
.ed-toolbar { position: sticky; top: 92px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 8px; background: #fff; border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ed-toolbar button, .ed-toolbar select { height: 34px; min-width: 34px; padding: 0 9px; background: none; border: 1px solid transparent; border-radius: 7px; color: var(--brand); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ed-toolbar select { border-color: var(--line); padding-right: 26px; width: auto; }
.ed-toolbar button:hover { background: var(--accent-50); }
.ed-toolbar button.on { background: var(--brand-50); border-color: var(--line); }
.ed-toolbar.is-source > :not(.ed-src-btn):not(.ed-grow) { opacity: .35; pointer-events: none; }
.ed-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.ed-grow { flex: 1; }
.ed-blocks { position: relative; }
.ed-blocks > button { background: var(--accent-50) !important; color: var(--accent-600) !important; }
.ed-blocks-menu { position: absolute; top: 40px; left: 0; z-index: 20; width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(5, 26, 75, .18), 0 0 0 1px rgba(5, 26, 75, .06); padding: 6px; display: flex; flex-direction: column; }
.ed-blocks-menu[hidden] { display: none; }
.ed-blocks-menu button { justify-content: flex-start !important; width: 100%; text-align: left; font-weight: 600; }
.ed-blocks-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ed-canvas { min-height: 460px; padding: 24px 28px 40px; outline: none; font-size: 1rem; }
.ed-canvas:focus { box-shadow: inset 0 0 0 2px var(--accent-50); }
.ed-canvas .cms-section { padding: 28px 0; margin: 10px -28px; outline: 1px dashed rgba(46, 163, 242, .45); outline-offset: -6px; }
.ed-canvas .cms-section > * { padding-left: 28px; padding-right: 28px; }
.ed-canvas .cms-section > * + * { margin-top: 24px; }
.ed-canvas .cms-col, .ed-canvas .cms-card { outline: 1px dashed rgba(5, 26, 75, .14); outline-offset: 4px; }
.ed-canvas .cms-card:hover { transform: none; }
.ed-canvas img { cursor: pointer; }
.ed-canvas img.ed-selected { outline: 3px solid var(--accent); outline-offset: 2px; }
.ed-canvas p:only-child:empty::before { content: 'Start writing…'; color: var(--muted); }
.ed-canvas a { cursor: pointer; }
.ed-uploading { color: var(--muted); font-style: italic; }
.ed-error { color: var(--danger); }
.ed-source { width: 100%; min-height: 420px; border: 0 !important; border-radius: 0 !important; padding: 18px 20px !important; font-size: .82rem !important; line-height: 1.6; background: #0b1730 !important; color: #dbe6ff !important; resize: vertical; }
.ed-help { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.ed-help code { background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; }
.ed-pop, .ed-altbox { position: absolute; z-index: 30; width: 320px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 20px 48px rgba(5, 26, 75, .22), 0 0 0 1px rgba(5, 26, 75, .06); }
.ed-pop .field { margin-bottom: 10px; }
.ed-altbox input { width: 100%; }
.ed-imgbar { position: absolute; z-index: 12; display: flex; gap: 2px; background: var(--brand); border-radius: 10px; padding: 4px; box-shadow: 0 10px 24px rgba(5, 26, 75, .3); }
.ed-imgbar button { background: none; border: 0; color: #fff; font: inherit; font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.ed-imgbar button:hover { background: rgba(255, 255, 255, .14); }
.ed-imgbar button.danger:hover { background: var(--danger); }
.ed-dirty { font-size: .8rem; font-weight: 700; color: #9a6b00; background: rgba(227, 178, 60, .15); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; text-align: center; }
.cms-w-60 { max-width: 60%; } .cms-w-35 { max-width: 35%; }
.cms-figure.cms-w-60, .cms-figure.cms-w-35 { margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) { .page-form { grid-template-columns: 1fr; } .page-form-side { position: static; } }
@media (max-width: 860px) { .ed-toolbar { top: 0; } .ed-canvas { padding: 18px 16px 30px; } }

/* Menu editor */
.menu-editor { display: flex; flex-direction: column; gap: 8px; }
.me-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.me-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; padding: 8px 10px; }
.me-row input { margin: 0; }
.me-kids { padding: 0 10px 10px 46px; display: flex; flex-direction: column; gap: 6px; }
.me-kids .me-item { background: var(--bg-soft); }
.me-kids .me-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.me-handle { color: var(--muted); text-align: center; font-weight: 700; user-select: none; }
.me-btns { display: flex; gap: 2px; }
.me-btns button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; color: var(--brand); font-weight: 700; }
.me-btns button:hover { background: var(--accent-50); }
.me-btns button.danger:hover { background: var(--danger-50); color: var(--danger); }
.me-add-kid { align-self: flex-start; }
@media (max-width: 760px) { .me-row { grid-template-columns: 1fr; } .me-handle { display: none; } .me-kids { padding-left: 14px; } }

/* Messages */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.msg.unread { border-left: 4px solid var(--accent); }
.msg summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; }
.msg summary::-webkit-details-marker { display: none; }
.msg-from { font-weight: 700; color: var(--brand); }
.msg.unread .msg-from::after { content: 'New'; margin-left: 8px; font-size: .65rem; letter-spacing: 1px; text-transform: uppercase; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 5px; vertical-align: 2px; }
.msg-preview { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-body { padding: 0 16px 16px; border-top: 1px dashed var(--line); }
.msg-text { white-space: pre-wrap; background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; margin: 14px 0; line-height: 1.65; }
/* Import */
.import-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
.import-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.import-list .st { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--line); }
.import-list li.running .st { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.import-list li.imported .st, .import-list li.updated .st { background: var(--success); border-color: var(--success); }
.import-list li.skipped .st { background: var(--gold); border-color: var(--gold); }
.import-list li.failed .st { background: var(--danger); border-color: var(--danger); }
.import-list .note { font-size: .8rem; color: var(--muted); text-align: right; }
.import-progress { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-top: 14px; }
.import-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width .3s; }
@keyframes spin { to { transform: rotate(360deg); } }
.ed-imgbar[hidden], .ed-pop[hidden] { display: none; }

/* ---------- Website page components & effects ---------- */
.cms-body .eyebrow { color: var(--accent-600); margin-bottom: 6px; }
.cms-body .lead { font-size: 1.15rem; line-height: 1.7; }
.cms-body .center { text-align: center; }
.cms-body .center p { margin-left: auto; margin-right: auto; max-width: 680px; color: var(--muted); }
.cms-row.center h2 { margin-top: 0; }
/* Hero: slow zoom on the photo, staggered entrance of the text */
.cms-hero { background: var(--brand) !important; overflow: hidden; }
.cms-hero::after { content: ''; position: absolute; inset: 0; background: var(--cms-bg, none) center / cover no-repeat; z-index: 0; animation: cms-kenburns 22s ease-out both; }
.cms-hero::before { z-index: 1; }
.cms-hero > * { z-index: 2; }
@keyframes cms-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.cms-hero .cms-row > * { animation: cms-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.cms-hero .cms-row > :nth-child(2) { animation-delay: .12s; } .cms-hero .cms-row > :nth-child(3) { animation-delay: .24s; } .cms-hero .cms-row > :nth-child(4) { animation-delay: .36s; }
@keyframes cms-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.cms-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: .5px; }
.cms-hero h1::after { content: ''; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--gold); margin-top: 18px; animation: cms-grow 1s .5s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
@keyframes cms-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cms-hero .btn-light { border-color: rgba(255, 255, 255, .6); }
/* Stats */
.cms-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cms-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; text-align: left; box-shadow: 0 10px 28px rgba(5, 26, 75, .06); position: relative; overflow: hidden; }
.cms-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--accent), var(--brand)); }
.cms-stat strong { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; color: var(--brand); }
.cms-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cms-stat-wide { grid-column: 1 / -1; }
.cms-section:nth-of-type(even) .cms-stat { background: #fff; }
/* Grids */
.cms-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cms-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cms-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cms-icon-card { text-align: left; }
.cms-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--accent-50), #fff); color: var(--accent-600); font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(46, 163, 242, .25); transition: transform .3s; }
.cms-card:hover .cms-icon { transform: rotate(-8deg) scale(1.08); }
/* Quotes in the mission band */
.cms-quote blockquote { background: none !important; box-shadow: none !important; border-left: 3px solid var(--gold); color: #fff; padding: 4px 0 4px 18px !important; margin: 10px 0 16px !important; font-size: 1.12rem; }
.cms-quote h3 { font-size: .85rem !important; letter-spacing: 2px; text-transform: uppercase; color: #9fd4fa !important; }
/* Timeline */
.cms-timeline { list-style: none; padding: 0 !important; margin: 10px 0 0; position: relative; }
.cms-timeline::before { content: ''; position: absolute; left: 39px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--gold)); transform-origin: top; animation: cms-grow-y 1.6s .2s ease both; }
@keyframes cms-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cms-timeline li { position: relative; padding: 0 0 30px 104px !important; margin: 0 !important; min-height: 80px; }
.cms-timeline li::marker { content: none; }
.cms-timeline .cms-year { position: absolute; left: 0; top: 0; width: 80px; height: 80px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(5, 26, 75, .2); transition: transform .3s, background .3s; }
.cms-timeline li:hover .cms-year { transform: scale(1.08); background: var(--accent-600); }
.cms-timeline h3 { margin: 10px 0 6px !important; }
.cms-timeline li.cms-next .cms-year { background: var(--gold); color: var(--brand); }
.cms-section:nth-of-type(even) .cms-timeline .cms-year { box-shadow: 0 0 0 6px var(--bg-soft), 0 10px 24px rgba(5, 26, 75, .2); }
/* People */
.cms-person > p:not(.cms-role) { font-size: .93rem; color: var(--muted); }
.cms-person > img { transition: transform .4s, box-shadow .4s; }
.cms-person:hover > img { transform: scale(1.05); box-shadow: 0 0 0 6px var(--accent-50), 0 14px 30px rgba(5, 26, 75, .2); }
details.cms-bio { text-align: left; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.cms-bio summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--accent-600); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
details.cms-bio summary::-webkit-details-marker { display: none; }
details.cms-bio summary::after { content: '↓'; transition: transform .2s; }
details.cms-bio[open] summary::after { transform: rotate(180deg); }
details.cms-bio[open] > :not(summary) { animation: cms-rise .45s ease both; }
details.cms-bio ul { font-size: .88rem; margin: 12px 0; }
details.cms-bio p { font-size: .9rem; color: var(--text); }
.cms-team .cms-person > img { width: 104px; height: 104px; }
/* Compare & steps */
.cms-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.cms-compare .cms-card { padding: 30px; }
.cms-vs { align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; box-shadow: 0 10px 24px rgba(227, 178, 60, .4); animation: cms-pulse 2.6s ease-in-out infinite; }
@keyframes cms-pulse { 50% { transform: scale(1.1); } }
.cms-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: var(--brand); color: #fff; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.cms-badge-gold { background: var(--gold); color: var(--brand); }
ul.cms-check { list-style: none; padding: 0 !important; }
ul.cms-check li { position: relative; padding-left: 30px; }
ul.cms-check li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-50); color: var(--success); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cms-band ul.cms-check li::before { background: rgba(255, 255, 255, .15); color: #fff; }
.cms-steps { list-style: none; padding: 0 20px !important; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.cms-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px 24px !important; margin: 0 !important; box-shadow: 0 10px 28px rgba(5, 26, 75, .06); transition: transform .25s, box-shadow .25s; }
.cms-steps li::marker { content: none; }
.cms-steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5, 26, 75, .12); }
.cms-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 2; box-shadow: 0 6px 16px rgba(46, 163, 242, .4); }
.cms-step-no { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.cms-steps li:last-child .cms-step-no { background: var(--gold); color: var(--brand); }
.cms-steps h3 { margin: 0 0 8px !important; }
.cms-cta-stack { flex-direction: column; align-items: flex-start; }
/* Partner logos */
.cms-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.cms-logos a { display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 16px 18px; text-decoration: none !important; color: var(--brand) !important; font-weight: 700; font-size: .86rem; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cms-logos img { height: 84px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
.cms-logos a:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 34px rgba(5, 26, 75, .12); }
.cms-logos a:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.cms-figure img { transition: transform .6s ease; }
.cms-figure:hover img { transform: scale(1.02); }
@media (max-width: 900px) { .cms-compare { grid-template-columns: 1fr; } .cms-vs { justify-self: center; } .cms-steps { grid-template-columns: 1fr; } .cms-steps li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -19px; transform: translateX(50%); } }
@media (max-width: 560px) { .cms-timeline li { padding-left: 82px !important; } .cms-timeline .cms-year { width: 62px; height: 62px; font-size: .95rem; } .cms-timeline::before { left: 30px; } .cms-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .cms-stat { padding: 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .cms-hero::after, .cms-hero .cms-row > *, .cms-hero h1::after, .cms-timeline::before, .cms-vs { animation: none !important; } }
.cms-body .eyebrow + h2, .cms-body .eyebrow + h1 { margin-top: 0; }
.cms-body .cms-section > ol, .cms-body .cms-section > ul { margin: 40px auto 0; }

/* ---------- Institutional partnership application ---------- */
.ap-hero { position: relative; overflow: hidden; color: #fff; background: var(--brand); padding: 70px 0 64px; }
.ap-hero-bg { position: absolute; inset: 0; background: center / cover no-repeat; animation: cms-kenburns 22s ease-out both; }
.ap-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(5, 26, 75, .96) 0%, rgba(5, 26, 75, .86) 55%, rgba(5, 26, 75, .6) 100%); }
.ap-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 48px; align-items: center; }
.ap-hero-text > * { animation: cms-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.ap-hero-text > :nth-child(2) { animation-delay: .1s; } .ap-hero-text > :nth-child(3) { animation-delay: .2s; } .ap-hero-text > :nth-child(4) { animation-delay: .3s; } .ap-hero-text > :nth-child(5) { animation-delay: .4s; }
.ap-hero .eyebrow { color: var(--gold); }
.ap-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin: 0 0 14px; }
.ap-hero p { color: #dfe7f5; font-size: 1.06rem; line-height: 1.7; max-width: 620px; margin: 0; }
.ap-hero-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ap-hero-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; font-weight: 600; }
.ap-hero-meta svg { color: var(--gold); width: 18px; height: 18px; }
.ap-process { list-style: none; margin: 0; padding: 22px; display: grid; gap: 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; backdrop-filter: blur(8px); animation: cms-rise .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.ap-process li { display: flex; gap: 14px; align-items: center; padding: 10px 6px; position: relative; }
.ap-process li:not(:last-child)::after { content: ''; position: absolute; left: 24px; top: 52px; height: calc(100% - 40px); width: 2px; background: rgba(255, 255, 255, .2); }
.ap-process li > span { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: 5px; }
.ap-process li:last-child > span { background: var(--gold); }
.ap-process strong { display: block; color: #fff; } .ap-process small { color: #b9c6de; font-size: .84rem; }
.ap-body { background: var(--bg-soft); padding: 48px 0 80px; }
.ap-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.ap-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 112px; }
.ap-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 28px rgba(5, 26, 75, .05); }
.ap-card h2 { font-size: 1.15rem; margin: 0 0 16px; } .ap-card h3 { font-size: 1rem; margin: 0 0 10px; }
.ap-benefits ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ap-benefits li { display: flex; gap: 14px; }
.ap-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.ap-benefits li:hover .ap-ico { transform: rotate(-6deg) scale(1.08); }
.ap-benefits strong { display: block; color: var(--brand); font-size: .95rem; } .ap-benefits small { color: var(--muted); font-size: .84rem; line-height: 1.45; display: block; margin-top: 2px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chips span { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.ap-switch { margin: 0 0 16px; }
.ap-form { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 32px 30px; box-shadow: 0 18px 44px rgba(5, 26, 75, .08); overflow: hidden; }
.ap-progress { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--brand-50); }
.ap-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .35s ease; }
.ap-step { border: 0; padding: 26px 0 8px; margin: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ap-step legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--brand); padding: 26px 0 0; float: left; width: 100%; margin-bottom: 18px; }
.ap-step legend + * { clear: both; }
.ap-step legend small { font-family: var(--font-body); font-weight: 400; font-size: .84rem; color: var(--muted); }
.ap-num { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex: none; transition: background .3s; }
.ap-step.is-done .ap-num { background: var(--success); font-size: 0; }
.ap-step.is-done .ap-num::after { content: '✓'; font-size: 1rem; }
.ap-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ap-type { position: relative; margin: 0; cursor: pointer; }
.ap-type input { position: absolute; opacity: 0; }
.ap-type span { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .88rem; color: var(--text); transition: border-color .15s, background .15s, color .15s; }
.ap-type:hover span { border-color: var(--accent); }
.ap-type input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ap-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px; border: 2px dashed #cfd6e2; border-radius: 14px; background: var(--bg-soft); cursor: pointer; color: var(--muted); font-weight: 400; font-size: .9rem; transition: border-color .15s, background .15s; }
.ap-drop svg { color: var(--accent); }
.ap-drop.drag, .ap-drop:hover { border-color: var(--accent); background: var(--accent-50); }
.ap-drop.has-file { border-style: solid; border-color: var(--success); background: var(--success-50); color: var(--success); font-weight: 600; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; display: flex; }
.ap-agree { margin: 6px 0 14px; font-size: .9rem; }
.ap-submit { padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.ap-submit .btn { align-self: flex-start; padding: 16px 30px; }
@media (max-width: 1000px) { .ap-hero-inner, .ap-grid { grid-template-columns: 1fr; } .ap-side { position: static; order: 2; } .ap-form-wrap { order: 1; } }
@media (max-width: 560px) { .ap-form { padding: 6px 18px 24px; } .ap-hero { padding: 48px 0; } .ap-process { padding: 14px; } .ap-submit .btn { align-self: stretch; } }

/* ---------- Homepage (adopted from iibp.com.au) ---------- */
.hm-hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; min-height: min(760px, calc(100vh - 92px)); display: flex; align-items: center; padding: 80px 0 100px; }
.hm-hero-bg { position: absolute; inset: 0; background: center / cover no-repeat; animation: cms-kenburns 24s ease-out both; }
.hm-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(1200px 600px at 85% 20%, rgba(46, 163, 242, .22), transparent 60%), linear-gradient(100deg, rgba(5, 26, 75, .97) 0%, rgba(5, 26, 75, .88) 48%, rgba(5, 26, 75, .55) 100%); }
.hm-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; width: 100%; }
.hm-hero-text > * { animation: cms-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hm-hero-text > :nth-child(2) { animation-delay: .1s; } .hm-hero-text > :nth-child(3) { animation-delay: .2s; } .hm-hero-text > :nth-child(4) { animation-delay: .3s; } .hm-hero-text > :nth-child(5) { animation-delay: .4s; } .hm-hero-text > :nth-child(6) { animation-delay: .5s; }
.hm-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: #9fd4fa; }
.hm-kicker::before { content: ''; width: 34px; height: 2px; background: var(--gold); }
.hm-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; margin: 16px 0 14px; letter-spacing: .3px; }
.hm-tagline { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 0 0 16px; }
.hm-tagline span { display: inline-block; color: var(--gold); animation: cms-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hm-tagline span:nth-child(2) { animation-delay: .35s; color: #fff; } .hm-tagline span:nth-child(3) { animation-delay: .55s; color: #9fd4fa; }
.hm-lead { color: #dfe7f5; font-size: 1.08rem; line-height: 1.75; max-width: 600px; margin: 0; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hm-hero .btn-light { border-color: rgba(255, 255, 255, .55); }
.hm-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .88rem; color: #c9d6ee; }
.hm-trust span { display: inline-flex; align-items: center; gap: 7px; } .hm-trust svg { color: var(--gold); }
.hm-hero-visual { position: relative; animation: cms-rise 1s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hm-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 6px solid rgba(255, 255, 255, .12); transform: rotate(1.5deg); }
.hm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--brand); border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 40px rgba(5, 26, 75, .3); animation: hm-bob 5s ease-in-out infinite; }
.hm-float strong { display: block; font-family: var(--font-heading); } .hm-float small { color: var(--muted); font-size: .8rem; }
.hm-float-1 { left: -36px; bottom: 54px; }
.hm-float-2 { right: -18px; top: 34px; flex-direction: column; gap: 0; align-items: flex-start; background: var(--gold); animation-delay: -2.5s; }
.hm-float-2 strong { font-size: 1.6rem; line-height: 1; } .hm-float-2 small { color: var(--brand); font-weight: 600; }
.hm-float-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); display: flex; align-items: center; justify-content: center; }
@keyframes hm-bob { 50% { transform: translateY(-10px); } }
.hm-scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; transform: translateX(-50%); }
.hm-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: hm-scroll 1.8s ease-in-out infinite; }
@keyframes hm-scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
.hm-section { padding: 96px 0; position: relative; }
.hm-soft { background: var(--bg-soft); }
.hm-label { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent-600); margin-bottom: 8px; }
.hm-label-light { color: var(--gold); }
.hm-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.hm-head h2, .hm-why-head h2, .hm-who h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.hm-head p { color: var(--muted); font-size: 1.05rem; }
.hm-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hm-why-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hm-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hm-benefit { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.hm-benefit::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.hm-benefit:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(5, 26, 75, .1); border-color: transparent; }
.hm-benefit:hover::after { transform: scaleX(1); }
.hm-benefit-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: transform .3s, background .3s; }
.hm-benefit:nth-child(2) .hm-benefit-ico { background: var(--gold); color: var(--brand); } .hm-benefit:nth-child(3) .hm-benefit-ico { background: var(--accent); }
.hm-benefit:hover .hm-benefit-ico { transform: rotate(-8deg) scale(1.06); }
.hm-benefit h3 { font-size: 1.08rem; margin: 0 0 6px; } .hm-benefit p { color: var(--muted); font-size: .94rem; line-height: 1.6; margin: 0; }
.hm-founder { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.hm-founder::before { content: '“'; position: absolute; right: 6%; top: -60px; font-family: Georgia, serif; font-size: 22rem; line-height: 1; color: rgba(255, 255, 255, .05); }
.hm-founder-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 46px; align-items: center; max-width: 1000px; position: relative; }
.hm-founder-photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 5px solid var(--gold); box-shadow: 0 0 0 10px rgba(227, 178, 60, .15); position: relative; background: var(--brand-600); }
.hm-founder-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.hm-founder-photo span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: #fff; }
.hm-founder blockquote { margin: 6px 0 20px; font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; color: #fff; font-weight: 500; }
.hm-founder blockquote::before { content: '“'; color: var(--gold); } .hm-founder blockquote::after { content: '”'; color: var(--gold); }
.hm-founder-name strong { display: block; color: var(--gold); font-size: 1.05rem; } .hm-founder-name span { color: #b9c6de; font-size: .9rem; }
.hm-who { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.hm-who-media { position: relative; }
.hm-who-media img { width: 100%; border-radius: 26px; aspect-ratio: 4 / 4.6; object-fit: cover; box-shadow: 0 26px 50px rgba(5, 26, 75, .18); display: block; }
.hm-who-media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--accent); border-radius: 26px; z-index: -1; }
.hm-who-badge { position: absolute; right: -16px; bottom: 34px; background: var(--brand); color: #fff; border-radius: 18px; padding: 16px 20px; max-width: 190px; box-shadow: 0 18px 36px rgba(5, 26, 75, .3); animation: hm-bob 6s ease-in-out infinite; }
.hm-who-badge strong { font-size: 2.2rem; color: var(--gold); line-height: 1; display: block; font-family: var(--font-heading); } .hm-who-badge span { font-size: .85rem; color: #dfe7f5; }
.hm-who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.hm-who-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hm-who-item:hover { border-color: var(--accent); box-shadow: 0 12px 26px rgba(5, 26, 75, .08); transform: translateX(4px); }
.hm-who-item > span { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-50); color: var(--accent-600); display: flex; align-items: center; justify-content: center; }
.hm-who-item strong { display: block; color: var(--brand); font-size: .95rem; } .hm-who-item small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.hm-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.hm-journey::before { content: ''; position: absolute; left: 16%; right: 16%; top: 120px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); }
.hm-step { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(5, 26, 75, .06); transition: transform .3s, box-shadow .3s; position: relative; }
.hm-step:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(5, 26, 75, .14); }
.hm-step-img { height: 240px; background: linear-gradient(135deg, var(--brand-50), #fff); display: flex; align-items: center; justify-content: center; position: relative; padding: 22px; }
.hm-step-img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(5, 26, 75, .2)); transition: transform .4s; }
.hm-step:hover .hm-step-img img { transform: scale(1.05) rotate(-1deg); }
.hm-step-no { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(5, 26, 75, .25); }
.hm-step:nth-child(3) .hm-step-no { background: var(--gold); color: var(--brand); }
.hm-step-img.no-img .hm-step-no { position: static; width: 72px; height: 72px; font-size: 2rem; }
.hm-step-body { padding: 36px 26px 26px; }
.hm-step-body h3 { margin: 0 0 8px; } .hm-step-body p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.hm-step-body a { font-weight: 700; text-decoration: none; color: var(--accent-600); }
.hm-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hm-way { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 34px; border-radius: 24px; background: linear-gradient(135deg, var(--accent-50), #fff 70%); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.hm-way:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(5, 26, 75, .12); }
.hm-way img { height: 70px; width: auto; margin-bottom: 8px; }
.hm-way h3 { margin: 0; font-size: 1.35rem; } .hm-way p { color: var(--muted); margin: 0 0 14px; line-height: 1.65; }
.hm-way-dark { background: linear-gradient(135deg, var(--brand), var(--brand-600)); border-color: transparent; }
.hm-way-dark h3 { color: #fff; } .hm-way-dark p { color: #c9d6ee; }
.hm-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding: 20px 26px; border-radius: 18px; background: var(--accent); color: #fff; font-weight: 600; }
.hm-strip .btn-light { border-color: #fff; }
.hm-course > .course-card { height: 100%; }
.hm-cta { position: relative; padding: 110px 0; text-align: center; color: #fff; background: var(--brand) center / cover no-repeat; overflow: hidden; }
.hm-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(5, 26, 75, .94), rgba(11, 42, 107, .85)); }
.hm-cta .container { position: relative; }
.hm-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 6px 0 12px; } .hm-cta p { color: #dfe7f5; max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
@media (max-width: 1000px) {
  .hm-hero-inner, .hm-why, .hm-who { grid-template-columns: 1fr; }
  .hm-hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hm-float-1 { left: -8px; } .hm-float-2 { right: -8px; }
  .hm-journey { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .hm-journey::before { display: none; }
  .hm-who-media { max-width: 520px; }
}
@media (max-width: 700px) {
  .hm-hero { padding: 54px 0 80px; min-height: 0; } .hm-section { padding: 64px 0; }
  .hm-benefits, .hm-who-list, .hm-ways { grid-template-columns: 1fr; }
  .hm-founder-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; } .hm-founder-photo { margin: 0 auto; width: 150px; height: 150px; }
  .hm-who-badge { right: 8px; } .hm-who-media::before { inset: 14px -10px -14px 14px; }
  .hm-way { padding: 26px; } .hm-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .hm-hero-bg, .hm-hero-text > *, .hm-tagline span, .hm-hero-visual, .hm-float, .hm-who-badge, .hm-scroll span { animation: none !important; } }
.ap-agree { align-items: flex-start; } .ap-agree input { margin-top: 3px; flex: none; }
.hm-float-2 em { font-style: normal; font-size: .74rem; color: rgba(5, 26, 75, .75); margin-top: 2px; }
@media (min-width: 1181px) and (max-width: 1599px) { .logo-name:has(+ .logo-sub) { display: none; } }
@media (max-width: 400px) { .logo-name { font-size: .74rem; } .logo .logo-mark { max-height: 48px; } }

/* ---------- Admin: logo & favicon ---------- */
.brand-preview { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.brand-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; padding: 14px 22px; min-height: 92px; box-shadow: 0 2px 14px rgba(5, 26, 75, .08); }
.brand-preview-bar .logo-name { display: block !important; }
.brand-preview-bar .logo-name[hidden] { display: none !important; }
.brand-preview-menu { display: flex; gap: 14px; align-items: center; }
.brand-preview-menu i { width: 54px; height: 9px; border-radius: 5px; background: var(--brand-50); }
.brand-preview-menu b { width: 76px; height: 30px; border-radius: 8px; background: var(--brand); }
.brand-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.brand-opt { position: relative; margin: 0; cursor: pointer; display: block; }
.brand-opt > input { position: absolute; opacity: 0; }
.brand-opt-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; position: relative; }
.brand-opt:hover .brand-opt-card { border-color: var(--accent); }
.brand-opt > input:checked + .brand-opt-card { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.brand-opt > input:checked + .brand-opt-card::after { content: '✓'; position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.brand-opt > input:focus-visible + .brand-opt-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand-opt-img { height: 96px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: 10px; margin-bottom: 10px; padding: 10px; }
.brand-opt-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-empty { color: var(--muted); font-size: .85rem; border: 2px dashed #cfd6e2; border-radius: 8px; padding: 18px 26px; }
.brand-opt-card strong { color: var(--brand); } .brand-opt-card small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.brand-opt-card em { font-style: normal; align-self: flex-start; margin-top: 6px; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--success-50); color: var(--success); padding: 3px 8px; border-radius: 6px; }
.brand-tab { display: flex; align-items: center; gap: 8px; background: #dfe3ea; border-radius: 10px 10px 0 0; padding: 9px 12px; margin-bottom: 12px; width: 180px; max-width: 100%; }
.brand-tab img, .brand-tab i { width: 18px; height: 18px; object-fit: contain; flex: none; border-radius: 3px; }
.brand-tab i { background: #c3c9d4; }
.brand-tab span { font-size: .78rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-danger { color: var(--danger) !important; }
.settings-tabs { flex-wrap: wrap; }
#brand-form input[type=range] { width: 100%; accent-color: var(--brand); }
.price-free { color: var(--success); }
.price-display-seg { display: flex; width: 100%; } .price-display-seg label { flex: 1; text-align: center; }

/* Founder band: glowing portrait, word-by-word quote, drifting light */
.hm-founder-ring { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }
.hm-founder-ring::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, var(--gold), rgba(227, 178, 60, 0) 30%, #9fd4fa 50%, rgba(46, 163, 242, 0) 70%, var(--gold)); animation: hm-spin 6s linear infinite; filter: blur(.5px); }
.hm-founder-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); }
.hm-founder-ring .hm-founder-photo { position: relative; z-index: 1; width: 196px; height: 196px; border: 0; box-shadow: none; animation: hm-glow 3.2s ease-in-out infinite; }
.hm-founder-ring .hm-founder-photo img { transition: transform .6s ease; }
.hm-founder-ring:hover .hm-founder-photo img { transform: scale(1.06); }
.hm-glow { position: absolute; inset: -34px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 178, 60, .45) 0%, rgba(227, 178, 60, .12) 45%, transparent 70%); animation: hm-breathe 3.2s ease-in-out infinite; z-index: 0; }
.hm-founder-ring::before, .hm-founder-ring::after { z-index: 0; }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(227, 178, 60, .9), 0 0 24px 4px rgba(227, 178, 60, .35); } 50% { box-shadow: 0 0 0 4px rgba(255, 214, 120, 1), 0 0 46px 12px rgba(227, 178, 60, .6); } }
@keyframes hm-breathe { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.hm-founder-inner { grid-template-columns: 220px minmax(0, 1fr); }
.hm-qw { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), filter .55s ease; transition-delay: calc(var(--i) * 55ms + .35s); }
.hm-founder-inner.is-visible .hm-qw { opacity: 1; transform: none; filter: none; }
.hm-founder-inner.is-visible .hm-qw:hover { color: var(--gold); }
.hm-quote::before, .hm-quote::after { display: inline-block; transition: transform .6s .3s cubic-bezier(.2, .7, .2, 1), opacity .6s .3s; }
.hm-founder-inner:not(.is-visible) .hm-quote::before { opacity: 0; transform: scale(2.4) rotate(-20deg); }
.hm-founder-inner .hm-label { transition: letter-spacing .9s ease, opacity .9s; }
.hm-founder-inner:not(.is-visible) .hm-label { letter-spacing: 8px; opacity: 0; }
.hm-founder-name { transition: opacity .7s 1.6s, transform .7s 1.6s; }
.hm-founder-inner:not(.is-visible) .hm-founder-name { opacity: 0; transform: translateX(-16px); }
.hm-founder-name strong { position: relative; display: inline-block; }
.hm-founder-name strong::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s 2s ease; }
.hm-founder-inner.is-visible .hm-founder-name strong::after { transform: scaleX(1); }
.hm-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.hm-orb-1 { width: 420px; height: 420px; left: -120px; top: -160px; background: #2ea3f2; animation: hm-drift 14s ease-in-out infinite alternate; }
.hm-orb-2 { width: 360px; height: 360px; right: -80px; bottom: -180px; background: var(--gold); opacity: .22; animation: hm-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes hm-drift { to { transform: translate(120px, 60px) scale(1.15); } }
.hm-founder .container { z-index: 1; }
@media (max-width: 700px) { .hm-founder-inner { grid-template-columns: 1fr; } .hm-founder-ring { margin: 0 auto; width: 170px; height: 170px; } .hm-founder-ring .hm-founder-photo { width: 158px; height: 158px; } }
@media (prefers-reduced-motion: reduce) { .hm-founder-ring::before, .hm-founder-ring .hm-founder-photo, .hm-glow, .hm-orb { animation: none !important; } .hm-qw { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; } }
.hm-founder-name strong { display: table; margin-bottom: 8px; }
.hm-founder-photo.no-img img { display: none; }

/* ---------- People cards (redesign) ---------- */
.cms-grid > .cms-person { padding: 0 0 24px; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: center; border: 0; box-shadow: 0 14px 36px rgba(5, 26, 75, .08); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.cms-grid > .cms-person::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 104px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 60%, #1f5fb8 100%); transition: height .45s cubic-bezier(.2, .7, .2, 1); }
.cms-grid > .cms-person::after { content: ''; position: absolute; left: 0; right: 0; top: 104px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .5s ease, top .45s cubic-bezier(.2, .7, .2, 1); }
.cms-grid > .cms-person:hover { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(5, 26, 75, .16); }
.cms-grid > .cms-person:hover::before { height: 118px; }
.cms-grid > .cms-person:hover::after { transform: scaleX(1); top: 118px; }
.cms-grid > .cms-person > * { position: relative; z-index: 1; padding-left: 24px; padding-right: 24px; }
.cms-grid > .cms-person > img { width: 148px; height: 148px; margin: 30px auto 16px; padding: 4px !important; background: conic-gradient(var(--gold), #fff3cf, var(--accent), var(--gold)); border-radius: 50%; object-fit: cover; box-shadow: 0 12px 28px rgba(5, 26, 75, .28); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.cms-grid > .cms-person:hover > img { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(227, 178, 60, .22), 0 0 36px 6px rgba(227, 178, 60, .45), 0 16px 34px rgba(5, 26, 75, .3); }
.cms-grid > .cms-person h3 { margin: 0 0 4px !important; font-size: 1.2rem; }
.cms-grid > .cms-person .cms-role { margin: 0 0 12px !important; font-size: .76rem; }
.cms-grid > .cms-person > p:not(.cms-role) { font-size: .93rem; line-height: 1.6; color: var(--muted); margin-bottom: 0; }
.cms-team > .cms-person > img { width: 112px; height: 112px; margin-top: 46px; }
.cms-team > .cms-person::before { height: 96px; }
.pm-open { margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 20px !important; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--brand); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, gap .2s; }
.pm-open:hover, .pm-open:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); gap: 12px; outline: none; }
.cms-person.has-profile { padding-bottom: 26px; }

/* Profile window */
html.pm-lock { overflow: hidden; }
dialog.profile-modal { width: min(980px, 94vw); max-height: 88vh; padding: 0; border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px rgba(3, 15, 48, .45); display: none; flex-direction: column; color: var(--text); }
dialog.profile-modal[open] { display: flex; animation: pm-in .38s cubic-bezier(.2, .8, .2, 1) both; }
dialog.profile-modal.pm-closing { animation: pm-out .18s ease both; }
dialog.profile-modal::backdrop { background: rgba(3, 15, 48, .6); backdrop-filter: blur(5px); }
@keyframes pm-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes pm-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.pm-close { position: absolute; right: 14px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(5, 26, 75, .06); color: var(--brand); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.pm-close:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }
.pm-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 0; flex: 1; }
.pm-side { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-600) 70%, #1f5fb8 100%); color: #fff; padding: 40px 28px 30px; text-align: center; overflow-y: auto; position: relative; }
.pm-side::before { content: ''; position: absolute; width: 260px; height: 260px; left: 50%; top: -60px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(227, 178, 60, .35), transparent 65%); animation: hm-breathe 4s ease-in-out infinite; }
.pm-photo { position: relative; width: 176px; height: 176px; margin: 0 auto 18px; border-radius: 50%; padding: 5px; background: conic-gradient(var(--gold), #fff3cf, var(--accent), var(--gold)); animation: hm-glow 3.2s ease-in-out infinite; }
.pm-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--brand); }
.pm-name { position: relative; color: #fff; font-size: 1.4rem; margin: 0 0 4px; }
.pm-role { position: relative; color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 20px; }
.pm-roles { position: relative; list-style: none; padding: 0; margin: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.pm-roles li { font-size: .86rem; line-height: 1.4; padding: 9px 12px 9px 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); position: relative; color: #e6edf9; }
.pm-roles li::before { content: '✦'; position: absolute; left: 12px; top: 9px; color: var(--gold); font-size: .8rem; }
.pm-main { padding: 44px 44px 30px; overflow-y: auto; }
.pm-eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-600); margin: 0 0 14px; }
.pm-bio { max-width: 560px; }
.pm-bio p { font-size: 1rem; line-height: 1.8; margin: 0 0 1.1em; }
.pm-bio .pm-lead { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5; color: var(--brand); font-weight: 600; padding-left: 16px; border-left: 4px solid var(--gold); margin-bottom: 1.4em; }
dialog.pm-swap .pm-main > *, dialog.pm-swap .pm-side > * { animation: cms-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
dialog.pm-swap .pm-bio { animation-delay: .08s; }
.pm-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.pm-nav button { background: none; border: 0; font: inherit; font-weight: 700; font-size: .86rem; color: var(--brand); cursor: pointer; padding: 8px 12px; border-radius: 10px; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-nav button:hover { background: #fff; color: var(--accent-600); }
.pm-count { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  dialog.profile-modal { max-height: 92vh; border-radius: 20px; }
  .pm-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .pm-side, .pm-main { overflow: visible; }
  .pm-side { padding: 34px 22px 24px; } .pm-photo { width: 130px; height: 130px; }
  .pm-main { padding: 26px 22px; }
}
@media (max-width: 760px) { .pm-close { background: rgba(255, 255, 255, .16); color: #fff; } }

/* Admin edit button on public pages */
.edit-dial { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.edit-dial .edit-fab { position: static; border: 0; cursor: pointer; font-family: inherit; animation: cms-rise .5s .6s both; }
.edit-dial-btns { display: flex; align-items: center; gap: 8px; }
.edit-dial-more { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); box-shadow: 0 10px 26px rgba(5, 26, 75, .25); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .25s, background .2s; animation: cms-rise .5s .7s both; }
.edit-dial-more:hover { background: var(--accent-50); }
.edit-dial.open .edit-dial-more { transform: rotate(45deg); background: var(--gold); }
.edit-dial-menu { min-width: 250px; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 22px 54px rgba(5, 26, 75, .25), 0 0 0 1px rgba(5, 26, 75, .06); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right; transition: opacity .18s, transform .18s, visibility .18s; }
.edit-dial.open .edit-dial-menu { opacity: 1; visibility: visible; transform: none; }
.edit-dial-head { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 8px 12px 6px; }
.edit-dial-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.edit-dial-menu a:hover { background: var(--accent-50); color: var(--brand); }
@media (max-width: 700px) { .edit-dial { right: 14px; bottom: 14px; } .edit-dial .edit-fab span { display: none; } .edit-dial .edit-fab { padding: 13px; } }
@media print { .edit-dial { display: none; } }
.cms-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.4em 0; }
.cms-gallery .cms-figure img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.cms-body figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; line-height: 1.5; text-align: center; }

/* ---------- News (magazine layout) ---------- */
.nw-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%); color: #fff; padding: 52px 0 0; }
.nw-orb { position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -180px; top: -260px; background: radial-gradient(circle, rgba(46, 163, 242, .35), transparent 62%); animation: hm-drift 16s ease-in-out infinite alternate; pointer-events: none; }
.nw-hero .container { position: relative; }
.nw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.nw-head h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); margin: 6px 0 0; animation: cms-rise .7s both; }
.nw-head p { color: #c9d6ee; max-width: 420px; margin: 0; animation: cms-rise .7s .1s both; }
.nw-kick { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: .78rem; text-transform: uppercase; }
.nw-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.nw-feat { position: relative; display: block; border-radius: 22px 22px 0 0; overflow: hidden; min-height: 440px; color: #fff; text-decoration: none; animation: cms-rise .8s .15s both; }
.nw-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.nw-feat:hover img { transform: scale(1.05); }
.nw-feat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 26, 75, .97) 8%, rgba(5, 26, 75, .55) 45%, rgba(5, 26, 75, 0) 75%); }
.nw-feat-text { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 1; }
.nw-feat h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.22; margin: 12px 0 10px; }
.nw-feat p { color: #dfe7f5; margin: 0 0 14px; max-width: 640px; }
.nw-pill { display: inline-block; background: var(--gold); color: var(--brand); font-weight: 700; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.nw-read { font-weight: 700; color: var(--gold); display: inline-flex; gap: 8px; transition: gap .2s; }
.nw-feat:hover .nw-read { gap: 14px; }
.nw-side { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; }
.nw-side .nw-kick { margin-bottom: 2px; }
.nw-side a { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 16px; padding: 10px; color: #fff; text-decoration: none; transition: background .2s, transform .2s, border-color .2s; animation: nw-slide .6s calc(.25s + var(--d) * .1s) cubic-bezier(.2, .7, .2, 1) both; }
.nw-side a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(227, 178, 60, .6); transform: translateX(-4px); }
@keyframes nw-slide { from { opacity: 0; transform: translateX(26px); } }
.nw-side img { width: 104px; height: 80px; object-fit: cover; border-radius: 11px; }
.nw-side small { color: #9fd4fa; font-weight: 700; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; }
.nw-side strong { display: block; font-family: var(--font-heading); font-size: .95rem; line-height: 1.32; margin-top: 4px; }
.nw-body { padding: 0 0 60px; }
.nw-filters { display: flex; align-items: center; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nw-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.nw-chips a { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--brand); text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.nw-chips a:hover { border-color: var(--accent); }
.nw-chips a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.nw-search { margin-left: auto; position: relative; width: 300px; max-width: 100%; }
.nw-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nw-search input { padding-left: 42px !important; border-radius: 999px !important; }
.nw-result { padding: 16px 0 0; color: var(--muted); font-size: .92rem; }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-top: 32px; }
.nw-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 10px 28px rgba(5, 26, 75, .06); transition: transform .3s, box-shadow .3s, opacity .7s cubic-bezier(.2, .7, .2, 1); }
.nw-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(5, 26, 75, .13); }
.nw-card.big { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.nw-img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--brand-50); }
.nw-card.big .nw-img { aspect-ratio: auto; min-height: 340px; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.nw-card:hover .nw-img img { transform: scale(1.06); }
.nw-text { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.nw-card.big .nw-text { padding: 32px; justify-content: center; }
.nw-meta { display: flex; gap: 10px; align-items: center; font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-600); }
.nw-meta b { background: var(--brand-50); color: var(--brand); padding: 4px 9px; border-radius: 7px; }
.nw-card h3 { margin: 12px 0 8px; font-size: 1.1rem; line-height: 1.38; color: var(--brand); }
.nw-card.big h3 { font-size: 1.55rem; line-height: 1.28; }
.nw-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0 0 14px; }
.nw-more { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--brand); display: inline-flex; gap: 6px; transition: gap .2s, color .2s; }
.nw-card:hover .nw-more { gap: 12px; color: var(--accent-600); }
.nw-partner { background: var(--bg-soft); padding: 46px 0; }
.nw-partner-box { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: #fff; border-radius: 22px; padding: 28px 32px; box-shadow: 0 12px 30px rgba(5, 26, 75, .07); border-left: 5px solid var(--gold); }
.nw-partner-box h3 { margin: 0 0 4px; } .nw-partner-box p { color: var(--muted); margin: 0; max-width: 560px; }
@media (max-width: 1000px) { .nw-top { grid-template-columns: 1fr; } .nw-feat { border-radius: 22px; min-height: 380px; } .nw-side { padding-top: 6px; } .nw-grid { grid-template-columns: 1fr 1fr; } .nw-card.big { grid-column: 1 / -1; } }
@media (max-width: 680px) { .nw-head { flex-direction: column; align-items: flex-start; } .nw-grid { grid-template-columns: 1fr; } .nw-card.big { display: flex; } .nw-card.big .nw-img { min-height: 0; aspect-ratio: 16 / 10; } .nw-card.big .nw-text { padding: 22px 24px; } .nw-search { margin-left: 0; width: 100%; } .nw-feat-text { left: 20px; right: 20px; bottom: 22px; } .nw-feat { min-height: 340px; } }
@media (prefers-reduced-motion: reduce) { .nw-orb, .nw-feat, .nw-side a, .nw-head h1, .nw-head p { animation: none !important; } }
.nw-card.full { grid-column: 1 / -1; grid-template-columns: 1fr 1.4fr; }
.nw-card.full .nw-img { min-height: 300px; }
@media (max-width: 1000px) { .nw-card.big:last-child:nth-child(even) { grid-column: auto; display: flex; } .nw-card.big:last-child:nth-child(even) .nw-img { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Linkages page effects ---------- */
.cms-row-wide { max-width: var(--container) !important; }
.cms-network::before { background: linear-gradient(90deg, rgba(5, 26, 75, .95) 0%, rgba(5, 26, 75, .82) 50%, rgba(5, 26, 75, .55) 100%), radial-gradient(rgba(159, 212, 250, .22) 1.2px, transparent 1.6px) 0 0 / 26px 26px; animation: lk-dots 30s linear infinite; }
@keyframes lk-dots { to { background-position: 0 0, 260px 130px; } }
.cms-network .cms-row::before, .cms-network .cms-row::after { content: ''; position: absolute; right: -40px; top: 50%; width: 340px; height: 340px; margin-top: -170px; border-radius: 50%; border: 2px solid rgba(227, 178, 60, .45); animation: lk-radar 4s ease-out infinite; pointer-events: none; }
.cms-network .cms-row::after { animation-delay: 2s; border-color: rgba(46, 163, 242, .5); }
@keyframes lk-radar { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.cms-network .cms-row { position: relative; }
@media (max-width: 900px) { .cms-network .cms-row::before, .cms-network .cms-row::after { right: -140px; opacity: .5; } }
.cms-mini { gap: 14px; }
.cms-mini .cms-card { padding: 20px; }
.cms-mini .cms-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cms-mini .cms-card p { font-size: .87rem; color: var(--muted); }
.cms-mini .cms-card:nth-child(even) { transform: translateY(18px); }
.cms-mini .cms-card:nth-child(even):hover { transform: translateY(12px); }
.cms-logos a { position: relative; overflow: hidden; }
.cms-logos a::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.cms-logos a:hover::after { left: 120%; }
.cms-band .cms-timeline .cms-year { background: var(--gold); color: var(--brand); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .25); }
.cms-band .cms-timeline li:hover .cms-year { background: #fff; }
.cms-band .cms-timeline li:last-child .cms-year { background: var(--accent); color: #fff; }
.cms-band .cms-timeline::before { background: linear-gradient(var(--gold), rgba(46, 163, 242, .6)); }
.cms-band .cms-timeline a { color: var(--gold) !important; font-weight: 700; text-decoration: none; }
.cms-band .cms-timeline li { transition: transform .3s; } .cms-band .cms-timeline li:hover { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .cms-network::before, .cms-network .cms-row::before, .cms-network .cms-row::after { animation: none !important; } }
.cms-grid.cms-mini { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .cms-grid.cms-mini { grid-template-columns: 1fr; } .cms-mini .cms-card:nth-child(even) { transform: none; } }
.cms-band .center p { color: #c9d6ee !important; }

/* ---------- Courses page: learning platform, benefits, members strip ---------- */
.cr-lms { background: radial-gradient(900px 400px at 85% 30%, rgba(46, 163, 242, .08), transparent 70%); }
.cr-lms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.cr-lms h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 6px 0 16px; }
.cr-lms-text { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.cr-lms-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cr-lms-list li { padding: 8px 14px 8px 32px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: var(--brand); position: relative; box-shadow: 0 4px 12px rgba(5, 26, 75, .05); }
.cr-lms-list li::before { content: '✓'; position: absolute; left: 12px; color: var(--success); font-weight: 700; }
.cr-lms-visual { position: relative; padding: 40px 40px 40px 0; }
.cr-lms-stripes { position: absolute; right: 0; top: 0; width: 82%; height: 82%; border-radius: 6px; background: repeating-linear-gradient(-45deg, rgba(5, 26, 75, .07) 0 6px, transparent 6px 16px); animation: cr-stripes 18s linear infinite; }
@keyframes cr-stripes { to { background-position: 160px 0; } }
.cr-lms-card { position: relative; margin-top: 40px; background: #fff; border-radius: 22px; aspect-ratio: 1 / 1; max-width: 470px; display: flex; align-items: center; justify-content: center; padding: 40px; box-shadow: 0 30px 70px rgba(5, 26, 75, .18); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cr-lms-visual:hover .cr-lms-card { transform: translateY(-8px) rotate(-1deg); }
.cr-lms-card img { max-width: 100%; max-height: 100%; object-fit: contain; animation: hm-bob 7s ease-in-out infinite; }
.cr-lms-fallback { font-family: Georgia, serif; font-size: 3rem; color: var(--brand); }
.cr-lms-badge { position: absolute; background: #fff; color: var(--brand); font-weight: 700; font-size: .85rem; padding: 10px 16px; border-radius: 12px; box-shadow: 0 14px 30px rgba(5, 26, 75, .18); animation: hm-bob 5s ease-in-out infinite; }
.cr-b1 { left: -24px; top: 34%; } .cr-b2 { right: 6px; bottom: 30px; background: var(--gold); animation-delay: -2.5s; }
.cr-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cr-benefit { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, opacity .7s; }
.cr-benefit::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.cr-benefit:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(5, 26, 75, .1); }
.cr-benefit:hover::before { transform: scaleX(1); }
.cr-benefit-ico { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; margin-bottom: 16px; transition: transform .3s, background .3s; }
.cr-benefit:nth-child(3n+2) .cr-benefit-ico { background: var(--accent); } .cr-benefit:nth-child(3n) .cr-benefit-ico { background: var(--gold); color: var(--brand); }
.cr-benefit:hover .cr-benefit-ico { transform: rotate(-8deg) scale(1.08); }
.cr-benefit h3 { font-size: 1.1rem; margin: 0 0 8px; } .cr-benefit p { color: var(--muted); font-size: .94rem; line-height: 1.6; margin: 0; }
.cr-strip-wrap { padding: 10px 0 0; }
.cr-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 28px; border-radius: 18px; background: linear-gradient(110deg, var(--accent), #1f7fd0); color: #fff; font-weight: 600; font-size: 1.02rem; box-shadow: 0 16px 36px rgba(46, 163, 242, .3); }
.cr-strip .btn-light { border-color: #fff; }
@media (max-width: 960px) { .cr-lms-grid { grid-template-columns: 1fr; gap: 30px; } .cr-lms-visual { max-width: 480px; } .cr-benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cr-benefits { grid-template-columns: 1fr; } .cr-b1 { left: 0; } .cr-lms-visual { padding-right: 20px; } }
@media (prefers-reduced-motion: reduce) { .cr-lms-stripes, .cr-lms-card img, .cr-lms-badge { animation: none !important; } }

/* ---------- Branch application & legal pages ---------- */
.bf { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; box-shadow: 0 18px 44px rgba(5, 26, 75, .08); scroll-margin-top: 110px; }
.bf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; animation: cms-rise .45s ease both; }
.bf-steps { list-style: none; display: flex; gap: 8px; padding: 0 !important; margin: 0 0 24px !important; }
.bf-steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .86rem; color: var(--muted); padding: 10px 12px !important; margin: 0 !important; border-radius: 12px; background: var(--bg-soft); transition: background .3s, color .3s; }
.bf-steps li::marker { content: none; }
.bf-steps li span { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--line); }
.bf-steps li.on { background: var(--brand-50); color: var(--brand); }
.bf-steps li.on span { background: var(--brand); color: #fff; border-color: var(--brand); }
.bf-steps li.done span { background: var(--success); border-color: var(--success); font-size: 0; }
.bf-steps li.done span::after { content: '✓'; font-size: .85rem; }
.bf .grid-2 { gap: 0 16px; }
.bf-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.bf-review dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: .94rem; }
.bf-review dt { color: var(--muted); } .bf-review dd { margin: 0; font-weight: 600; color: var(--brand); word-break: break-word; }
.bf-note { background: var(--accent-50); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.bf-note p { margin: 4px 0 0; font-size: .92rem; }
@media (max-width: 640px) { .bf { padding: 20px 16px; } .bf-steps li { font-size: 0; justify-content: center; } .bf-steps li span { font-size: .85rem; } .bf-review dl { grid-template-columns: 1fr; } .bf-review dd { margin-bottom: 6px; } }
.cms-legal { max-width: 800px !important; }
.cms-legal h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; padding-top: 1em; border-top: 1px solid var(--line); }
.cms-legal h2:first-of-type { border-top: 0; padding-top: 0; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }

/* ---------- Admin › Security & Site Health ---------- */
.btn-xs { padding: 5px 10px; font-size: .64rem; letter-spacing: .6px; border-radius: 7px; }
.right { text-align: right; }
.sec-tabs { flex-wrap: wrap; }
.sec-h { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.sec-h3 { font-size: .92rem; margin: 22px 0 8px; color: var(--brand); }
.sec-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 26px 28px; border-radius: var(--radius-lg); margin-bottom: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #0d3a8c 0%, #051a4b 55%, #03102f 100%); box-shadow: 0 18px 40px -22px rgba(5, 26, 75, .7); }
.sec-hero::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 163, 242, .25), transparent 70%); pointer-events: none; }
.sec-hero h2 { color: #fff; margin: 0 0 6px; font-size: 1.45rem; }
.sec-hero p { color: #c9d6ee; margin: 0; max-width: 560px; }
.sec-hero code { background: rgba(255, 255, 255, .1); color: var(--gold); padding: 1px 7px; border-radius: 6px; }
.sec-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .78rem; color: #9fb3d6; }
.sec-hero-meta strong { color: #fff; font-weight: 600; }
.sec-shield { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.sec-shield::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: secPulse 2.6s ease-out infinite; }
.sec-hero-on .sec-shield { background: rgba(52, 199, 123, .16); color: #5fe0a0; } .sec-hero-on .sec-shield::before { box-shadow: 0 0 0 0 rgba(95, 224, 160, .5); }
.sec-hero-watch .sec-shield { background: rgba(227, 178, 60, .16); color: var(--gold); } .sec-hero-watch .sec-shield::before { box-shadow: 0 0 0 0 rgba(227, 178, 60, .5); }
.sec-hero-off .sec-shield { background: rgba(255, 107, 107, .16); color: #ff8a80; } .sec-hero-off .sec-shield::before { box-shadow: 0 0 0 0 rgba(255, 138, 128, .5); }
@keyframes secPulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: .55; } 100% { box-shadow: 0 0 0 22px transparent; opacity: 0; } }
.sec-score { text-align: center; }
.sec-score small { display: block; margin-top: 8px; font-size: .7rem; letter-spacing: 1.4px; text-transform: uppercase; color: #9fb3d6; }
.sec-ring { --c: #5fe0a0; width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 32px; box-sizing: border-box;
  background: radial-gradient(closest-side, #071f57 79%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); animation: secRing 1.2s ease-out both; }
.sec-ring strong { font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: #fff; }
.sec-ring span { font-size: .75rem; color: #9fb3d6; margin-left: 2px; }
.sec-score-fair .sec-ring { --c: var(--gold); } .sec-score-poor .sec-ring { --c: #ff8a80; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes secRing { from { --p: 0; } }
.sec-kpis .kpi strong { font-size: 1.9rem; }
.sec-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 20px; }
.sec-grid > .panel + .panel { margin-top: 0; }
.sec-grid-wide { grid-template-columns: 1.7fr 1fr; align-items: start; }
.sec-legend { display: flex; gap: 12px; font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.sec-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-critical, .seg-critical { background: #8e1a14; } .dot-high, .seg-high { background: #e0453a; } .dot-medium, .seg-medium { background: var(--gold); } .dot-low, .seg-low { background: #9fc3ea; }
.sec-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 8px 2px 0; border-bottom: 1px solid var(--line); }
.sec-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 20px; }
.sec-bar > span { position: absolute; bottom: 2px; font-size: .66rem; color: var(--muted); }
.sec-stack { width: 100%; max-width: 30px; display: flex; flex-direction: column; border-radius: 6px 6px 2px 2px; overflow: hidden; transform-origin: bottom; animation: secGrow .8s cubic-bezier(.2, .8, .2, 1) both; }
.sec-bar:nth-child(n) .sec-stack { animation-delay: calc(var(--i, 0) * 30ms); }
.sec-stack i { display: block; min-height: 3px; }
.sec-bar:hover .sec-stack { filter: brightness(1.1); box-shadow: 0 6px 16px -6px rgba(5, 26, 75, .45); }
@keyframes secGrow { from { transform: scaleY(0); } }
.sec-types { list-style: none; margin: 0; padding: 0; }
.sec-types li { padding: 8px 0; font-size: .86rem; }
.sec-types li + li { border-top: 1px dashed var(--line); }
.sec-meter { height: 7px; background: var(--brand-50); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.sec-meter i { display: block; height: 100%; border-radius: 99px; animation: secWidth 1s ease-out both; }
@keyframes secWidth { from { width: 0; } }
.sec-empty { padding: 26px 16px; text-align: center; color: var(--muted); background: var(--brand-50); border-radius: var(--radius); font-size: .9rem; }
.sec-table td, .sec-table th { padding: 10px 12px; vertical-align: middle; }
.sec-table form { display: inline; }
.sev { display: inline-block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.sev-low { background: #e6f0fb; color: #2b5b8f; } .sev-medium { background: #fdf3dc; color: #7a5a0f; } .sev-high { background: #fde4e2; color: #b3261e; } .sev-critical { background: #8e1a14; color: #fff; }
.sec-feed { list-style: none; margin: 0; padding: 0; }
.sec-feed li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.sec-feed li + li { border-top: 1px solid var(--line); }
.sec-feed li > div { display: flex; flex-direction: column; min-width: 0; }
.sec-feed strong { font-size: .88rem; }
.sec-feed .sev { margin-top: 2px; min-width: 64px; text-align: center; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.hc { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.hc:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(5, 26, 75, .5); }
.hc-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; }
.hc-ok .hc-icon { background: var(--success-50); color: var(--success); }
.hc-warn .hc-icon { background: #fdf3dc; color: #7a5a0f; } .hc-warn { border-left: 3px solid var(--gold); }
.hc-fail .hc-icon { background: var(--danger-50); color: var(--danger); } .hc-fail { border-left: 3px solid var(--danger); }
.hc-body { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; min-width: 0; }
.hc-body strong { color: var(--brand); font-size: .9rem; }
.hc-body > span { color: var(--muted); }
.hc-body .hc-fix { color: var(--text); background: var(--brand-50); padding: 6px 9px; border-radius: 7px; margin-top: 5px; font-size: .8rem; }
.sec-protect { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 10px; }
.sec-pcard { padding: 14px; border-radius: var(--radius); background: linear-gradient(160deg, #f5f9ff, #fff); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; transition: transform .2s, border-color .2s; }
.sec-pcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.sec-pcard span { font-size: 1.4rem; }
.sec-pcard strong { color: var(--brand); font-size: .9rem; }
.sec-pcard small { color: var(--muted); line-height: 1.45; }
.sec-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.sec-filters input, .sec-filters select { width: auto; flex: 1 1 150px; padding: 8px 10px; font-size: .85rem; }
.sec-filters input[type=search] { flex-basis: 220px; }
.sec-log { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sec-row + .sec-row { border-top: 1px solid var(--line); }
.sec-row summary { list-style: none; display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; cursor: pointer; }
.sec-row summary::-webkit-details-marker { display: none; }
.sec-row summary:hover { background: #f7f9fd; }
.sec-row .sev { text-align: center; }
.sec-row-critical, .sec-row-high { box-shadow: inset 3px 0 0 #e0453a; }
.sec-row-medium { box-shadow: inset 3px 0 0 var(--gold); }
.sec-row-main { display: flex; flex-direction: column; min-width: 0; }
.sec-row-main strong { font-size: .88rem; }
.sec-row-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-row-side { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.sec-row-body { padding: 4px 14px 14px 104px; background: #fbfcfe; }
.sec-row-body dl { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; margin: 8px 0 12px; font-size: .84rem; }
.sec-row-body dt { color: var(--muted); }
.sec-row-body dd { margin: 0; word-break: break-all; }
.sec-row-body form { display: inline; }
.sec-expired { margin-top: 14px; }
.sec-expired ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.sec-settings .panel { margin-bottom: 20px; }
.sec-settings .panel + .panel { margin-top: 0; }
.sec-switch { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-weight: 400; cursor: pointer; margin: 0; }
.sec-switch + .sec-switch, .sec-field + .sec-switch, .sec-switch + .sec-field { border-top: 1px solid var(--line); }
.sec-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 24px; border-radius: 99px; background: #cfd6e2; position: relative; cursor: pointer; transition: background .2s; margin: 2px 0 0; }
.sec-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sec-switch input:checked { background: var(--success); }
.sec-switch input:checked::after { transform: translateX(20px); }
.sec-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sec-switch span { display: flex; flex-direction: column; }
.sec-switch strong { color: var(--brand); font-size: .92rem; }
.sec-switch small { color: var(--muted); font-size: .82rem; }
.sec-field { padding: 12px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sec-label { font-weight: 600; color: var(--brand); font-size: .92rem; }
.sec-rules { display: grid; gap: 10px; }
.sec-rule { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--brand-50); }
.sec-rule .sev { text-align: center; }
.sec-rule p, .sec-inline { margin: 0; font-size: .88rem; line-height: 2.2; }
.sec-rule input, .sec-inline input { width: 82px; display: inline-block; padding: 5px 8px; margin: 0 3px; text-align: center; }
.sec-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; pointer-events: none; }
.sec-save .btn { pointer-events: auto; box-shadow: 0 10px 24px -10px rgba(5, 26, 75, .6); }

/* Site Health */
.hl-hero { grid-template-columns: auto 1fr auto; }
.hl-gauges { display: flex; gap: 16px; }
.hl-gauge { text-align: center; width: 96px; }
.hl-dial { --c: #5fe0a0; width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #071f57 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); animation: secRing 1.2s ease-out both; }
.hl-dial strong { color: #fff; font-size: 1rem; }
.hl-fair .hl-dial { --c: var(--gold); } .hl-poor .hl-dial { --c: #ff8a80; }
.hl-gauge b { display: block; font-size: .78rem; color: #fff; }
.hl-gauge small { display: block; font-size: .68rem; color: #9fb3d6; white-space: nowrap; }
.hl-todo { margin-bottom: 20px; }
.hl-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hl-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--brand); font-size: .82rem; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hl-jump a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(5, 26, 75, .5); }
.hl-jump i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hl-jump-warn i { background: var(--gold); } .hl-jump-fail i { background: var(--danger); }
.hl-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.hl-sections .panel + .panel { margin-top: 0; }
.hl-sec { scroll-margin-top: 90px; padding: 0; overflow: hidden; }
.hl-sec-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f7f9fd, #fff); }
.hl-sec-head h2 { margin: 0; font-size: 1.02rem; flex: 1; }
.hl-sec-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.hl-sec-icon.hl-ok { background: var(--success-50); color: var(--success); } .hl-sec-icon.hl-warn { background: #fdf3dc; color: #7a5a0f; } .hl-sec-icon.hl-fail { background: var(--danger-50); color: var(--danger); }
.hl-sec-state { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.hl-sec-state.hl-ok { background: var(--success-50); color: var(--success); } .hl-sec-state.hl-warn { background: #fdf3dc; color: #7a5a0f; } .hl-sec-state.hl-fail { background: var(--danger-50); color: var(--danger); }
.hl-checks { list-style: none; margin: 0; padding: 6px 0; }
.hl-check { display: grid; grid-template-columns: 14px minmax(120px, 38%) 1fr; gap: 10px; padding: 9px 20px; font-size: .86rem; align-items: start; }
.hl-check + .hl-check { border-top: 1px dashed var(--line); }
.hl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: #b7c3d8; }
.hl-check-ok .hl-dot { background: var(--success); } .hl-check-warn .hl-dot { background: var(--gold); } .hl-check-fail .hl-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-50); }
.hl-label { color: var(--muted); }
.hl-value { color: var(--text); word-break: break-word; }
.hl-check-fail .hl-value { color: var(--danger); font-weight: 600; }
.hl-fix { display: block; margin-top: 5px; color: var(--text); font-weight: 400; background: var(--brand-50); padding: 6px 9px; border-radius: 7px; font-size: .78rem; }
@media (max-width: 1100px) { .sec-grid, .sec-grid-wide { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sec-hero { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; justify-items: center; }
  .sec-hero-meta { justify-content: center; }
  .hl-gauges { justify-content: center; flex-wrap: wrap; }
  .sec-row summary { grid-template-columns: 1fr auto; }
  .sec-row summary > .sev { grid-column: 1 / -1; justify-self: start; }
  .sec-row-body { padding-left: 14px; }
  .sec-row-body dl { grid-template-columns: 1fr; }
  .sec-rule { grid-template-columns: 1fr; }
  .hl-check { grid-template-columns: 14px 1fr; }
  .hl-check .hl-value { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .sec-shield::before, .sec-ring, .hl-dial, .sec-stack, .sec-meter i { animation: none; } }
.hc-action { margin-top: 8px; }

/* Short-answer and matching questions */
.q-short { max-width: 420px; }
.q-match { display: grid; gap: 8px; }
.q-match-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 400; color: var(--text); margin: 0; }
.q-match-row > span:first-child { font-weight: 600; color: var(--brand); }
.q-match-row select { margin: 0; }
@media (max-width: 600px) { .q-match-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Course categories ---------- */
.course-cat { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cat-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 760px; margin: 0 auto 18px; box-shadow: 0 10px 30px -18px rgba(5, 26, 75, .35); transition: border-color .2s, box-shadow .2s; }
.cat-search:focus-within { border-color: var(--accent); box-shadow: 0 12px 34px -16px rgba(46, 163, 242, .5); }
.cat-search > svg { color: var(--muted); flex: none; }
.cat-search input[type=search] { border: 0; padding: 10px 4px; flex: 1; min-width: 0; outline: none; background: transparent; }
.cat-search input[type=search]:focus { outline: none; }
.cat-search select { width: auto; max-width: 220px; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 8px 10px; background: transparent; }
.cat-search .btn { border-radius: 999px; flex: none; }
.cat-search-lg { margin-bottom: 20px; }
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; max-width: 980px; }
.cat-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: .84rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.cat-chips a span { display: inline-block; margin-left: 4px; font-size: .72rem; color: var(--muted); font-weight: 700; }
.cat-chips a:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-chips a.active span { color: var(--gold); }
.cat-current { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 22px; border-radius: var(--radius-lg); background: var(--brand-50); border-left: 4px solid var(--accent); }
.cat-current > div { display: flex; flex-direction: column; gap: 2px; }
.cat-current strong { color: var(--brand); }
.cat-current span { font-size: .88rem; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(5, 26, 75, .55); }
.cat-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), #0d3a8c) center / cover no-repeat; position: relative; }
.cat-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 26, 75, .55)); opacity: 0; transition: opacity .25s; }
.cat-card:hover .cat-card-img::after { opacity: 1; }
.cat-card-img b { font-family: var(--font-heading); font-size: 2.6rem; color: var(--gold); }
.cat-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.cat-card-body strong { font-family: var(--font-heading); color: var(--brand); font-size: 1.08rem; }
.cat-card-body small { color: var(--muted); line-height: 1.5; }
.cat-card-body em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--accent); }
.cat-hero { position: relative; }
.cat-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5, 26, 75, .92) 0%, rgba(5, 26, 75, .7) 55%, rgba(5, 26, 75, .35) 100%); }
.cat-hero .container { position: relative; }
.cat-hero p { max-width: 640px; }
.cat-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cat-hero-meta span { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px); }
/* admin */
.cat-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.cat-admin-grid.saved .cat-admin-card { box-shadow: 0 0 0 2px var(--success-50); }
.cat-admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, opacity .2s; }
.cat-admin-card:hover { box-shadow: 0 14px 30px -20px rgba(5, 26, 75, .5); }
.cat-admin-card.dragging { opacity: .45; transform: scale(.98); }
.cat-admin-card.is-hidden .cat-admin-cover { filter: grayscale(1) opacity(.6); }
.cat-admin-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--brand), #0d3a8c) center / cover no-repeat; text-decoration: none; }
.cat-admin-cover > span:first-child { font-family: var(--font-heading); font-size: 2.4rem; color: var(--gold); }
.cat-admin-note { position: absolute; left: 8px; bottom: 8px; font-size: .66rem; font-style: normal; background: rgba(5, 26, 75, .75); color: #fff; padding: 2px 8px; border-radius: 99px; }
.cat-admin-handle { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .9); color: var(--brand); border-radius: 6px; padding: 2px 6px; font-size: .8rem; letter-spacing: -2px; cursor: grab; }
.cat-admin-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-admin-body h3 { margin: 0; font-size: 1.02rem; }
.cat-admin-body h3 a { color: var(--brand); text-decoration: none; }
.cat-admin-body p { margin: 0; }
.cat-admin-stats { display: flex; gap: 14px; color: var(--muted); }
.cat-admin-stats strong { color: var(--brand); }
.cat-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 8px; }
.cat-admin-actions form { display: inline; }
.cat-admin-move { margin-left: auto; display: inline-flex; gap: 4px; }
.cat-admin-add { align-items: center; justify-content: center; min-height: 240px; border: 2px dashed var(--line); background: transparent; color: var(--muted); font-weight: 700; text-decoration: none; gap: 6px; }
.cat-admin-add span { font-size: 2rem; color: var(--accent); }
.cat-admin-add:hover { border-color: var(--accent); color: var(--brand); }
.cat-form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.cat-form-grid > .panel + .panel { margin-top: 0; }
.cat-slug { display: flex; align-items: center; border: 1px solid #cfd6e2; border-radius: var(--radius); overflow: hidden; background: #fff; }
.cat-slug span { padding: 0 4px 0 12px; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.cat-slug input { border: 0 !important; padding-left: 2px !important; }
.cat-drop { position: relative; display: flex; align-items: flex-end; min-height: 230px; border-radius: var(--radius-lg); border: 2px dashed #cfd6e2; background: var(--brand-50) center / cover no-repeat; cursor: pointer; overflow: hidden; margin: 0; transition: border-color .2s; }
.cat-drop.over, .cat-drop:hover { border-color: var(--accent); }
.cat-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cat-drop-hint { width: 100%; padding: 14px 16px; background: linear-gradient(transparent, rgba(5, 26, 75, .78)); color: #fff; display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.cat-drop:not([style*="background-image"]):not(.has) .cat-drop-hint { background: none; color: var(--brand); text-align: center; align-self: center; }
.cat-drop-hint small { opacity: .85; }
.cat-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 16px; max-height: 520px; overflow: auto; padding: 2px; }
.cat-course { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.cat-course:hover { border-color: var(--accent); }
.cat-course.on { border-color: var(--accent); background: #eef7fe; }
.cat-course input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.cat-course-img { flex: none; width: 54px; height: 36px; border-radius: 6px; background: var(--brand-50) center / cover no-repeat; }
.cat-course-text { display: flex; flex-direction: column; min-width: 0; }
.cat-course-text strong { color: var(--brand); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-course-text small { color: var(--muted); font-size: .76rem; }
@media (max-width: 860px) { .cat-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .cat-search { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 10px 12px; }
  .cat-search select { border-left: 0; border-top: 1px solid var(--line); max-width: none; flex: 1 1 100%; order: 3; }
  .cat-search .btn { order: 4; flex: 1 1 100%; }
  .cat-current { flex-direction: column; align-items: flex-start; }
}
.submenu .sub-cat a { padding-left: 26px; position: relative; font-size: .86rem; }
.submenu .sub-cat a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }

/* Learning platform badge (AusEd LMS) at the top of the learner course menu */
.platform-badge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid #dbe3f0; border-radius: 14px; background: linear-gradient(135deg, #fff, #f3f7fd); box-shadow: 0 6px 18px -14px rgba(5, 26, 75, .4); }
.platform-badge img { height: 62px; width: auto; max-width: 90px; object-fit: contain; flex: none; }
.platform-badge div { display: flex; flex-direction: column; min-width: 0; }
.platform-badge small { font-size: .66rem; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7a93; }
.platform-badge strong { font-family: var(--font-heading); color: var(--brand); font-size: 1.05rem; line-height: 1.25; }
.platform-badge strong sup { font-size: .6em; }
.platform-badge span { font-size: .74rem; color: #6b7a93; }
.pb-edit { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 24px; margin-top: 16px; transition: opacity .2s; }
.pb-edit .platform-badge { margin: 0; }
@media (max-width: 760px) { .pb-edit { grid-template-columns: 1fr; } }
/* Category suggestions on the course form */
.cat-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: .8rem; }
.cat-suggest .cs-label { color: var(--muted); }
.cat-suggest .cs-ok { color: var(--success); font-weight: 600; margin-right: 4px; }
.cs-chip { border: 1px solid var(--line); background: #fff; color: var(--brand); border-radius: 999px; padding: 4px 11px; font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.cs-chip:hover { border-color: var(--accent); }
.cs-chip.strong { border-color: var(--accent); background: #eef7fe; }
.cs-chip.strong::before { content: '★ '; color: var(--gold); }
select.cs-auto { animation: csFlash 1.2s ease-out; }
@keyframes csFlash { 0% { box-shadow: 0 0 0 4px rgba(46, 163, 242, .45); } 100% { box-shadow: 0 0 0 0 rgba(46, 163, 242, 0); } }
.cat-sort-panel { margin-top: 20px; }
.cat-sort-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cat-sort-row { display: grid; grid-template-columns: 24px 54px minmax(0, 1fr) minmax(200px, 300px); gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.cat-sort-row .check { margin: 0; }
.cat-sort-row select { margin: 0; padding: 8px 10px; }
.cat-sort-title { display: flex; flex-direction: column; min-width: 0; }
.cat-sort-title strong { color: var(--brand); font-size: .9rem; }
.cat-sort-title small { color: var(--muted); }
@media (max-width: 700px) { .cat-sort-row { grid-template-columns: 24px 1fr; } .cat-sort-row .cat-course-img { display: none; } .cat-sort-row select { grid-column: 1 / -1; } }
.cat-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 36px 24px; border-radius: var(--radius-lg); background: var(--brand-50); }
.cat-empty > span { font-size: 2.4rem; }
.cat-empty h2 { margin: 8px 0 6px; }
.cat-empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Website Forms ---------- */
.wf-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.wf-tabs a { padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.wf-tabs a:hover { color: var(--brand); }
.wf-tabs a.active { color: var(--brand); border-bottom-color: var(--accent); }
.wf-tabs .pill { margin-left: 4px; }
.wf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.wf-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.wf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -20px rgba(5, 26, 75, .5); }
.wf-card.has-new { border-top-color: var(--danger); }
.wf-card-ico { font-size: 1.4rem; }
.wf-card strong { color: var(--brand); }
.wf-card-num { font-family: var(--font-heading); font-size: 2rem; color: var(--brand); line-height: 1.1; }
.wf-card-num small { font-size: .78rem; font-family: var(--font-body, inherit); color: var(--muted); margin-left: 6px; text-transform: uppercase; letter-spacing: 1px; }
.wf-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 20px; }
.wf-grid > .panel, .wf-grid > div > .panel + .panel { margin-top: 0; }
.wf-grid > div > .panel + .panel { margin-top: 20px; }
.wf-feed { list-style: none; margin: 12px 0 0; padding: 0; }
.wf-feed li + li { border-top: 1px solid var(--line); }
.wf-feed a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; text-decoration: none; color: var(--text); border-radius: 8px; }
.wf-feed a:hover { background: #f7f9fd; }
.wf-feed-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); }
.wf-feed-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wf-feed-main strong { color: var(--brand); font-size: .9rem; }
.wf-feed-main span { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-feed-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.wf-feed-side small { color: var(--muted); font-size: .74rem; }
.wf-stat strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--brand); }
.wf-stat span { font-size: .8rem; color: var(--muted); }
.wf-where { list-style: none; margin: 0; padding: 0; }
.wf-where li { display: flex; gap: 10px; padding: 8px 0; }
.wf-where li + li { border-top: 1px dashed var(--line); }
.wf-where small { display: block; color: var(--muted); font-size: .8rem; }
.wf-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.wf-tpl { display: flex; flex-direction: column; gap: 6px; }
.wf-tpl input { font-weight: 600; }
.wf-tpl textarea { font-size: .84rem; min-height: 120px; }
.wf-st { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .3px; white-space: nowrap; border: 1px solid transparent; }
.wf-st-new { background: var(--danger-50); color: var(--danger); }
.wf-st-open { background: #fdf3dc; color: #7a5a0f; }
.wf-st-replied { background: var(--success-50); color: var(--success); }
.wf-st-closed { background: #eef1f6; color: #5d6a80; }
.wf-toolbar { flex-wrap: wrap; gap: 10px; }
.wf-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.wf-row { display: grid; grid-template-columns: 24px minmax(160px, 1fr) minmax(0, 2.2fr) 110px 90px; gap: 12px; align-items: center; padding: 11px 14px; background: #fff; font-weight: 400; margin: 0; }
.wf-row-m { grid-template-columns: minmax(160px, 1.2fr) minmax(0, 2fr) 170px 90px 80px; }
.wf-row + .wf-row { border-top: 1px solid var(--line); }
.wf-row:hover:not(.wf-head) { background: #f7f9fd; }
.wf-row.is-new { box-shadow: inset 3px 0 0 var(--danger); }
.wf-row.is-new .wf-from strong, .wf-row.is-new .wf-msg strong { font-weight: 800; }
.wf-head { background: var(--brand-50) !important; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); cursor: default; }
.wf-from, .wf-msg { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--text); }
.wf-from strong, .wf-msg strong { color: var(--brand); font-size: .88rem; font-weight: 600; }
.wf-from small, .wf-msg small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-meta { font-size: .72rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.wf-star { color: var(--gold); margin-right: 3px; }
.wf-bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-top: 12px; border-radius: var(--radius); background: var(--brand); color: #fff; font-size: .85rem; }
.wf-bulkbar .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.wf-bulkbar .btn-danger-outline { color: #ffb4ad; border-color: #ffb4ad; }
.wf-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.wf-detail > div > * + * { margin-top: 16px; }
.wf-original header, .wf-reply header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wf-original header > div, .wf-reply header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wf-original header small, .wf-reply header small { color: var(--muted); font-size: .8rem; }
.wf-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.wf-avatar-staff { background: var(--brand); }
.wf-body { line-height: 1.65; word-wrap: break-word; }
.wf-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wf-reply { padding: 18px 20px; border-radius: var(--radius-lg); background: #f3f8fe; border: 1px solid #d6e8fb; margin-left: 28px; }
.wf-reply.wf-note { background: #fffaf0; border-color: #f2e2b8; }
.wf-reply.wf-failed { border-color: var(--danger); }
.wf-compose-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.wf-side .panel + .panel { margin-top: 16px; }
.wf-side > * + * { margin-top: 16px; }
.wf-status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-status-pick button { cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; padding: 5px 11px; opacity: .55; }
.wf-status-pick button.is-on { opacity: 1; border-color: currentColor; }
.wf-status-pick button:hover { opacity: 1; }
.wf-facts { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.wf-facts li { display: flex; flex-direction: column; padding: 7px 0; word-break: break-word; }
.wf-facts li + li { border-top: 1px dashed var(--line); }
.wf-facts span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.wf-mini { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.wf-mini li { display: flex; flex-direction: column; padding: 6px 0; }
.wf-mini small { color: var(--muted); }
@media (max-width: 1000px) { .wf-grid, .wf-detail { grid-template-columns: 1fr; } .wf-reply { margin-left: 0; } }
@media (max-width: 760px) {
  .wf-row { grid-template-columns: 24px 1fr auto; } .wf-row .wf-msg, .wf-head > span:nth-child(3), .wf-head > span:nth-child(5) { grid-column: 2 / -1; }
  .wf-row > span.small { display: none; }
  .wf-row-m { grid-template-columns: 1fr auto; } .wf-row-m .wf-msg { grid-column: 1 / -1; } .wf-row-m > span.small { display: none; }
  .wf-head { display: none; }
}
.wf-bulkbar[hidden], .wf-compose [hidden] { display: none !important; }

/* ---------- Learning analytics (learner) ---------- */
.la-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.la-chips span { padding: 6px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.la-chips b { color: var(--brand); }
.la-chips b.up, .up { color: var(--success) !important; } .la-chips b.down, .down { color: var(--danger) !important; }
.la-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.la-grid2 > .panel + .panel { margin-top: 0; }
.la-h3 { margin: 0 0 12px; font-size: 1.02rem; color: var(--brand); }
.la-topic { padding: 9px 0; } .la-topic + .la-topic { border-top: 1px dashed var(--line); }
.la-topic .row span:first-child { font-weight: 600; font-size: .9rem; }
.la-topic small { color: var(--muted); font-size: .78rem; }
.la-bar { height: 9px; background: #eef2f8; border-radius: 99px; overflow: hidden; margin: 6px 0 3px; position: relative; }
.la-bar i { display: block; height: 100%; border-radius: 99px; animation: secWidth .9s ease-out both; }
.la-bar .mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); opacity: .6; }
.la-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .7rem; font-weight: 700; }
.la-ok { background: var(--success-50); color: var(--success); } .la-info { background: #e8f2fd; color: #14609a; } .la-mid { background: #fdf3dc; color: #7a5a0f; } .la-bad { background: var(--danger-50); color: var(--danger); }
.la-note { font-size: .86rem; padding: 10px 12px; border-radius: 10px; background: #f4f8fe; border-left: 3px solid var(--accent); margin-bottom: 8px; line-height: 1.5; }
.la-strip { margin-top: 18px; }
.la-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.la-strip-grid b { display: block; font-family: var(--font-heading); font-size: 1.35rem; color: var(--brand); }
.la-strip-grid span { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .la-grid2 { grid-template-columns: 1fr; } .la-strip-grid { grid-template-columns: 1fr 1fr; } }
/* Learning report */
.kpi2 { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kpi2 > span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.kpi2 b { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--brand); line-height: 1.15; margin-top: 2px; }
.kpi2 em { display: block; font-style: normal; font-size: .78rem; margin-top: 4px; }
.muted2 { color: var(--muted); font-size: .82rem; }
.rp-hero { position: relative; display: flex; gap: 28px; align-items: center; padding: 30px; border-radius: 20px; color: #fff; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #0d3a8c 0%, #051a4b 60%); }
.rp-hero::after { content: "🏆"; position: absolute; right: 30px; top: 16px; font-size: 5rem; opacity: .13; }
.rp-hero h1 { color: #fff; margin: 4px 0 6px; font-size: 1.8rem; }
.rp-hero p { color: #c9d6ee; margin: 0; }
.rp-eyebrow { font-size: .72rem; letter-spacing: 2px; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.rp-ring { flex: none; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #0a2a6a 78%, transparent 79% 100%), conic-gradient(#5fe0a0 calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); animation: secRing 1.2s ease-out both; }
.rp-ring b { font-family: var(--font-heading); font-size: 1.9rem; color: #fff; text-align: center; line-height: 1; }
.rp-ring small { display: block; font-size: .62rem; letter-spacing: 1.2px; color: #9fb3d6; margin-top: 4px; text-transform: uppercase; font-family: var(--font-body); }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.rp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.rp-grid > .panel + .panel { margin-top: 0; }
.rp-mod { display: grid; grid-template-columns: minmax(0, 1fr) 130px 70px 80px; gap: 12px; align-items: center; padding: 10px 0; }
.rp-mod + .rp-mod { border-top: 1px dashed var(--line); }
.rp-mod strong { color: var(--brand); font-size: .88rem; }
.rp-mod-head { padding-top: 0; font-size: .74rem; color: var(--muted); }
.rp-cmp { display: grid; grid-template-columns: 90px 1fr 50px; gap: 10px; align-items: center; font-size: .82rem; margin: 8px 0; }
.rp-cmp b { color: var(--brand); }
.rp-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-skills span { padding: 6px 12px; border-radius: 99px; background: #eef7fe; border: 1px solid #cfe6fb; color: #14609a; font-size: .8rem; font-weight: 600; }
.rp-tl { display: flex; justify-content: space-between; position: relative; margin: 10px 4px 0; gap: 4px; }
.rp-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: #dbe6f6; }
.rp-tl div { position: relative; text-align: center; font-size: .74rem; color: var(--muted); flex: 1; }
.rp-tl i { display: block; width: 20px; height: 20px; margin: 0 auto 6px; border-radius: 50%; background: #dbe6f6; border: 3px solid #fff; box-shadow: 0 0 0 2px #dbe6f6; }
.rp-tl .on i { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.rp-tl .on.last i { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.rp-tl b { display: block; color: var(--brand); font-size: .78rem; }
.rp-next { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.rp-next + .rp-next { margin-top: 10px; }
.rp-next:hover { border-color: var(--accent); }
.rp-next img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.rp-next strong { display: block; color: var(--brand); font-size: .9rem; }
.rp-next small { color: var(--muted); }
@media (max-width: 900px) { .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-grid { grid-template-columns: 1fr; } .rp-hero { flex-direction: column; text-align: center; } .rp-mod { grid-template-columns: 1fr 90px 60px; } .rp-mod > span:nth-child(3) { display: none; } }
/* ---------- Course effectiveness (staff) ---------- */
.ef-top { margin-bottom: 16px; }
.ef-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-bottom: 0; }
.ef-ring { --c: var(--accent); width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #e8edf5 0); animation: secRing 1.2s ease-out both; }
.ef-ring.is-good { --c: var(--success); } .ef-ring.is-ok { --c: var(--accent); } .ef-ring.is-low { --c: var(--gold); } .ef-ring.is-na { --c: #cfd6e2; }
.ef-ring b { font-family: var(--font-heading); font-size: 2.4rem; color: var(--brand); line-height: 1; text-align: center; }
.ef-ring small { display: block; font-size: .62rem; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; font-family: var(--font-body); margin-top: 4px; }
.ef-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ef-pillar { padding: 12px 14px; border-radius: 12px; background: #f7f9fd; border: 1px solid var(--line); }
.ef-pillar strong { display: block; color: var(--brand); font-size: .84rem; }
.ef-pillar b { font-family: var(--font-heading); font-size: 1.4rem; color: var(--brand); }
.ef-pillar small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.4; min-height: 2.8em; }
.ef-grid { grid-template-columns: 1fr 1fr; }
.ef-funnel { display: flex; flex-direction: column; gap: 7px; }
.ef-fun { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: .84rem; }
.ef-fun-bar i { display: flex; align-items: center; justify-content: flex-end; height: 26px; padding-right: 8px; border-radius: 7px; background: linear-gradient(90deg, var(--brand), var(--accent)); color: #fff; font-weight: 700; font-size: .78rem; font-style: normal; animation: secWidth .9s ease-out both; }
.ef-fun-bar i.is-last { background: linear-gradient(90deg, var(--success), #5fd39b); }
.ef-drop { color: var(--danger); font-weight: 700; font-size: .78rem; }
.ef-warn { margin-top: 14px; border-left-color: var(--danger); background: #fdf4f3; }
.ef-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ef-tbl th { text-align: left; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 700; background: var(--brand-50); }
.ef-tbl td { padding: 10px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.ef-tbl tr:last-child td { border-bottom: 0; }
.ef-gain { display: grid; grid-template-columns: 80px 1fr 40px; gap: 10px; align-items: center; font-size: .82rem; margin: 6px 0; }
.ef-gain > div { display: flex; flex-direction: column; } .ef-gain .la-bar { margin: 2px 0; }
.ef-gain b { color: var(--success); }
.ef-q { display: grid; grid-template-columns: minmax(0, 1fr) 110px 130px; gap: 12px; align-items: center; padding: 11px 0; font-size: .84rem; }
.ef-q + .ef-q { border-top: 1px dashed var(--line); }
.ef-q strong { color: var(--brand); font-weight: 600; display: block; }
.ef-q small { display: block; color: var(--muted); margin: 2px 0 4px; }
.ef-q .la-pill { text-align: center; }
.ef-stars { color: var(--gold); letter-spacing: 2px; }
.ef-mini { --c: var(--accent); width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: radial-gradient(closest-side, #fff 74%, transparent 75% 100%), conic-gradient(var(--success) calc(var(--p) * 1%), #e8edf5 0); }
.ef-mini b { font-size: .82rem; color: var(--brand); }
@media (max-width: 1000px) { .ef-pillars { grid-template-columns: 1fr 1fr; } .ef-grid { grid-template-columns: 1fr; } .ef-hero { grid-template-columns: 1fr; justify-items: center; } }
@media (max-width: 600px) { .ef-fun { grid-template-columns: 110px 1fr 50px; } .ef-q { grid-template-columns: 1fr; } }
.ef-grid.ef-grid-q { grid-template-columns: 1.55fr 1fr; } @media (max-width: 1000px) { .ef-grid.ef-grid-q { grid-template-columns: 1fr; } }
.la-muted { background: #eef1f6; color: #4a5672; }
.la-pill { white-space: nowrap; }
@media (max-width: 600px) { .rp-mod { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; } .rp-mod > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .rp-mod-head { display: none; } }
/* Text-page and web-link lessons */
.lesson-page { max-width: 760px; margin: 0 auto; padding: 8px 6px 4px; font-size: 1rem; line-height: 1.7; }
.lesson-page img, .lesson-page video { max-width: 100%; height: auto; border-radius: 8px; }
.lesson-page table { width: 100%; border-collapse: collapse; margin: 1em 0; } .lesson-page td, .lesson-page th { border: 1px solid var(--line); padding: 6px 10px; }
.lesson-page h2 { margin-top: 1.4em; } .lesson-page h2:first-child { margin-top: .2em; }
.lesson-link { display: flex; gap: 18px; align-items: flex-start; padding: 18px 8px; max-width: 760px; margin: 0 auto; }
.lesson-link h2 { margin: 2px 0 10px; font-size: 1.25rem; }
.lesson-link .cms-body { margin-bottom: 14px; }
.lesson-link-icon { flex: none; width: 58px; height: 58px; border-radius: 14px; background: #e8f2fd; color: var(--accent, #2ea3f2); display: grid; place-items: center; }
@media (max-width: 600px) { .lesson-link { flex-direction: column; } }
.lesson-page iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
/* Admin menu on phones: one button with the current page; the full menu opens as a grouped panel */
.admin-menu-btn { display: none; }
.admin-links { display: contents; }
@media (max-width: 860px) {
  .admin-side { display: block !important; padding: 10px 16px !important; position: relative; }
  .admin-menu-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; cursor: pointer; text-align: left; }
  .admin-menu-btn .amb-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .admin-menu-btn small { color: #8fa3c9; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; }
  .admin-menu-btn b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .admin-menu-btn .badge { background: var(--gold); color: var(--brand); border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 2px 8px; }
  .admin-menu-btn .amb-chev { transition: transform .2s; flex: none; }
  .admin-side.open .amb-chev { transform: rotate(180deg); }
  .admin-links { display: none; }
  .admin-side.open .admin-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 8px 0 6px; }
  .admin-side.open .admin-links .label { display: block !important; grid-column: 1 / -1; padding: 12px 6px 4px; }
  .admin-side .admin-links a { padding: 10px 10px; font-size: .86rem; min-width: 0; }
  .admin-side .admin-links a .ico, .admin-side .admin-links a .badge { display: inline-block !important; }
  .admin-side .admin-links a .ico { display: block !important; }
  .admin-side .who, .admin-side .side-foot { display: none !important; }
  /* Tab bars: one row that scrolls sideways instead of wrapping */
  .settings-tabs, .wf-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .settings-tabs::-webkit-scrollbar, .wf-tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 10px 12px; font-size: .84rem; }
  .wf-tabs > * { white-space: nowrap; flex: none; }
}
@media (max-width: 380px) { .admin-side.open .admin-links { grid-template-columns: 1fr; } }
/* ---------- Course testers ---------- */
.tester-side { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 10px 12px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0d58a; text-decoration: none; color: var(--brand); }
.tester-side:hover, .tester-side.current { background: #fdefc4; }
.tester-side strong { display: block; font-size: .86rem; } .tester-side small { color: #7a5a0f; font-size: .74rem; }
.tester-side .ts-ico { font-size: 1.2rem; } .tester-side .ts-pct { font-weight: 700; font-size: .82rem; }
.tc-main { max-width: 920px; }
.tc-head { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tc-head h1 { font-size: 1.5rem; margin: 2px 0 6px; } .tc-head p { margin: 0; max-width: 560px; }
.tc-score { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; flex: none; }
.tc-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #e6ebf3 0); display: grid; place-items: center; position: relative; }
.tc-ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.tc-ring b { position: relative; font-size: .9rem; color: var(--brand); }
.tc-c b { color: var(--brand); } .tc-pass b { color: var(--success); } .tc-fail b { color: var(--danger); }
.tc-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; position: sticky; top: 92px; z-index: 5; background: var(--bg-soft, #f4f6fa); padding: 8px 0; }
.tc-jump a { font-size: .76rem; font-weight: 600; text-decoration: none; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.tc-jump a span { color: var(--muted); font-weight: 500; margin-left: 3px; }
.tc-jump a.done { background: var(--success-50); border-color: #bfe3cb; } .tc-jump a.done span { color: var(--success); }
.tc-jump-issues { background: #fff8e6 !important; border-color: #f0d58a !important; }
.tc-section { scroll-margin-top: 150px; } .tc-section h2 { font-size: 1.05rem; margin: 0 0 6px; }
.tc-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.tc-item:first-of-type { border-top: 0; }
.tc-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #eef1f6; color: var(--muted); font-size: .76rem; font-weight: 700; display: grid; place-items: center; }
.tc-pass .tc-num { background: var(--success); color: #fff; } .tc-fail .tc-num { background: var(--danger); color: #fff; } .tc-na .tc-num { background: #9aa8bf; color: #fff; }
.tc-body { flex: 1; min-width: 0; } .tc-text { font-size: .93rem; color: var(--text); margin-bottom: 8px; }
.tc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tc-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.tc-seg label { margin: 0; cursor: pointer; }
.tc-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.tc-seg span { display: block; padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); background: #fff; border-left: 1px solid var(--line); }
.tc-seg label:first-child span { border-left: 0; }
.tc-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.tc-pass-btn input:checked + span { background: var(--success); color: #fff; }
.tc-fail-btn input:checked + span { background: var(--danger); color: #fff; }
.tc-na-btn input:checked + span { background: #6b7a94; color: #fff; }
.tc-note { flex: 1; min-width: 180px; padding: 7px 10px !important; font-size: .86rem !important; }
.tc-fail .tc-note { border-color: #f1b4b4; background: #fff8f8; }
.tc-saved { font-size: .74rem; color: var(--muted); min-width: 60px; }
.tc-log { display: inline-block; margin-top: 6px; color: var(--danger); font-weight: 600; }
.tc-issues { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.tc-issue { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.tc-staff { margin-top: 8px; padding: 8px 10px; background: #e8f2fd; border-radius: 8px; }
.tc-sev { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.tc-sev-blocker { background: var(--danger); color: #fff; } .tc-sev-major { background: var(--danger-50); color: var(--danger); }
.tc-sev-minor { background: #fdf3dc; color: #7a5a0f; } .tc-sev-suggestion { background: #e8f2fd; color: #14609a; }
.tc-issue-form { border-top: 1px solid var(--line); padding-top: 14px; } .tc-issue-form h3 { font-size: 1rem; margin: 0 0 10px; }
@media (max-width: 700px) { .tc-head { flex-direction: column; } .tc-score { width: 100%; } .tc-jump { top: 0; overflow-x: auto; flex-wrap: nowrap; } .tc-note { min-width: 100%; } }
.ts-verdict { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.ts-verdict h2 { margin: 0 0 4px; font-size: 1.2rem; } .ts-verdict p { margin: 0; color: var(--muted); } .ts-verdict ul { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; }
.ts-v-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: #fdf3dc; color: #7a5a0f; }
.ts-ok { border-left-color: var(--success); } .ts-ok .ts-v-icon { background: var(--success-50); color: var(--success); }
.ts-bad { border-left-color: var(--danger); } .ts-bad .ts-v-icon { background: var(--danger-50); color: var(--danger); }
.ts-v-actions { flex: none; }
.ts-sec { padding: 8px 0; } .ts-sec + .ts-sec { border-top: 1px dashed var(--line); }
.ts-bar { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: #edf0f5; margin-top: 6px; }
.ts-bar i, .ts-legend i { display: block; height: 100%; } .ts-bar .p, .ts-legend .p { background: var(--success); } .ts-bar .f, .ts-legend .f { background: var(--danger); } .ts-bar .n, .ts-legend .n { background: #9aa8bf; }
.ts-legend { display: flex; gap: 14px; margin-top: 10px; } .ts-legend span { display: inline-flex; align-items: center; gap: 5px; } .ts-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ts-tester { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ts-quote { margin-top: 6px; color: var(--text); font-style: italic; }
.ts-add { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ts-issues { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ts-issue { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; scroll-margin-top: 110px; }
.ts-issue.closed { background: #f8f9fb; opacity: .85; }
.ts-issue-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0; } .ts-issue-body p { margin: 2px 0 0; font-size: .9rem; }
.ts-shot img { display: block; max-width: 220px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); margin-top: 6px; }
.ts-issue-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.ts-issue-form select { width: auto; padding: 6px 8px; font-size: .84rem; } .ts-issue-form input[type=text] { flex: 1; min-width: 200px; padding: 6px 10px; font-size: .86rem; }
@media (max-width: 760px) { .ts-verdict { flex-wrap: wrap; } .ts-issue-body { grid-template-columns: 1fr; } }
.tag-gold { background: #fdf3dc; color: #7a5a0f; }
.tab-count { display: inline-block; background: var(--danger); color: #fff; border-radius: 99px; font-size: .66rem; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.tc-log[hidden] { display: none; }
#signoff .stars label { font-size: 2rem; }
.tc-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.tc-section { scroll-margin-top: 140px; }
/* ---------- Certificates: types, mini drawings, designer ---------- */
.cert-tag-attainment { background: #e8f2fd; color: #14609a; } .cert-tag-completion { background: #fdf3dc; color: #7a5a0f; } .cert-tag-licensing { background: #ece9fb; color: #4a3aa8; }
.cert-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.cert-type { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.cert-type h2 { font-size: 1.08rem; margin: 0; } .cert-type p { margin: 6px 0; font-size: .9rem; }
.cmini { --c1: #051a4b; --c2: #e3b23c; --paper: #fff; position: relative; display: block; aspect-ratio: 297 / 210; width: 100%; background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(5, 26, 75, .12), inset 0 0 0 1px rgba(5, 26, 75, .08); }
.cmini.cmini-portrait { aspect-ratio: 210 / 297; max-width: 62%; margin: 0 auto; }
.cmini .cm-body { position: absolute; inset: 12% 10%; display: flex; flex-direction: column; align-items: center; gap: 6%; }
.cmini i, .cmini b { display: block; }
.cmini .cm-top { width: 38%; height: 4%; background: var(--c1); border-radius: 2px; }
.cmini .cm-title { font: 700 clamp(.5rem, 1.3vw, .9rem)/1.1 'Times New Roman', serif; color: #1f2937; text-align: center; white-space: nowrap; overflow: hidden; max-width: 100%; min-height: 8%; }
.cmini .cm-name { width: 52%; height: 7%; background: var(--c1); opacity: .85; border-radius: 3px; }
.cmini .cm-line { width: 70%; height: 3%; background: #cfd5df; border-radius: 2px; } .cmini .cm-line.short { width: 45%; }
.cmini .cm-seal { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); }
.cmini-classic::before { content: ''; position: absolute; inset: 4%; border: 2px solid var(--c1); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--c2); }
.cmini-classic::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2.5%; background: var(--c1); box-shadow: 0 calc(var(--h, 1) * 0px) 0 var(--c1); }
.cmini-elegant::before { content: ''; position: absolute; inset: 4%; border: 4px solid var(--c2); outline: 1px solid var(--c1); outline-offset: -8px; }
.cmini-modern .cm-band { position: absolute; left: 0; top: 0; bottom: 0; width: 27%; background: var(--c1); border-right: 3px solid var(--c2); }
.cmini-modern .cm-body { left: 33%; align-items: flex-start; }
.cmini-modern .cm-seal { left: -13%; transform: none; }
.cmini-portrait.cmini-modern .cm-band { width: auto; right: 0; bottom: auto; height: 17%; border-right: 0; border-bottom: 3px solid var(--c2); }
.cmini-portrait.cmini-modern .cm-body { left: 10%; top: 24%; align-items: center; }
.cd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.cd-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cd-group { margin: 0; } .cd-group > summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 1rem; list-style: none; }
.cd-group > summary::-webkit-details-marker { display: none; }
.cd-group > summary::after { content: '▾'; float: right; color: var(--muted); } .cd-group:not([open]) > summary::after { content: '▸'; }
.cd-group[open] > summary { margin-bottom: 14px; }
.cd-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cd-style { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; background: #fff; }
.cd-style input { position: absolute; opacity: 0; width: 0; height: 0; }
.cd-style.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 163, 242, .18); }
.cd-style strong { font-size: .82rem; } .cd-style .cm-title { min-height: 6%; }
.cd-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cd-preset { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; }
.cd-preset span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cd-preset em { font-style: normal; font-size: .76rem; margin-left: 12px; color: var(--text); }
.cd-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-color { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; font-weight: 600; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 4px 4px; background: #fff; cursor: pointer; }
.cd-color input { width: 30px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; padding: 8px 10px; background: var(--brand-50); border-radius: 10px; }
.cd-chip { font: 600 .74rem/1 ui-monospace, monospace; border: 1px solid #c9d6ee; background: #fff; color: var(--brand); border-radius: 6px; padding: 5px 7px; cursor: pointer; }
.cd-chip:hover { border-color: var(--accent); }
.cd-sig { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.cd-has { display: flex; gap: 12px; align-items: center; color: var(--success); margin-bottom: 6px; } .cd-has .check { color: var(--text); }
.cd-save { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg-soft, #f4f6fa); padding: 12px 0; z-index: 4; border-top: 1px solid var(--line); }
.cd-preview { position: sticky; top: 108px; min-width: 0; } .cd-preview .panel { margin: 0; }
.cd-frame { position: relative; aspect-ratio: 297 / 210; background: #e9edf3; border-radius: 10px; overflow: hidden; }
.cd-frame.portrait { aspect-ratio: 210 / 297; max-height: 75vh; margin: 0 auto; }
.cd-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cd-noview { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); }
@media (max-width: 1100px) { .cert-types { grid-template-columns: 1fr; } .cert-type { flex-direction: row; } .cert-type .cmini { width: 220px; flex: none; } }
@media (max-width: 980px) { .cd { grid-template-columns: 1fr; } .cd-preview { position: static; order: -1; } }
@media (max-width: 600px) { .cert-type { flex-direction: column; } .cert-type .cmini { width: 100%; } .cd-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }
.cd-frame canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
/* Homepage: the three IIBP certificates */
.hm-cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.hm-cert { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.hm-cert:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5, 26, 75, .1); }
.hm-cert-art { position: relative; background: linear-gradient(135deg, #eef3fb, #f8f4e8); border-radius: 12px; padding: 22px 26px; margin-bottom: 18px; }
.hm-cert-art .cmini { box-shadow: 0 10px 24px rgba(5, 26, 75, .16); transform: rotate(-1.5deg); }
.hm-cert:nth-child(2) .hm-cert-art .cmini { transform: rotate(1.2deg); }
.hm-cert-art .cm-title { font-size: clamp(.6rem, 1.15vw, .95rem); }
.hm-cert-when { position: absolute; top: 10px; right: 10px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.hm-cert h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--brand); }
.hm-cert p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.hm-cert a { font-weight: 700; text-decoration: none; color: var(--accent); }
.hm-cert-verify { margin: 30px 0 0; color: var(--muted); } .hm-cert-verify a { font-weight: 700; }
@media (max-width: 900px) { .hm-cert-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.hm-cert-art .cm-title, .cert-type .cm-title { white-space: normal; line-height: 1.15; }
.cd-checks { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 14px; } .cd-checks[hidden] { display: none; }
.cd-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cmini-iibp::before { content: ''; position: absolute; left: 0; top: 0; width: 46%; height: 36%; background: linear-gradient(to bottom right, var(--c1) 0 36%, var(--c2) 36% 46%, transparent 46%); }
.cmini-iibp::after { content: ''; position: absolute; right: 0; bottom: 0; width: 46%; height: 36%; background: linear-gradient(to top left, var(--c1) 0 36%, var(--c2) 36% 46%, transparent 46%); }
.cmini-iibp { box-shadow: 0 1px 3px rgba(5, 26, 75, .12), inset 0 0 0 1px rgba(5, 26, 75, .08); }
.cmini-iibp .cm-body { z-index: 1; }
.cmini-iibp .cm-title { font-weight: 800; color: var(--c1); letter-spacing: .5px; }
.cmini-iibp .cm-seal { width: 9%; border-radius: 22%; background: var(--c1); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); bottom: 6%; }
.cmini-iibp.cmini-portrait { outline: 4px solid var(--c1); outline-offset: -4px; }
@media (max-width: 600px) { .cd-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-cert-art .cmini-portrait { max-width: 48%; }
.cmini-portrait .cm-title { font-size: clamp(.38rem, .7vw, .6rem) !important; overflow-wrap: anywhere; }
/* ---------- Drag-and-drop certificate designer ---------- */
.ced-toolbar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; position: sticky; top: 92px; z-index: 20; }
.ced-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ced-tool { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 5px 8px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font: inherit; color: var(--brand); }
.ced-tool b { font-size: 1rem; line-height: 1.2; } .ced-tool span { font-size: .68rem; font-weight: 600; color: var(--muted); }
.ced-tool:hover:not(:disabled) { border-color: var(--accent); background: #f2f8fe; } .ced-tool:disabled { opacity: .4; cursor: default; }
.ced-menu-wrap { position: relative; }
.ced-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(5, 26, 75, .16); padding: 6px; min-width: 240px; display: flex; flex-direction: column; }
.ced-menu[hidden] { display: none; }
.ced-menu button, .ced-menu label { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .86rem; color: var(--text); margin: 0; display: flex; justify-content: space-between; gap: 10px; }
.ced-menu button:hover, .ced-menu label:hover { background: var(--brand-50); }
.ced-menu code { color: var(--muted); font-size: .74rem; }
.ced-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 6px; cursor: pointer; }
.ced-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.ced-stage-wrap { min-width: 0; }
.ced-stage { background: #dfe4ec; border-radius: 14px; padding: 18px; display: flex; justify-content: center; }
.ced-page { position: relative; background: #fff; box-shadow: 0 10px 30px rgba(5, 26, 75, .2); overflow: hidden; outline: none; touch-action: none; user-select: none; }
.ced-hint { margin-top: 8px; }
.ced-el { position: absolute; box-sizing: border-box; cursor: move; }
.ced-el.locked { cursor: default; pointer-events: none; }
.ced-el:not(.locked):hover { outline: 1px dashed rgba(46, 163, 242, .8); }
.ced-el.selected { outline: 1.5px solid #2ea3f2 !important; z-index: 5; }
.ced-el.selected.locked { outline-style: dashed !important; }
.ced-el img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.ced-el svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ced-text { white-space: pre-wrap; overflow-wrap: break-word; width: 100%; min-height: 100%; }
.ced-text[contenteditable=true] { outline: 2px solid #e3b23c; background: rgba(255, 255, 255, .85); cursor: text; user-select: text; }
.ced-line, .ced-rect { position: absolute; } .ced-rect { inset: 0; box-sizing: border-box; }
.ced-h { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid #2ea3f2; border-radius: 2px; z-index: 6; pointer-events: auto; }
.ced-h-nw { left: -6px; top: -6px; cursor: nwse-resize; } .ced-h-n { left: calc(50% - 5px); top: -6px; cursor: ns-resize; } .ced-h-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.ced-h-e { right: -6px; top: calc(50% - 5px); cursor: ew-resize; } .ced-h-se { right: -6px; bottom: -6px; cursor: nwse-resize; } .ced-h-s { left: calc(50% - 5px); bottom: -6px; cursor: ns-resize; }
.ced-h-sw { left: -6px; bottom: -6px; cursor: nesw-resize; } .ced-h-w { left: -6px; top: calc(50% - 5px); cursor: ew-resize; }
.ced-guide { position: absolute; z-index: 8; pointer-events: none; background: #ff3d8b; } .ced-guide[hidden] { display: none; }
.ced-guide-v { top: 0; bottom: 0; width: 1px; } .ced-guide-h { left: 0; right: 0; height: 1px; }
.ced-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 170px; max-height: calc(100vh - 190px); overflow: auto; }
.ced-side .panel { margin: 0; }
.ced-xywh { display: flex; gap: 6px; align-items: center; margin: 10px 0 12px; }
.ced-xywh label { display: flex; align-items: center; gap: 3px; margin: 0; font-size: .72rem; color: var(--muted); }
.ced-xywh input { width: 58px; padding: 5px 6px; font-size: .82rem; }
.ced-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 12px; }
.ced-chips button { font: 600 .7rem/1 ui-monospace, monospace; border: 1px solid #c9d6ee; background: #fff; color: var(--brand); border-radius: 6px; padding: 4px 6px; cursor: pointer; }
.ced-fmt { display: flex; gap: 4px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ced-fmt button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font: inherit; color: var(--brand); }
.ced-fmt button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ced-fmt input[type=color] { width: 40px; height: 32px; padding: 2px; border-radius: 8px; }
.ced-actions { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.ced-upload-btn { margin-bottom: 6px; }
.ced-layers { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.ced-layers li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .82rem; }
.ced-layers li:hover { background: var(--brand-50); } .ced-layers li.on { background: #e3f1fd; font-weight: 600; }
.ced-layers .ico { width: 20px; text-align: center; color: var(--muted); } .ced-layers .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ced-layers .lk { border: 0; background: none; cursor: pointer; font-size: .8rem; opacity: .7; }
.ced-side .seg button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.ced-side .seg button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(5, 26, 75, .08); }
@media (max-width: 1100px) { .ced-body { grid-template-columns: 1fr; } .ced-side { position: static; max-height: none; } }
@media (max-width: 600px) { .ced-stage { padding: 8px; } .ced-toolbar { top: 0; } .ced-tool { min-width: 44px; padding: 4px 6px; } }
/* ---------- QR codes ---------- */
.qr-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; margin-bottom: 14px; }
.qr-filters input[type=search] { flex: 1; min-width: 220px; }
.qr-filters select { width: auto; }
.qr-table td { vertical-align: top; } .qr-table .right { text-align: right; }
.qr-revoked { opacity: .6; }
.qr-history summary { cursor: pointer; color: var(--accent); font-size: .76rem; }
.qr-history ul { margin: 6px 0 0; padding-left: 16px; color: var(--muted); font-size: .76rem; }
.qr-set { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.qr-set-main { display: flex; flex-direction: column; gap: 14px; } .qr-set-main .panel, .qr-set-side .panel { margin: 0; }
.qr-set-side { position: sticky; top: 108px; }
.qr-preview { display: flex; justify-content: center; padding: 18px; background: #eef1f6; border-radius: 14px; margin: 12px 0; }
.qr-preview svg { max-width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(5, 26, 75, .18)); }
.qr-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .8rem; font-weight: 600; margin: 0; min-width: 92px; background: #fff; }
.qr-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.qr-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 163, 242, .18); }
.qr-sw { display: grid; grid-template-columns: 14px 14px; gap: 3px; } .qr-sw i { width: 14px; height: 14px; background: #14256e; }
.qr-sw-rounded i { border-radius: 4px; } .qr-sw-dots i { border-radius: 50%; }
.qr-eye i { display: block; width: 30px; height: 30px; border: 5px solid #c9a246; box-sizing: border-box; position: relative; }
.qr-eye i::after { content: ''; position: absolute; inset: 5px; background: #14256e; }
.qr-eye-rounded i { border-radius: 9px; } .qr-eye-rounded i::after { border-radius: 3px; } .qr-eye-circle i, .qr-eye-circle i::after { border-radius: 50%; }
.verify-qr { display: flex; gap: 14px; align-items: center; margin: 4px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.verify-qr svg { width: 110px; height: auto; flex: none; }
@media (max-width: 980px) { .qr-set { grid-template-columns: 1fr; } .qr-set-side { position: static; order: -1; } }
.ced-qr svg { width: 100%; height: auto; display: block; }
.ced-zoom { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ced-zoom button { border: 0; background: none; padding: 6px 10px; cursor: pointer; font: inherit; font-weight: 700; color: var(--brand); }
.ced-zoom button:hover { background: var(--brand-50); } .ced-zoom span { font-size: .74rem; color: var(--muted); min-width: 40px; text-align: center; }
.ced-stage.zoomed { overflow: auto; justify-content: flex-start; max-height: calc(100vh - 230px); }
.ced-stage.zoomed .ced-page { margin: 0 auto; flex: none; }
.ced-align { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 4px 0 10px; }
.ced-align span { margin-right: 4px; }
.ced-align button { width: 30px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; color: var(--brand); font-size: .9rem; }
.ced-align button:hover { border-color: var(--accent); }
.ced-badge-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ced-badge-styles button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.ced-badge-styles button.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 163, 242, .16); }
.ced-badge-styles svg { width: 32px; height: 34px; } .ced-badge-styles span { font-size: .66rem; font-weight: 600; color: var(--muted); }
.cert-tag-membership { background: #e7f6ee; color: #1d7a4a; }

/* Membership certificates: genuine but membership lapsed */
.verify-result.lapsed { background: #fff8e8; border: 1px solid #d99a1e; }
.verify-result.lapsed .verify-status h2 { color: #9a6a00; }
.verify-badge.warn { background: #d99a1e; }
.ms-ok { color: var(--success); }
.ms-bad { color: var(--danger); }
.btn-linkedin svg { vertical-align: -2px; margin-right: 2px; color: #0a66c2; }

/* Course › Modules: add / import a module */
.mod-add-seg button { padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit; }
.mod-add-seg button.active { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 2px rgba(5, 26, 75, .08); }
.mod-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.8; }
.mod-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--line, #cfd7e6); border-radius: 12px; text-align: center; cursor: pointer; margin-bottom: 12px; background: #fafbfd; }
.mod-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mod-drop.over, .mod-drop:hover { border-color: var(--accent); background: #f2f8fd; }
.mod-drop.has-file { border-style: solid; border-color: var(--success); background: var(--success-50); }

/* ---------- Guided tour (assets/js/tour.js) ---------- */
.tour-layer { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.tour-layer > * { pointer-events: auto; }
.tour-dim { position: fixed; inset: 0; background: transparent; transition: background .2s; pointer-events: none; }
.tour-dim.on { background: rgba(5, 26, 75, .62); pointer-events: auto; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4px #e3b23c, 0 0 0 9999px rgba(5, 26, 75, .62); transition: left .2s, top .2s, width .2s, height .2s; pointer-events: none; }
.tour-bubble { position: fixed; width: 380px; max-width: calc(100vw - 24px); background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 20px 50px rgba(5, 26, 75, .4); padding: 18px 20px 16px; box-sizing: border-box; font-size: .92rem; }
.tour-bubble h2 { margin: 6px 0 6px; font-size: 1.15rem; color: var(--brand); line-height: 1.3; }
.tour-bubble p { margin: 0 0 12px; line-height: 1.55; color: #33415c; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-count { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1a7fc4; }
.tour-x { width: 32px; height: 32px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 6px; }
.tour-x:hover { background: var(--brand-50); color: var(--brand); }
.tour-bars { display: flex; gap: 3px; margin-bottom: 14px; }
.tour-bars span { flex: 1; height: 4px; border-radius: 2px; background: #e3e8f0; }
.tour-bars span.done { background: var(--brand); } .tour-bars span.cur { background: #e3b23c; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-actions > div { display: flex; gap: 8px; }
.tour-skip { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: .82rem; cursor: pointer; padding: 8px 2px; font-family: inherit; }
.tour-arrow { position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.tour-at-right .tour-arrow { left: -7px; } .tour-at-left .tour-arrow { right: -7px; }
.tour-at-bottom .tour-arrow { top: -7px; } .tour-at-top .tour-arrow { bottom: -7px; }
.tour-center .tour-arrow, .tour-sheet .tour-arrow { display: none; }
.tour-bubble.tour-center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: 440px; }
.tour-bubble.tour-sheet { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
.tour-welcome { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 600px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(5, 26, 75, .35); }
.tw-head { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 26px 110px 22px 30px; }
.tw-head::after { content: ''; position: absolute; right: -30px; top: -20px; width: 120px; height: 160%; background: linear-gradient(135deg, transparent 46%, #e3b23c 46%, #e3b23c 56%, transparent 56%); pointer-events: none; }
@media (max-width: 560px) { .tw-head { padding-right: 30px; } .tw-head::after { display: none; } }
.tw-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #e3b23c; }
.tw-head h2 { margin: 8px 0 6px; color: #fff; font-size: 1.6rem; line-height: 1.2; }
.tw-head p { margin: 0; color: #c9d4ea; line-height: 1.55; max-width: 470px; }
.tw-body { padding: 18px 30px 22px; }
.tw-list { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: tw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tw-list li { counter-increment: tw; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line, #e3e8f0); border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--brand); }
.tw-list li::before { content: counter(tw); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.tw-list li.tw-more { font-weight: 400; color: var(--muted); } .tw-list li.tw-more::before { content: '+'; }
.tw-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tw-actions > div { display: flex; gap: 8px; }
.tw-never { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.tw-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .tw-list { grid-template-columns: 1fr; } .tw-head h2 { font-size: 1.3rem; } }
.tour-resume { position: fixed; left: 18px; bottom: 18px; z-index: 8990; display: flex; align-items: center; background: var(--brand); border-radius: 999px; box-shadow: 0 10px 30px rgba(5, 26, 75, .3); padding: 4px 4px 4px 0; }
.tour-resume button[data-r="go"] { border: 0; background: none; color: #fff; font-weight: 600; font-size: .88rem; padding: 10px 14px 10px 18px; cursor: pointer; font-family: inherit; }
.tour-resume .tour-x { color: #c9d4ea; } .tour-resume .tour-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tour-done { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9001; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(5, 26, 75, .25); padding: 14px 16px; width: min(520px, calc(100vw - 24px)); box-sizing: border-box; }
.tour-done-ico { width: 42px; height: 42px; border-radius: 50%; background: #e3b23c; color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.tour-done div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--muted); }
.tour-done strong { color: var(--brand); font-size: 1rem; }
.tour-check { position: fixed; right: 18px; bottom: 18px; z-index: 8980; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tc-pill { display: flex; align-items: center; gap: 8px; border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 10px 16px 10px 10px; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: 0 10px 30px rgba(5, 26, 75, .3); font-family: inherit; }
.tc-pill strong { color: #e3b23c; }
.tc-ring { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#e3b23c calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0); -webkit-mask: radial-gradient(circle 8px, transparent 98%, #000); mask: radial-gradient(circle 8px, transparent 98%, #000); }
.tc-panel { display: none; order: -1; width: 340px; max-width: calc(100vw - 36px); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(5, 26, 75, .28); overflow: hidden; }
.tour-check.open .tc-panel { display: block; }
.tc-head { background: var(--brand); color: #fff; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tc-head span { color: #e3b23c; font-weight: 700; font-size: .82rem; }
.tc-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); } .tc-bar i { display: block; height: 6px; border-radius: 3px; background: #e3b23c; }
.tc-panel ul { list-style: none; margin: 0; padding: 6px 8px 8px; }
.tc-panel li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: .88rem; border-radius: 8px; }
.tc-panel li.done { color: var(--muted); text-decoration: line-through; }
.tc-panel li a { flex: 1; display: flex; justify-content: space-between; color: var(--text); text-decoration: none; }
.tc-panel li a em { font-style: normal; font-size: .78rem; color: #1a7fc4; font-weight: 600; }
.tc-panel li:not(.done):hover { background: #eaf5fd; }
.tc-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid #c9d2e3; box-sizing: border-box; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.tc-panel li.done .tc-dot { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.tc-foot { border-top: 1px solid #e3e8f0; padding: 10px 16px; display: flex; justify-content: space-between; font-size: .82rem; }
.tc-foot button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .82rem; font-family: inherit; text-decoration: underline; }
@media print { .tour-layer, .tour-check, .tour-resume, .tour-done { display: none !important; } }

/* Admin › Tours */
.tr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tr-kpi { background: #fff; border: 1px solid var(--line, #e3e8f0); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tr-kpi span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tr-kpi strong { font-size: 1.7rem; color: var(--brand); line-height: 1.2; }
.tr-kpi small { color: var(--muted); }
.tr-grid { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.tr-grid > .panel { margin: 0; }
.tr-funnel { flex: 3 1 520px; } .tr-checks { flex: 2 1 300px; }
.tr-row { display: grid; grid-template-columns: 24px minmax(120px, 220px) minmax(0, 1fr) 44px 48px; gap: 10px; align-items: center; font-size: .85rem; padding: 4px 0; }
.tr-row .n { color: var(--muted); text-align: right; } .tr-row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-bar { height: 14px; background: #eef2f8; border-radius: 4px; } .tr-bar i { display: block; height: 14px; border-radius: 4px; background: #2ea3f2; }
.tr-row.worst .tr-bar i { background: #e3b23c; }
.tr-row .c { font-weight: 700; text-align: right; } .tr-row .d { font-size: .78rem; color: var(--muted); text-align: right; } .tr-row .d.big { color: var(--danger); font-weight: 700; }
.tr-check { font-size: .85rem; margin-bottom: 10px; } .tr-check div:first-child { display: flex; justify-content: space-between; margin-bottom: 4px; }
.tr-check .tr-bar { height: 8px; } .tr-check .tr-bar i { height: 8px; background: #e3b23c; }
.tr-note { background: #fff8e6; color: #6b4e00; padding: 10px 12px; border-radius: 8px; font-size: .85rem; margin: 10px 0 0; }
.tr-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.tr-pill.ok { background: #e3f4ea; color: #17643a; } .tr-pill.info { background: #e4f2fc; color: #0f5d93; } .tr-pill.bad { background: #fdecea; color: #9b1c14; } .tr-pill.muted { background: #eef1f6; color: #3d4760; }
.tr-tours { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tr-tours a { padding: 9px 14px; border-radius: 10px; border: 1px solid #c9d2e3; background: #fff; text-decoration: none; color: var(--text); font-size: .88rem; }
.tr-tours a.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tr-tours a .off { color: var(--muted); } .tr-tours a.active .off { color: #c9d4ea; }
.ts-layout { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ts-list { flex: 3 1 460px; margin: 0; } .ts-side { flex: 2 1 340px; display: flex; flex-direction: column; gap: 18px; } .ts-side .panel { margin: 0; }
.ts-step { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #e3e8f0; border-radius: 10px; margin-bottom: 6px; background: #fff; }
.ts-step.current { border-color: #2ea3f2; background: #eaf5fd; }
.ts-step.dragging { opacity: .5; } .ts-step.over { border-color: var(--gold, #e3b23c); border-style: dashed; }
.ts-grip { cursor: grab; color: #8a93a8; font-size: 1.1rem; user-select: none; text-align: center; }
.ts-num { width: 26px; height: 26px; border-radius: 50%; background: #eef2f8; color: var(--brand); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.ts-main { min-width: 0; } .ts-main strong { color: var(--brand); display: block; } .ts-main small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-reach { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.ts-acts { display: flex; gap: 4px; } .ts-acts form { margin: 0; }
@media (max-width: 640px) { .ts-step { grid-template-columns: 22px 28px minmax(0, 1fr) auto; } .ts-reach { display: none; } .tr-row { grid-template-columns: 20px minmax(0, 1fr) 40px 40px; } .tr-row .tr-bar { display: none; } }

.tr-filter select, .tr-filter input[type=search] { width: auto; min-width: 0; max-width: 260px; }
.tr-filter label { margin: 0; }
@media (max-width: 640px) { .tour-resume { bottom: 76px; left: 12px; } .tour-check { right: 12px; bottom: 14px; } }
.tour-check.open ~ .tour-resume { display: none; }

/* Admin › Audit log */
.au-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.au-filters label { display: flex; align-items: center; gap: 6px; }
.au-filters input[type=date] { width: auto; }
.au-person { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.au-act { font-weight: 600; color: var(--brand); }
.au-login_failed .au-act { color: var(--danger); }
.au-login .au-act { color: #17643a; }
.au-view .au-act { font-weight: 400; color: var(--muted); }
.au-warn { color: var(--danger) !important; }
.au-table td { vertical-align: top; }
.nowrap { white-space: nowrap; }
.sample-panel { margin-top: 22px; } .sample-panel summary { cursor: pointer; } .tag-gold { background: #fdf3dc; color: #7a5a00; }

/* Admin › Users (no sideways scrolling: grid rows, cards on phones) */
.us-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.us-chips a { background: #fff; border: 1px solid #d9e0eb; border-radius: 999px; padding: 7px 14px; font-size: .84rem; font-weight: 600; color: #33415c; text-decoration: none; }
.us-chips a b { color: var(--brand); margin-left: 3px; } .us-chips a.warn b { color: #b26b00; }
.us-chips a.on { background: var(--brand); border-color: var(--brand); color: #fff; } .us-chips a.on b { color: #e3b23c; }
.us-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line, #e3e8f0); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.us-bar .us-search { flex: 1 1 260px; min-width: 0; width: auto; } .us-bar select { width: auto; }
.us-tog { display: flex; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); margin: 0; }
.us-list { background: #fff; border: 1px solid var(--line, #e3e8f0); border-radius: 12px; }
.us-row { display: grid; grid-template-columns: 28px minmax(200px, 2.2fr) 110px minmax(150px, 1.6fr) 110px minmax(150px, 1.3fr) 150px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eef1f6; }
.us-head { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #f8fafc; padding-top: 9px; padding-bottom: 9px; border-radius: 12px 12px 0 0; }
.us-who { display: flex; gap: 11px; align-items: center; min-width: 0; } .us-who > div { min-width: 0; }
.us-name { font-weight: 700; color: var(--brand); text-decoration: none; } .us-name:hover { text-decoration: underline; }
.us-email { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .us-org { color: #8a93a8; font-size: .76rem; }
.us-role-pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; }
.us-r-admin { background: var(--brand); color: #fff; } .us-r-teacher { background: #2ea3f2; color: #fff; } .us-r-learner { background: #eef2f8; color: #33415c; }
.us-learn { font-size: .82rem; color: #33415c; } .us-learn b { color: var(--brand); }
.us-mini { height: 6px; background: #eef2f8; border-radius: 3px; margin-top: 5px; max-width: 140px; } .us-mini i { display: block; height: 6px; border-radius: 3px; background: #2ea3f2; } .us-mini i.done { background: #1f8a4c; }
.us-cell { font-size: .84rem; } .us-sub { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; }
.us-acc { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 600; font-size: .84rem; }
.us-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.us-d-ok { background: #1f8a4c; } .us-d-inv { background: #2ea3f2; } .us-d-bad { background: var(--danger); } .us-d-no { background: #9aa8bf; }
.us-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; } .us-actions form { margin: 0; }
.us-link { border: 0; background: none; color: #1a7fc4; font-weight: 700; font-size: .82rem; cursor: pointer; padding: 6px 4px; font-family: inherit; white-space: nowrap; }
.us-menu { position: relative; } .us-menu summary { list-style: none; width: 34px; height: 34px; border: 1px solid #d9e0eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; color: var(--muted); background: #fff; }
.us-menu summary::-webkit-details-marker { display: none; } .us-menu[open] summary { border-color: var(--brand); color: var(--brand); }
.us-menu-list { position: absolute; right: 0; top: 40px; z-index: 30; width: 220px; background: #fff; border: 1px solid #d9e0eb; border-radius: 10px; box-shadow: 0 14px 34px rgba(5, 26, 75, .18); padding: 6px; }
.us-menu-list a, .us-menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; border: 0; background: none; font: inherit; font-size: .86rem; color: var(--text); text-decoration: none; cursor: pointer; }
.us-menu-list a:hover, .us-menu-list button:hover { background: #eaf5fd; } .us-menu-list hr { border: 0; border-top: 1px solid #eef1f6; margin: 4px 0; }
.us-menu-list .us-danger { color: var(--danger); }
.us-bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #eaf5fd; border-bottom: 1px solid #cfe6f8; padding: 9px 16px; font-size: .84rem; color: #0f5d93; border-radius: 12px 12px 0 0; }
.us-bulk[hidden] { display: none; } .us-bulk + .us-head { border-radius: 0; }
.us-role { display: inline-flex; gap: 6px; align-items: center; } .us-role select { width: auto; padding: 4px 8px; font-size: .8rem; }
.us-clear { margin-left: auto; border: 0; background: none; color: #0f5d93; text-decoration: underline; cursor: pointer; font: inherit; }
.us-empty { padding: 22px 16px; color: var(--muted); }
.us-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 16px; font-size: .8rem; color: var(--muted); }
@media (max-width: 1100px) { .us-row { grid-template-columns: 28px minmax(180px, 2fr) 100px minmax(140px, 1.4fr) minmax(130px, 1.2fr) 140px; } .us-row > :nth-child(5) { display: none; } }
@media (max-width: 760px) {
  .us-head { display: none; }
  .us-row { grid-template-columns: 24px 1fr auto; grid-template-areas: "cb who who" ". role role" ". learn learn" ". acc actions"; gap: 6px 10px; padding: 14px; }
  .us-row > .us-cb { grid-area: cb; align-self: start; padding-top: 10px; } .us-row > .us-who { grid-area: who; } .us-row > .us-actions { grid-area: actions; align-self: center; }
  .us-row > :nth-child(3) { grid-area: role; } .us-row > :nth-child(4) { grid-area: learn; } .us-row > :nth-child(5) { display: none; } .us-row > :nth-child(6) { grid-area: acc; }
}

/* Learning analytics › Learners & progress (no sideways scrolling) */
.lp-chips a { display: inline-flex; align-items: center; gap: 6px; }
.lp-summary { padding: 10px 18px; background: #fff8e6; border-bottom: 1px solid #f3e3b8; font-size: .82rem; color: #5b6478; border-radius: 12px 12px 0 0; } .lp-summary b { color: var(--brand); }
.lp-summary + .us-head { border-radius: 0; }
.lp-row { display: grid; grid-template-columns: minmax(190px, 1.15fr) minmax(200px, 1.35fr) minmax(190px, 1.1fr) 150px; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eef1f6; }
.lp-row.lp-one { grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1.3fr) 160px; }
.lp-course { font-size: .86rem; line-height: 1.35; min-width: 0; } .lp-course a { font-weight: 600; }
.lp-bar { height: 8px; border-radius: 4px; background: #eef2f8; } .lp-bar i { display: block; height: 8px; border-radius: 4px; background: #2ea3f2; } .lp-bar i.done { background: #1f8a4c; }
.lp-pt { display: flex; justify-content: space-between; font-size: .8rem; margin-top: 5px; color: var(--muted); } .lp-pt b { color: var(--brand); }
.lp-now { font-size: .8rem; color: #33415c; margin-top: 3px; } .lp-now.bad { color: var(--danger); font-weight: 600; }
.lp-sc { font-size: .78rem; color: var(--muted); margin-top: 2px; } .lp-sc b { color: var(--brand); }
.lp-st { text-align: right; } .lp-link { display: block; font-size: .8rem; font-weight: 700; margin-top: 5px; } .lp-nudge { color: #b26b00; }
.tr-pill.lp-p-inactive { background: #fff4dc; color: #7a5a00; }
@media (max-width: 860px) {
  .lp-row, .lp-row.lp-one { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px; }
  .lp-row > .us-who { grid-column: 1; } .lp-row > .lp-st { grid-column: 2; grid-row: 1; }
  .lp-row > .lp-course, .lp-row > .lp-prog { grid-column: 1 / -1; }
  .lp-list .us-head { display: none; }
}

/* Inactivity sign-out */
.auth-idle { background: #fff7e0; border: 1px solid #f0d78c; border-left: 4px solid var(--gold, #e3b23c); color: #5a4300; border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-size: .92rem; line-height: 1.45; }
.auth-idle b { display: block; color: #3d2e00; margin-bottom: 2px; }
.session-warn .ui-confirm-icon { background: #fff4d6; color: #a57800; }
.session-warn .session-left { font-variant-numeric: tabular-nums; color: var(--navy, #051a4b); }
.session-warn .ui-confirm-icon::before { content: '!'; }
