/* ==========================================================================
   Bisou Training Portal
   Scoped under .btp so it never leaks into the theme, and specific enough to
   win over Astra / Elementor element styles.
   ========================================================================== */

body.btp-portal { background: #f6f2ea; }
body.btp-portal .site-content > .ast-container,
body.btp-portal #content > .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }
body.btp-portal .entry-content > .btp-root { margin: 0; }
body.btp-portal.ast-separate-container .ast-article-single,
body.btp-portal.ast-separate-container .ast-article-post { background: transparent; padding: 0; }

.btp {
	--ink: #16130e;
	--ink-2: #3a342b;
	--noir: #0d0b08;
	--noir-2: #1b1812;
	--noir-3: #29251d;
	--gold: #b8914a;
	--gold-hi: #e3c785;
	--gold-lo: #8a6a2c;
	--gold-grad: linear-gradient(135deg, #f0dba0 0%, #cfa95f 34%, #a47f38 66%, #dcc07d 100%);
	--cream: #f6f2ea;
	--cream-2: #efe8db;
	--paper: #ffffff;
	--line: #e7dfd0;
	--line-2: #d7ccb8;
	--muted: #6f675a;
	--soft: #9b9281;
	--ok: #2c7552;
	--ok-bg: #e7f2ec;
	--warn: #9a5d0c;
	--warn-bg: #fbf0dc;
	--danger: #ad3727;
	--danger-bg: #fbe8e4;
	--r: 18px;
	--r-sm: 12px;
	--r-xs: 8px;
	--shadow: 0 1px 2px rgba(22, 19, 14, .04), 0 10px 30px -14px rgba(22, 19, 14, .18);
	--shadow-lg: 0 2px 6px rgba(22, 19, 14, .06), 0 24px 60px -24px rgba(22, 19, 14, .35);
	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gutter: 16px;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: left;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}
/* Beat theme link styles (Astra underlines links inside entry content). */
.btp-root.btp a:not(.btp-link), .btp-root.btp a:not(.btp-link):hover, .btp-root.btp a:not(.btp-link):focus { text-decoration: none; box-shadow: none; }
.btp-root.btp .btp-prose a:not(.btp-btn) { text-decoration: underline; text-underline-offset: 3px; }
.btp *, .btp *::before, .btp *::after { box-sizing: border-box; }
.btp-root { width: 100%; }

/* ---------- Base typography (reset theme styles) ---------- */
.btp h1, .btp h2, .btp h3, .btp h4 {
	font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0;
	line-height: 1.12; letter-spacing: 0; text-transform: none; clear: none;
}
.btp h1 { font-size: clamp(30px, 6vw, 44px); }
.btp h2 { font-size: clamp(24px, 4.2vw, 30px); }
.btp h3 { font-size: 21px; }
.btp h4 { font-size: 18px; }
.btp p { margin: 0 0 1em; }
.btp p:last-child { margin-bottom: 0; }
.btp a { color: inherit; text-decoration: none; }
.btp a:hover { color: inherit; }
.btp img { max-width: 100%; height: auto; display: block; }
.btp ul, .btp ol { margin: 0; padding: 0; }
.btp small { font-size: 13px; }
.btp .btp-i { flex: none; display: inline-block; vertical-align: middle; }
.btp .btp-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo);
}
.btp .btp-muted { color: var(--muted); }
.btp .btp-soft { color: var(--soft); }
.btp .btp-serif { font-family: var(--serif); }
.btp [hidden], .btp-root [hidden] { display: none !important; }
.btp .btp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btp :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Wordmark ---------- */
.btp-wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; user-select: none; }
.btp-wordmark__top { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: .07em; }
.btp-wordmark__bottom { font-family: var(--serif); font-weight: 500; font-size: 10.5px; letter-spacing: .62em; margin-top: 5px; padding-left: .62em; }
.btp-wordmark--gold .btp-wordmark__top, .btp-wordmark--gold .btp-wordmark__bottom {
	background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btp-wordmark--ink { color: var(--ink); }
.btp-wordmark--sm .btp-wordmark__top { font-size: 22px; }
.btp-wordmark--sm .btp-wordmark__bottom { font-size: 7px; margin-top: 3px; }
.btp-logo-img { max-height: 56px; width: auto; }

/* ---------- Buttons ---------- */
.btp .btp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .01em; line-height: 1;
	cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
	background: var(--noir); color: #f3e3b6; box-shadow: none; text-transform: none; width: auto;
}
.btp .btp-btn:hover { background: #000; color: var(--gold-hi); transform: translateY(-1px); }
.btp .btp-btn:active { transform: translateY(0); }
.btp .btp-btn.btp-btn--gold { background: var(--gold-grad); color: #1a140a; border-color: rgba(0,0,0,.05); box-shadow: 0 6px 18px -8px rgba(160, 120, 50, .7); }
.btp .btp-btn.btp-btn--gold:hover { background: var(--gold-grad); color: #000; filter: brightness(1.04); }
.btp .btp-btn.btp-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btp .btp-btn.btp-btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btp .btp-btn.btp-btn--light { background: rgba(255,255,255,.08); color: #f4ead2; border-color: rgba(255,255,255,.18); }
.btp .btp-btn.btp-btn--light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btp .btp-btn.btp-btn--danger { background: var(--danger-bg); color: var(--danger); border-color: #f1cfc8; }
.btp .btp-btn.btp-btn--danger:hover { background: var(--danger); color: #fff; }
.btp .btp-btn.btp-btn--ok { background: var(--ok); color: #fff; }
.btp .btp-btn.btp-btn--ok:hover { background: #22603f; color: #fff; }
.btp .btp-btn.btp-btn--sm { min-height: 38px; padding: 0 15px; font-size: 14px; gap: 7px; }
.btp .btp-btn.btp-btn--xs { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btp .btp-btn.btp-btn--block { width: 100%; }
.btp .btp-btn.btp-btn--icon { width: 38px; min-height: 38px; padding: 0; }
.btp .btp-btn[disabled], .btp .btp-btn.is-disabled, .btp .btp-btn[disabled]:hover { opacity: .45; cursor: not-allowed; transform: none; pointer-events: none; }
.btp .btp-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btp .btp-btn.is-busy::after {
	content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid currentColor; border-color: #e3c785 #e3c785 transparent transparent; animation: btp-spin .7s linear infinite;
}
.btp .btp-btn.btp-btn--gold.is-busy::after, .btp .btp-btn.btp-btn--ghost.is-busy::after { border-color: #1a140a #1a140a transparent transparent; }
.btp .btp-link { color: var(--gold-lo); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(138,106,44,.35); text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.btp .btp-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
@keyframes btp-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.btp .btp-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; position: relative; }
.btp .btp-field > label, .btp .btp-label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
.btp .btp-field .btp-hint { font-size: 12.5px; color: var(--soft); margin: 0; }
.btp .btp-input,
.btp input.btp-input,
.btp select.btp-input,
.btp textarea.btp-input {
	width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-sm);
	border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
	font-family: var(--sans); font-size: 16px; line-height: 1.4; box-shadow: none; outline: none; margin: 0;
	transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.btp textarea.btp-input { min-height: 110px; resize: vertical; }
.btp select.btp-input {
	padding-right: 42px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2371695c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.btp .btp-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 145, 74, .16); }
.btp .btp-input::placeholder { color: #b3aa98; }
.btp .btp-field.has-error .btp-input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(173, 55, 39, .1); }
.btp .btp-field-error { font-size: 13px; color: var(--danger); display: none; }
.btp .btp-field.has-error .btp-field-error { display: block; }
.btp .btp-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .btp .btp-row--2 { grid-template-columns: 1fr 1fr; } .btp .btp-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.btp .btp-pass { position: relative; }
.btp .btp-pass .btp-input { padding-right: 52px; }
.btp .btp-pass__toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
	display: grid; place-items: center; border: 0; background: transparent; color: var(--soft); cursor: pointer; border-radius: 10px; padding: 0; min-height: 0;
}
.btp .btp-pass__toggle:hover { color: var(--ink); background: var(--cream); }
.btp button { text-shadow: none; }
.btp .btp-pass__toggle, .btp .btp-editor__bar button, .btp .btp-opt { box-shadow: none; }
.btp .btp-strength { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--soft); min-height: 16px; }
.btp .btp-strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s; }
.btp .btp-strength[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.btp .btp-strength[data-score="2"] i:nth-child(-n+2) { background: #d39a3a; }
.btp .btp-strength[data-score="3"] i:nth-child(-n+3) { background: var(--ok); }
.btp .btp-strength span { min-width: 46px; text-align: right; }
.btp .btp-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.btp .btp-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.btp .btp-check__box {
	flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--paper);
	display: grid; place-items: center; transition: all .15s; margin-top: 1px; color: transparent;
}
.btp .btp-check input:checked + .btp-check__box { background: var(--noir); border-color: var(--noir); color: var(--gold-hi); }
.btp .btp-check input:focus-visible + .btp-check__box { box-shadow: 0 0 0 4px rgba(184, 145, 74, .25); }
.btp .btp-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.btp .btp-switch:last-child { border-bottom: 0; }
.btp .btp-switch__text strong { display: block; font-weight: 500; font-size: 15px; }
.btp .btp-switch__text span { display: block; font-size: 13px; color: var(--muted); }
.btp .btp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.btp .btp-switch__track { flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.btp .btp-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.btp .btp-switch input:checked + .btp-switch__track { background: var(--noir); }
.btp .btp-switch input:checked + .btp-switch__track::after { transform: translateX(18px); background: var(--gold-hi); }
.btp .btp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.btp .btp-alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-sm); font-size: 14.5px; margin: 0 0 18px; line-height: 1.45; }
.btp .btp-alert[hidden] { display: none; }
.btp .btp-alert--error { background: var(--danger-bg); color: #7d2416; }
.btp .btp-alert--ok { background: var(--ok-bg); color: #1d5a3c; }
.btp .btp-alert--warn { background: var(--warn-bg); color: #774607; }
.btp .btp-alert--info { background: var(--cream-2); color: var(--ink-2); }
.btp .btp-alert .btp-i { margin-top: 1px; }

/* ---------- Pills, badges, bars ---------- */
.btp .btp-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--cream-2); color: var(--ink-2); }
.btp .btp-pill--ok { background: var(--ok-bg); color: var(--ok); }
.btp .btp-pill--warn { background: var(--warn-bg); color: var(--warn); }
.btp .btp-pill--danger { background: var(--danger-bg); color: var(--danger); }
.btp .btp-pill--muted { background: #efede9; color: #8a8478; }
.btp .btp-pill--gold { background: #f5ead0; color: #7a5b1d; }
.btp .btp-pill--dark { background: var(--noir); color: var(--gold-hi); }
.btp .btp-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1; }
.btp .btp-bar { display: block; height: 6px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.btp .btp-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); transition: width .6s ease; }
.btp .btp-bar--ok > i { background: var(--ok); }
.btp .btp-bar--lg { height: 10px; }

.btp .btp-ring {
	--p: 0; --size: 120px; --track: rgba(255,255,255,.12); --fill: #d7b56c;
	width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
	background: conic-gradient(var(--fill) calc(var(--p) * 1%), var(--track) 0);
}
.btp .btp-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ring-bg, var(--noir)); }
.btp .btp-ring__val { position: relative; text-align: center; line-height: 1; }
.btp .btp-ring__val strong { display: block; font-family: var(--serif); font-size: calc(var(--size) * .3); font-weight: 600; color: #f5e7c4; }
.btp .btp-ring__val span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 231, 196, .6); margin-top: 4px; }
.btp .btp-ring--light { --track: var(--cream-2); --ring-bg: var(--paper); --fill: var(--gold); }
.btp .btp-ring--light .btp-ring__val strong { color: var(--ink); }
.btp .btp-ring--light .btp-ring__val span { color: var(--soft); }
.btp .btp-ring--ok { --fill: var(--ok); }
.btp .btp-ring--fail { --fill: var(--danger); }

/* ---------- Cards & layout ---------- */
.btp .btp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 720px) { .btp .btp-card { padding: 26px; } }
.btp .btp-card--flat { box-shadow: none; }
.btp .btp-card--noir { background: var(--noir); border-color: var(--noir-3); color: #ece3cf; }
.btp .btp-card--noir h2, .btp .btp-card--noir h3 { color: #f5e7c4; }
.btp .btp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.btp .btp-card__head h2, .btp .btp-card__head h3 { margin: 0; }
.btp .btp-stack > * + * { margin-top: 16px; }
.btp .btp-stack-lg > * + * { margin-top: 24px; }
.btp .btp-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btp .btp-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btp .btp-empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.btp .btp-empty .btp-i { color: var(--gold); margin: 0 auto 10px; display: block; }
.btp .btp-divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.btp-auth { padding: 24px var(--gutter) 48px; }
@media (min-width: 900px) { .btp-auth { padding: 48px 24px 72px; } }
.btp .btp-auth-card {
	max-width: 1040px; margin: 0 auto; background: var(--paper); border-radius: 24px; overflow: hidden;
	box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .btp .btp-auth-card { grid-template-columns: 1fr 1.08fr; min-height: 620px; } }
.btp .btp-auth-brand {
	position: relative; background: var(--noir); color: #e9dfc8; padding: 28px 24px; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center;
}
.btp .btp-auth-brand::before {
	content: ""; position: absolute; inset: -40% -30% auto auto; width: 520px; height: 520px; border-radius: 50%; z-index: -1;
	background: radial-gradient(closest-side, rgba(214, 178, 103, .22), rgba(214, 178, 103, 0));
}
.btp .btp-auth-brand::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227,199,133,.5), transparent);
}
.btp .btp-auth-brand__lede { display: none; }
@media (min-width: 900px) {
	.btp .btp-auth-brand { padding: 48px 44px; align-items: flex-start; text-align: left; justify-content: space-between; gap: 32px; }
	.btp .btp-auth-brand::after { left: auto; top: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, rgba(227,199,133,.45), transparent); }
	.btp .btp-auth-brand__lede { display: block; }
	.btp .btp-auth-brand .btp-wordmark { align-items: flex-start; }
}
.btp .btp-auth-brand h2 { color: #f6e9c8; font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.08; margin: 0 0 14px; }
.btp .btp-auth-brand p { color: rgba(236, 225, 200, .72); font-size: 15px; margin: 0; }
.btp .btp-auth-points { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.btp .btp-auth-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: rgba(236, 225, 200, .86); }
.btp .btp-auth-points .btp-auth-points__n {
	flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(227,199,133,.45); color: var(--gold-hi);
	display: grid; place-items: center; font-family: var(--serif); font-size: 16px; font-weight: 600;
}
.btp .btp-auth-points strong { display: block; color: #f6e9c8; font-weight: 500; }
.btp .btp-auth-brand__foot { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(227, 199, 133, .55); display: none; }
@media (min-width: 900px) { .btp .btp-auth-brand__foot { display: block; } }
.btp .btp-auth-form { padding: 28px 22px 32px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .btp .btp-auth-form { padding: 56px 60px; } }
.btp .btp-auth-form__inner { width: 100%; max-width: 420px; margin: 0 auto; }
.btp .btp-auth-form h1 { font-size: clamp(30px, 5vw, 38px); margin: 6px 0 8px; }
.btp .btp-auth-form .btp-auth-sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.btp .btp-auth-alt { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--muted); }
.btp .btp-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; flex-wrap: wrap; }
.btp .btp-success { text-align: center; padding: 10px 0; }
.btp .btp-success__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--noir); color: var(--gold-hi); }
.btp .btp-success h2 { margin-bottom: 10px; }
.btp .btp-success p { color: var(--muted); }
.btp .btp-gate { max-width: 460px; margin: 0 auto; text-align: center; }

/* ==========================================================================
   APP SHELL
   ========================================================================== */
.btp-app { padding: 0 0 96px; }
@media (min-width: 900px) { .btp-app { padding-bottom: 64px; } }
.btp .btp-topnav {
	background: var(--noir); color: #e8dfc9; border-bottom: 1px solid var(--noir-3);
}
.btp .btp-topnav__inner { max-width: 1200px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.btp .btp-topnav__brand { display: flex; align-items: center; gap: 14px; }
.btp .btp-topnav__brand small { display: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(227,199,133,.6); border-left: 1px solid rgba(227,199,133,.25); padding-left: 14px; }
@media (min-width: 600px) { .btp .btp-topnav__brand small { display: block; } }
.btp .btp-topnav__links { display: none; gap: 4px; }
@media (min-width: 900px) { .btp .btp-topnav__links { display: flex; } }
.btp .btp-topnav__links a {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; color: rgba(236,227,207,.72); transition: all .15s;
}
.btp .btp-topnav__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.btp .btp-topnav__links a.is-active { color: #1a140a; background: var(--gold-grad); }
.btp .btp-usermenu { position: relative; }
.btp .btp-usermenu__btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14);
	background: rgba(255,255,255,.04); color: #eadfc7; cursor: pointer; min-height: 0; font: inherit; font-size: 14px;
}
.btp .btp-usermenu__btn:hover { background: rgba(255,255,255,.09); color: #fff; }
.btp .btp-avatar {
	width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
	background: var(--gold-grad); color: #1a140a; font-weight: 600; font-size: 13px; letter-spacing: .03em;
}
.btp .btp-avatar--lg { width: 64px; height: 64px; font-size: 22px; font-family: var(--serif); }
.btp .btp-avatar--dark { background: var(--noir); color: var(--gold-hi); }
.btp .btp-usermenu__name { display: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 600px) { .btp .btp-usermenu__name { display: inline; } }
.btp .btp-usermenu__panel {
	position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--paper); color: var(--ink); border-radius: 16px;
	box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; z-index: 50; display: none;
}
.btp .btp-usermenu.is-open .btp-usermenu__panel { display: block; animation: btp-pop .16s ease; }
.btp .btp-usermenu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.btp .btp-usermenu__head strong { display: block; font-weight: 500; }
.btp .btp-usermenu__head span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.btp .btp-usermenu__panel a, .btp .btp-usermenu__panel button {
	display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2);
	background: none; border: 0; cursor: pointer; text-align: left; min-height: 0; font-family: var(--sans);
}
.btp .btp-usermenu__panel a:hover, .btp .btp-usermenu__panel button:hover { background: var(--cream); color: var(--ink); }
@keyframes btp-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.btp-inline .btp-usermenu__btn { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btp-inline .btp-usermenu__btn:hover { color: var(--ink); background: var(--cream); }

.btp .btp-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(13, 11, 8, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-top: 1px solid rgba(227,199,133,.16); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { .btp .btp-tabbar { display: none; } }
.btp .btp-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 12px; font-size: 11px; letter-spacing: .02em; color: rgba(236,227,207,.6); }
.btp .btp-tabbar a.is-active { color: var(--gold-hi); }
.btp .btp-tabbar a.is-active .btp-i { filter: drop-shadow(0 0 8px rgba(227,199,133,.35)); }

.btp .btp-page { max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter) 0; }
@media (min-width: 900px) { .btp .btp-page { padding: 34px 24px 0; } }
.btp .btp-pagehead { margin: 4px 0 22px; }
.btp .btp-pagehead h1 { margin: 6px 0 6px; }
.btp .btp-pagehead p { color: var(--muted); margin: 0; max-width: 640px; }
.btp .btp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--soft); margin-bottom: 10px; }
.btp .btp-crumbs a { color: var(--muted); }
.btp .btp-crumbs a:hover { color: var(--ink); }
.btp .btp-crumbs .btp-i { opacity: .5; }

/* ---------- Dashboard hero ---------- */
.btp .btp-hero {
	position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; background: var(--noir); color: #e9dfc8;
	padding: 26px 22px; display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; box-shadow: var(--shadow-lg);
}
.btp .btp-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214,178,103,.25), transparent); }
.btp .btp-hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227,199,133,.55), transparent); }
@media (min-width: 720px) { .btp .btp-hero { grid-template-columns: 1fr auto; padding: 36px 40px; } }
.btp .btp-hero h1 { color: #f6e9c8; font-weight: 500; margin: 8px 0 10px; }
.btp .btp-hero .btp-eyebrow { color: var(--gold-hi); opacity: .8; }
.btp .btp-hero p { color: rgba(236, 225, 200, .74); margin: 0 0 20px; max-width: 520px; }
.btp .btp-hero__ring { justify-self: center; }
@media (max-width: 719px) {
	.btp .btp-hero__ring { position: absolute; top: 22px; right: 20px; --size: 86px !important; }
	.btp .btp-hero__ring .btp-ring__val span { display: none; }
	.btp .btp-hero .btp-eyebrow, .btp .btp-hero h1 { padding-right: 100px; }
	.btp .btp-hero p { padding-right: 0; }
}
@media (min-width: 720px) { .btp .btp-hero__ring { justify-self: end; --size: 150px; } }
.btp .btp-hero__next { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btp .btp-hero__nexttitle { display: block; font-size: 13px; color: rgba(236,225,200,.6); margin-bottom: 8px; }
.btp .btp-hero__stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.btp .btp-hero__stats div { font-size: 13px; color: rgba(236,225,200,.6); }
.btp .btp-hero__stats strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: #f5e7c4; line-height: 1.1; }

.btp .btp-dash { display: grid; gap: 22px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .btp .btp-dash { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

/* ---------- Path (module list) ---------- */
.btp .btp-path { list-style: none; display: grid; gap: 10px; }
.btp .btp-step {
	display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px;
	border: 1px solid var(--line); background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s; position: relative;
}
@media (min-width: 600px) { .btp .btp-step { grid-template-columns: auto 1fr auto; padding: 16px 18px; } }
.btp a.btp-step:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.btp .btp-step__num {
	width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
	font-family: var(--serif); font-size: 22px; font-weight: 600; background: var(--cream); color: var(--ink); border: 1px solid var(--line);
}
.btp .btp-step.is-done .btp-step__num { background: var(--noir); border-color: var(--noir); color: var(--gold-hi); }
.btp .btp-step.is-current { border-color: rgba(184,145,74,.6); box-shadow: 0 0 0 4px rgba(184,145,74,.1); }
.btp .btp-step.is-current .btp-step__num { background: var(--gold-grad); border-color: transparent; color: #1a140a; }
.btp .btp-step.is-locked { background: #fbf9f5; }
.btp .btp-step.is-locked .btp-step__num { color: var(--soft); }
.btp .btp-step.is-locked .btp-step__title { color: var(--soft); }
.btp .btp-step__title { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.btp .btp-step__meta { display: block; font-size: 13px; color: var(--muted); margin: 3px 0 8px; }
.btp .btp-step__meta:last-child { margin-bottom: 0; }
.btp .btp-step__status { grid-column: 2; justify-self: start; }
@media (min-width: 600px) { .btp .btp-step__status { grid-column: auto; justify-self: end; } }
.btp .btp-step .btp-bar { max-width: 320px; }

/* ---------- Side cards ---------- */
.btp .btp-side { display: grid; gap: 16px; }
.btp .btp-mini { display: flex; gap: 14px; align-items: flex-start; }
.btp .btp-mini__icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--cream); color: var(--gold-lo); }
.btp .btp-card--noir .btp-mini__icon { background: rgba(255,255,255,.06); color: var(--gold-hi); }
.btp .btp-mini h3 { font-size: 20px; margin: 0 0 4px; }
.btp .btp-mini p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.btp .btp-card--noir .btp-mini p { color: rgba(236,225,200,.65); }
.btp .btp-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 0; }
.btp .btp-flow > span {
	display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; font-weight: 600; font-size: 14px;
	background: var(--cream); border: 1px solid var(--line); color: var(--ink); position: relative;
}
.btp .btp-flow > span + span::before { content: "›"; position: absolute; left: -8px; color: var(--soft); font-weight: 400; }
.btp .btp-flow > span + span { margin-left: 6px; }
.btp .btp-card--noir .btp-flow > span { background: rgba(255,255,255,.05); border-color: rgba(227,199,133,.25); color: var(--gold-hi); }

/* ---------- Module page ---------- */
.btp .btp-modhead { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: end; margin-bottom: 22px; }
@media (min-width: 760px) { .btp .btp-modhead { grid-template-columns: 1fr 260px; } }
.btp .btp-modhead__progress { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.btp .btp-modhead__progress .btp-between { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.btp .btp-items { list-style: none; display: grid; gap: 8px; }
.btp .btp-item {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); transition: all .15s;
}
.btp a.btp-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.btp .btp-item__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--gold-lo); }
.btp .btp-item.is-done .btp-item__icon { background: var(--ok-bg); color: var(--ok); }
.btp .btp-item.is-locked { opacity: .6; }
.btp .btp-item__body { flex: 1; min-width: 0; }
.btp .btp-item__title { display: block; font-weight: 500; line-height: 1.3; }
.btp .btp-item__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.btp .btp-item--quiz { border-style: dashed; border-color: var(--line-2); background: #fdfbf7; }

/* ---------- Lesson ---------- */
.btp .btp-lesson-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1020px) { .btp .btp-lesson-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.btp .btp-lesson { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.btp .btp-lesson__head { padding: 22px 20px 6px; }
@media (min-width: 720px) { .btp .btp-lesson__head { padding: 32px 40px 8px; } }
.btp .btp-lesson__head h1 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0 10px; }
.btp .btp-lesson__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.btp .btp-lesson__meta span { display: inline-flex; align-items: center; gap: 6px; }
.btp .btp-lesson__body { padding: 8px 20px 26px; }
@media (min-width: 720px) { .btp .btp-lesson__body { padding: 10px 40px 36px; } }
.btp .btp-lesson__foot {
	position: sticky; bottom: 76px; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
	padding: 14px 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .btp .btp-lesson__foot { bottom: 0; padding: 16px 40px; } }
.btp .btp-lesson__foot .btp-btn--gold { flex: 1 1 auto; }
@media (min-width: 600px) { .btp .btp-lesson__foot .btp-btn--gold { flex: 0 0 auto; } }
.btp .btp-lesson__done { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 500; font-size: 14.5px; }

.btp .btp-video { margin: 14px 0 6px; background: #000; border-radius: 16px; overflow: hidden; position: relative; }
.btp .btp-video video { display: block; width: 100%; max-height: 78vh; background: #000; margin: 0 auto; }
.btp .btp-video--embed { aspect-ratio: 16 / 9; }
.btp .btp-video--embed iframe, .btp .btp-video--embed > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.btp .btp-watch { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.btp .btp-watch .btp-bar { flex: 1; }
.btp .btp-video-missing { aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; color: rgba(236,225,200,.7); background: var(--noir); padding: 20px; font-size: 14px; }

.btp .btp-outline { position: sticky; top: 20px; }
.btp .btp-outline h3 { font-size: 20px; margin: 4px 0 14px; }
.btp .btp-outline ol { list-style: none; display: grid; gap: 2px; }
.btp .btp-outline a, .btp .btp-outline .btp-outline__locked { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.btp .btp-outline a:hover { background: var(--cream); }
.btp .btp-outline .is-current { background: var(--cream-2); color: var(--ink); font-weight: 500; }
.btp .btp-outline .btp-outline__locked { color: var(--soft); }
.btp .btp-outline .btp-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; color: transparent; }
.btp .btp-outline .is-done .btp-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.btp .btp-outline .is-current .btp-dot { border-color: var(--gold); box-shadow: inset 0 0 0 4px #fff; background: var(--gold); }
@media (max-width: 1019px) { .btp .btp-outline { position: static; } }

/* ---------- Prose (lesson content) ---------- */
.btp .btp-prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.btp .btp-prose > * { margin-top: 0; margin-bottom: 0; }
.btp .btp-prose > * + * { margin-top: 1em; }
.btp .btp-prose h2 { font-size: 28px; margin-top: 1.6em; color: var(--ink); }
.btp .btp-prose h3 { font-size: 22px; margin-top: 1.4em; color: var(--ink); }
.btp .btp-prose h2:first-child, .btp .btp-prose h3:first-child { margin-top: 0; }
.btp .btp-prose ul, .btp .btp-prose ol { padding-left: 1.3em; }
.btp .btp-prose li { margin: .35em 0; }
.btp .btp-prose ul li::marker { color: var(--gold); }
.btp .btp-prose ol li::marker { color: var(--gold-lo); font-weight: 600; }
.btp .btp-prose strong { color: var(--ink); font-weight: 600; }
.btp .btp-prose a { color: var(--gold-lo); text-decoration: underline; text-underline-offset: 3px; }
.btp .btp-prose img { border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; }
.btp .btp-prose figure { margin: 1.4em 0; }
.btp .btp-prose figcaption { font-size: 13.5px; color: var(--soft); margin-top: 8px; text-align: center; }
.btp .btp-prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.btp .btp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.btp .btp-prose th, .btp .btp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.btp .btp-prose th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.btp .btp-prose .btp-say, .btp .btp-prose blockquote {
	position: relative; margin: 1.1em 0; padding: 30px 18px 14px 18px; border-radius: 14px; background: #fbf6ea; border: 1px solid #efe1bf;
	font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink); font-style: italic; quotes: none;
}
.btp .btp-prose .btp-say::before, .btp .btp-prose blockquote::before {
	content: "Say"; position: absolute; top: 10px; left: 18px; font-family: var(--sans); font-style: normal; font-size: 10.5px; font-weight: 700;
	letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lo);
}
.btp .btp-prose .btp-say p, .btp .btp-prose blockquote p { margin: 0; }
.btp .btp-prose .btp-say p + p, .btp .btp-prose blockquote p + p { margin-top: .4em; }
.btp .btp-prose .btp-do {
	position: relative; margin: 1.1em 0; padding: 30px 18px 14px; border-radius: 14px; background: var(--noir); color: #ece2ca; font-size: 15.5px;
}
.btp .btp-prose .btp-do::before { content: "Do"; position: absolute; top: 10px; left: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); }
.btp .btp-prose .btp-do strong { color: #fff; }
.btp .btp-prose .btp-tip {
	position: relative; margin: 1.1em 0; padding: 30px 18px 14px; border-radius: 14px; background: var(--cream); border: 1px dashed var(--line-2); font-size: 15.5px;
}
.btp .btp-prose .btp-tip::before { content: "Tip"; position: absolute; top: 10px; left: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.btp .btp-prose .btp-key {
	position: relative; margin: 1.2em 0; padding: 18px 20px; border-radius: 14px; background: var(--paper);
	border: 1px solid transparent; background-image: linear-gradient(#fff, #fff), var(--gold-grad); background-origin: border-box; background-clip: padding-box, border-box;
	font-size: 16.5px; color: var(--ink);
}
.btp .btp-prose .btp-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .btp .btp-prose .btp-facts { grid-template-columns: repeat(4, 1fr); } }
.btp .btp-prose .btp-facts li { margin: 0; background: var(--noir); color: rgba(236,225,200,.75); border-radius: 14px; padding: 14px; font-size: 13.5px; line-height: 1.35; }
.btp .btp-prose .btp-facts li strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--gold-hi); font-weight: 600; margin-bottom: 4px; }
.btp .btp-prose .btp-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.btp .btp-prose .btp-steps > li { counter-increment: s; position: relative; margin: 0; padding: 14px 16px 14px 60px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.btp .btp-prose .btp-steps > li::before {
	content: counter(s); position: absolute; left: 14px; top: 13px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
	background: var(--noir); color: var(--gold-hi); font-family: var(--serif); font-weight: 600; font-size: 17px;
}
.btp .btp-prose .btp-flow > span { font-size: 15px; }

/* ---------- Quiz ---------- */
.btp .btp-quiz { max-width: 760px; margin: 0 auto; }
.btp .btp-quiz-intro { text-align: center; }
.btp .btp-quiz-intro__icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--noir); color: var(--gold-hi); }
.btp .btp-quiz-intro h1 { margin: 6px 0 10px; }
.btp .btp-quiz-intro p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }
.btp .btp-quiz-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 24px; }
.btp .btp-quiz-facts div { background: var(--cream); border-radius: 14px; padding: 14px 8px; font-size: 12.5px; color: var(--muted); }
.btp .btp-quiz-facts strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1.1; font-weight: 600; }
.btp .btp-q { animation: btp-fade .25s ease; }
@keyframes btp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btp .btp-q__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.btp .btp-q__progress { margin-bottom: 22px; }
.btp .btp-q__prompt { font-family: var(--serif); font-size: clamp(24px, 4.4vw, 30px); line-height: 1.25; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.btp .btp-q__hint { font-size: 13.5px; color: var(--soft); margin: 0 0 18px; }
.btp .btp-opts { display: grid; gap: 10px; margin: 0 0 22px; }
.btp .btp-opt {
	display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line);
	background: var(--paper); cursor: pointer; text-align: left; font: inherit; font-size: 16px; color: var(--ink); line-height: 1.4; min-height: 0;
	transition: border-color .12s, background .12s, box-shadow .12s;
}
.btp .btp-opt:hover { border-color: var(--line-2); background: #fdfbf7; color: var(--ink); }
.btp .btp-opt__key {
	flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 600;
	background: var(--cream); color: var(--muted); border: 1px solid var(--line); text-transform: uppercase;
}
.btp .btp-opt--multi .btp-opt__key { border-radius: 7px; }
.btp .btp-opt.is-selected { border-color: var(--noir); background: #fbf8f1; box-shadow: 0 0 0 3px rgba(184,145,74,.15); }
.btp .btp-opt.is-selected .btp-opt__key { background: var(--noir); color: var(--gold-hi); border-color: var(--noir); }
.btp .btp-q__nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.btp .btp-q__nav .btp-btn--gold { min-width: 150px; }
.btp .btp-result { text-align: center; }
.btp .btp-result .btp-ring { margin: 6px auto 18px; --size: 150px; }
.btp .btp-result h2 { margin-bottom: 8px; }
.btp .btp-result p { color: var(--muted); max-width: 480px; margin: 0 auto 20px; }
.btp .btp-review { list-style: none; display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.btp .btp-review li { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--paper); }
.btp .btp-review li.is-right { border-left: 4px solid var(--ok); }
.btp .btp-review li.is-wrong { border-left: 4px solid var(--danger); }
.btp .btp-review__q { font-weight: 500; margin-bottom: 8px; display: flex; gap: 10px; justify-content: space-between; }
.btp .btp-review__a { font-size: 14px; color: var(--muted); }
.btp .btp-review__a strong { color: var(--ink-2); font-weight: 500; }
.btp .btp-review__exp { font-size: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink-2); }

/* ---------- Certificate ---------- */
.btp .btp-cert-wrap { max-width: 980px; margin: 0 auto; }
.btp .btp-cert {
	position: relative; background: #fffdf8; border-radius: 6px; padding: 10px; box-shadow: var(--shadow-lg);
	aspect-ratio: 1.414 / 1; container-type: inline-size;
}
.btp .btp-cert__frame {
	position: absolute; inset: 10px; border: 1.5px solid #c9a45c; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 4cqw 6cqw;
}
.btp .btp-cert__frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,92,.45); pointer-events: none; }
.btp .btp-cert .btp-wordmark__top { font-size: 5cqw; }
.btp .btp-cert .btp-wordmark__bottom { font-size: 1.4cqw; margin-top: .8cqw; }
.btp .btp-cert__title { font-family: var(--sans); font-size: 1.5cqw; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-lo); margin-top: 3.4cqw; }
.btp .btp-cert__presented { font-size: 1.6cqw; color: var(--muted); margin-top: 2.6cqw; }
.btp .btp-cert__name { font-family: var(--serif); font-size: 6cqw; line-height: 1.05; color: var(--ink); font-weight: 500; margin-top: 1cqw; font-style: italic; }
.btp .btp-cert__line { width: 30cqw; height: 1px; background: linear-gradient(90deg, transparent, #c9a45c, transparent); margin: 2cqw auto; }
.btp .btp-cert__text { font-size: 1.7cqw; color: var(--ink-2); max-width: 62cqw; line-height: 1.5; }
.btp .btp-cert__foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3cqw; width: 100%; margin-top: 4cqw; align-items: end; }
.btp .btp-cert__sig { text-align: center; font-size: 1.4cqw; color: var(--muted); }
.btp .btp-cert__sig strong { display: block; font-family: var(--serif); font-size: 2.4cqw; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: .6cqw; margin-bottom: .6cqw; }
.btp .btp-cert__seal {
	width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: #1a140a;
	font-family: var(--serif); font-size: 1.5cqw; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; box-shadow: inset 0 0 0 .5cqw rgba(255,255,255,.35);
}
.btp .btp-cert__code { position: absolute; bottom: 2.2cqw; left: 0; right: 0; text-align: center; font-size: 1.2cqw; letter-spacing: .12em; color: var(--soft); }
.btp .btp-cert-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Toast & lightbox ---------- */
.btp-toasts { position: fixed; z-index: 100000; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .btp-toasts { bottom: 28px; } }
.btp-toast {
	pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 14px; background: #0d0b08; color: #f1e6cb;
	font: 500 14.5px/1.4 "Outfit", system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); animation: btp-toast .25s ease;
}
.btp-toast--error { background: #7d2416; color: #fff; }
.btp-toast--ok::before { content: "✓"; color: #e3c785; font-weight: 700; }
@keyframes btp-toast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.btp-lightbox { position: fixed; inset: 0; z-index: 100001; background: rgba(13, 11, 8, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; animation: btp-fade .2s ease; }
.btp-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }

/* ==========================================================================
   MANAGER CONSOLE
   ========================================================================== */
.btp-manage { padding-bottom: 60px; }
.btp .btp-console__top { background: var(--noir); color: #e8dfc9; }
.btp .btp-console__topin { max-width: 1280px; margin: 0 auto; padding: 18px var(--gutter) 0; }
@media (min-width: 900px) { .btp .btp-console__topin { padding: 26px 24px 0; } }
.btp .btp-console__title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.btp .btp-console__title h1 { color: #f6e9c8; font-weight: 500; font-size: clamp(28px, 4.6vw, 38px); margin: 4px 0 0; }
.btp .btp-console__title .btp-eyebrow { color: var(--gold-hi); opacity: .75; }
.btp .btp-console__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btp .btp-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.btp .btp-tabs::-webkit-scrollbar { display: none; }
.btp .btp-tabs a {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 14px; font-size: 14.5px; color: rgba(236,227,207,.62); white-space: nowrap;
	border-bottom: 2px solid transparent; transition: color .15s;
}
.btp .btp-tabs a:hover { color: #fff; }
.btp .btp-tabs a.is-active { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }
.btp .btp-console__body { max-width: 1280px; margin: 0 auto; padding: 22px var(--gutter) 0; }
@media (min-width: 900px) { .btp .btp-console__body { padding: 30px 24px 0; } }

.btp .btp-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .btp .btp-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .btp .btp-kpis { grid-template-columns: repeat(6, 1fr); } }
.btp .btp-kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.btp a.btp-kpi:hover { border-color: var(--line-2); }
.btp .btp-kpi__label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.btp .btp-kpi__label .btp-i { color: var(--gold); }
.btp .btp-kpi__val { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.05; margin-top: 8px; color: var(--ink); }
.btp .btp-kpi__sub { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.btp .btp-kpi--alert { background: #fffaf0; border-color: #f0dcae; }
.btp .btp-kpi--dark { background: var(--noir); border-color: var(--noir); }
.btp .btp-kpi--dark .btp-kpi__val { color: var(--gold-hi); }
.btp .btp-kpi--dark .btp-kpi__label, .btp .btp-kpi--dark .btp-kpi__sub { color: rgba(236,225,200,.6); }

.btp .btp-cols { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 18px; align-items: start; }
@media (min-width: 1000px) { .btp .btp-cols--2 { grid-template-columns: 1fr 1fr; } .btp .btp-cols--21 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

.btp .btp-list { list-style: none; }
.btp .btp-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.btp .btp-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.btp .btp-list > li:first-child { padding-top: 0; }
.btp .btp-list__main { flex: 1; min-width: 0; }
.btp .btp-list__main strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btp .btp-list__main span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btp .btp-list__actions { display: flex; gap: 6px; flex: none; }

.btp .btp-hbars { display: grid; gap: 14px; }
.btp .btp-hbar__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.btp .btp-hbar__top span { color: var(--muted); font-size: 13px; white-space: nowrap; }

.btp .btp-feed { list-style: none; display: grid; gap: 0; }
.btp .btp-feed li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.btp .btp-feed li:last-child { border-bottom: 0; }
.btp .btp-feed__icon { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--muted); }
.btp .btp-feed__icon--ok { background: var(--ok-bg); color: var(--ok); }
.btp .btp-feed__icon--warn { background: var(--warn-bg); color: var(--warn); }
.btp .btp-feed__icon--danger { background: var(--danger-bg); color: var(--danger); }
.btp .btp-feed__icon--gold { background: #f5ead0; color: #7a5b1d; }
.btp .btp-feed time { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; }

/* Filters + table */
.btp .btp-filters { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 760px) { .btp .btp-filters { grid-template-columns: minmax(0, 1fr) 220px auto; align-items: center; } }
.btp .btp-search { position: relative; }
.btp .btp-search .btp-i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--soft); pointer-events: none; }
.btp .btp-search .btp-input { padding-left: 44px; }
.btp .btp-seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.btp .btp-seg::-webkit-scrollbar { display: none; }
.btp .btp-seg a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.btp .btp-seg a:hover { border-color: var(--line-2); }
.btp .btp-seg a.is-active { background: var(--noir); border-color: var(--noir); color: var(--gold-hi); }
.btp .btp-seg a span { font-size: 12px; opacity: .7; }

.btp .btp-bulk { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--noir); color: #ece2ca; margin-bottom: 12px; font-size: 14px; }
.btp .btp-bulk.is-visible { display: flex; }
.btp .btp-bulk .btp-input { min-height: 38px; width: auto; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }

.btp .btp-table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.btp .btp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; border: 0; }
.btp .btp-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: #fbf9f4; border-bottom: 1px solid var(--line); white-space: nowrap; border-top: 0; border-left: 0; border-right: 0; }
.btp .btp-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; border-top: 0; border-left: 0; border-right: 0; background: transparent; }
.btp .btp-table tr:last-child td { border-bottom: 0; }
.btp .btp-table tbody tr:hover td { background: #fdfbf7; }
.btp .btp-table .btp-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.btp .btp-table .btp-person strong { display: block; font-weight: 500; }
.btp .btp-table .btp-person > span:last-child > span { display: block; font-size: 13px; color: var(--muted); word-break: break-all; }
.btp .btp-table .btp-cell-progress { min-width: 140px; }
.btp .btp-table .btp-cell-progress small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.btp .btp-table .btp-check { margin: 0; }
@media (max-width: 759px) {
	.btp .btp-table thead { display: none; }
	.btp .btp-table, .btp .btp-table tbody, .btp .btp-table tr, .btp .btp-table td { display: block; width: 100%; }
	.btp .btp-table tr { padding: 14px; border-bottom: 1px solid var(--line); position: relative; }
	.btp .btp-table tr:last-child { border-bottom: 0; }
	.btp .btp-table td { border: 0; padding: 4px 0; }
	.btp .btp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 6px 0 2px; }
	.btp .btp-table td.btp-td-check { position: absolute; right: 14px; top: 14px; width: auto; }
	.btp .btp-table td.btp-td-actions { padding-top: 10px; }
}
.btp .btp-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

/* Person */
.btp .btp-profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btp .btp-profile h2 { font-size: 30px; }
.btp .btp-profile__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.btp .btp-profile__meta span { display: inline-flex; align-items: center; gap: 6px; }
.btp .btp-facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 760px) { .btp .btp-facts-row { grid-template-columns: repeat(4, 1fr); } }
.btp .btp-facts-row div { background: var(--cream); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.btp .btp-facts-row strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.15; font-weight: 600; }
.btp details.btp-details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.btp details.btp-details > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; }
.btp details.btp-details > summary::-webkit-details-marker { display: none; }
.btp details.btp-details > summary .btp-i { transition: transform .2s; color: var(--soft); }
.btp details.btp-details[open] > summary .btp-i { transform: rotate(180deg); }
.btp details.btp-details > .btp-details__body { padding: 4px 16px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.btp .btp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.btp .btp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: 14px; cursor: pointer; }
.btp .btp-chip input { accent-color: #0d0b08; }

/* Content editor */
.btp .btp-crow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.btp .btp-crow + .btp-crow { margin-top: 8px; }
.btp .btp-crow__num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.btp .btp-crow__main { flex: 1; min-width: 0; }
.btp .btp-crow__main strong { display: block; font-weight: 500; line-height: 1.3; }
.btp .btp-crow__main span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.btp .btp-crow__actions { display: flex; gap: 4px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.btp .btp-crow.is-draft { background: #fbf9f5; border-style: dashed; }

.btp .btp-editor { border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); overflow: hidden; }
.btp .btp-editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,145,74,.14); }
.btp .btp-editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: #fbf9f4; position: sticky; top: 0; z-index: 2; }
.btp .btp-editor__bar button {
	min-height: 34px; min-width: 34px; padding: 0 9px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font: 500 13px/1 var(--sans); display: inline-flex; align-items: center; gap: 5px;
}
.btp .btp-editor__bar button:hover { background: var(--cream-2); color: var(--ink); }
.btp .btp-editor__bar .btp-sep { width: 1px; background: var(--line); margin: 4px 4px; }
.btp .btp-editor__area { min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 18px 20px; outline: none; }
.btp .btp-editor__area:empty::before { content: attr(data-placeholder); color: var(--soft); }
.btp .btp-editor__src { display: none; width: 100%; min-height: 320px; border: 0; padding: 16px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; outline: none; resize: vertical; }
.btp .btp-editor.is-source .btp-editor__area { display: none; }
.btp .btp-editor.is-source .btp-editor__src { display: block; }

.btp .btp-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fdfbf7; }
.btp .btp-upload input[type=file] { display: none; }
.btp .btp-upload__name { font-size: 14px; color: var(--ink-2); flex: 1; min-width: 160px; word-break: break-all; }
.btp .btp-upload .btp-bar { width: 100%; display: none; }
.btp .btp-upload.is-uploading .btp-bar { display: block; }

.btp .btp-qopts { display: grid; gap: 8px; margin-bottom: 10px; }
.btp .btp-qopt { display: flex; gap: 8px; align-items: center; }
.btp .btp-qopt label.btp-qopt__correct { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 0 6px; }
.btp .btp-qopt input[type=radio], .btp .btp-qopt input[type=checkbox] { width: 20px; height: 20px; accent-color: #2c7552; }
.btp .btp-qopt .btp-input { min-height: 44px; }
.btp .btp-qcard { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.btp .btp-qcard + .btp-qcard { margin-top: 8px; }
.btp .btp-qcard > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.btp .btp-qcard > summary::-webkit-details-marker { display: none; }
.btp .btp-qcard__n { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--cream); font-size: 13px; font-weight: 600; }
.btp .btp-qcard__text { flex: 1; min-width: 0; }
.btp .btp-qcard__text strong { display: block; font-weight: 500; line-height: 1.35; }
.btp .btp-qcard__text span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.btp .btp-qcard__body { padding: 0 16px 16px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- Print: certificate only ---------- */
@media print {
	@page { size: A4 landscape; margin: 0; }
	body * { visibility: hidden !important; }
	.btp .btp-cert, .btp .btp-cert * { visibility: visible !important; }
	.btp .btp-cert { position: fixed; left: 0; top: 0; width: 297mm; height: 210mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.btp-tabbar, .btp-toasts { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.btp *, .btp *::before, .btp *::after { animation: none !important; transition: none !important; }
}
