/* ==========================================================================
   BTB Plus — members' area
   Matches BTB Polish: Inter, white paper, ink rules, flat bordered cards,
   coral/teal accents. Reads Polish's --btb-* tokens when it's active and
   falls back to the same values when it isn't. Everything is scoped under
   .btbp so Divi's styles don't leak in (or out).
   ========================================================================== */

.btbp {
	--p-coral: var(--btb-coral, #FA6C59);
	--p-coral-hover: var(--btb-coral-hover, #F45A45);
	--p-coral-ink: var(--btb-coral-ink, #B83A28);
	--p-coral-tint: #FEE9E5;
	--p-teal: var(--btb-teal, #0E9E94);
	--p-teal-ink: var(--btb-teal-ink, #0A6E67);
	--p-teal-tint: #E3F4F2;
	--p-paper: #FFFFFF;
	--p-sand: var(--btb-sand, #F2F1EE);
	--p-line: #E6E4E0;
	--p-line-strong: var(--btb-line-strong, #D6D3CD);
	--p-ink: var(--btb-ink, #171514);
	--p-ink-2: var(--btb-ink-2, #22201D);
	--p-ink-line: var(--btb-ink-line, #3A3631);
	--p-body: var(--btb-body, #3D3832);
	--p-muted: var(--btb-muted, #5E5850);
	--p-muted-dark: var(--btb-muted-dark, #9C9488);
	--p-on-dark: var(--btb-on-dark, #CFC8BC);
	--p-change: #8A8378;
	--p-night: var(--btb-night, #171514);
	--p-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

	background: var(--p-paper);
	color: var(--p-ink);
	font-family: var(--p-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Resets (Divi) ---------- */
.btbp, .btbp *, .btbp *::before, .btbp *::after { box-sizing: border-box; }
.btbp h1, .btbp h2, .btbp h3, .btbp h4 { margin: 0; padding: 0; color: inherit; font-family: var(--p-sans); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.btbp p { margin: 0; padding: 0; }
html body .btbp a { color: inherit; text-decoration: none; transition: color .15s ease; }
html body .btbp a:hover { color: var(--p-coral-ink); }
.btbp a:focus-visible, .btbp button:focus-visible, .btbp select:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }
body .btbp.btbp ul, body .btbp.btbp ol { list-style: none; margin: 0; padding: 0; line-height: inherit; }
body .btbp.btbp li { margin: 0; padding: 0; }
.btbp button { font-family: inherit; }
.btbp [hidden] { display: none !important; }
.btbp-ico { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.btbp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btbp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Type helpers */
.btbp-kick { font: 700 11px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-coral-ink); }
.btbp-kick--coral { color: var(--p-coral-ink); }
.btbp-kick--light { color: var(--p-coral); }
.btbp-kick--muted { color: var(--p-muted-dark); }
.btbp-kick--ink { color: var(--p-ink); }
.btbp-meta { font: 500 13px/1.4 var(--p-sans); color: var(--p-muted); }
.btbp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--p-sand); color: var(--p-muted); font: 600 11px/1 var(--p-sans); letter-spacing: 0; vertical-align: 3px; }

/* Buttons */
html body .btbp .btbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--p-coral); color: var(--p-ink); font: 700 15px/1 var(--p-sans); cursor: pointer; white-space: nowrap; }
html body .btbp .btbp-btn:hover { background: var(--p-coral-hover); color: var(--p-ink); }
html body .btbp .btbp-btn--ink { background: var(--p-ink); color: var(--p-paper); }
html body .btbp .btbp-btn--ink:hover { background: #000; color: #fff; }
html body .btbp .btbp-more { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--p-sans); color: var(--p-ink); white-space: nowrap; }
html body .btbp .btbp-more:hover { color: var(--p-coral-ink); }

/* ---------- Members' tab bar ---------- */
.btbp-bar { background: var(--p-sand); border-top: 3px solid var(--p-coral); border-bottom: 1px solid var(--p-line-strong); }
.btbp-bar__in { display: flex; align-items: center; gap: 28px; min-height: 60px; }
html body .btbp .btbp-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font: 700 15px/1 var(--p-sans); color: var(--p-ink); }
html body .btbp .btbp-brand:hover { color: var(--p-ink); }
.btbp-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; background: var(--p-coral); color: var(--p-ink); font: 800 11px/1 var(--p-sans); letter-spacing: .1em; text-transform: uppercase; }
body .btbp.btbp .btbp-tabs { display: flex; align-items: stretch; gap: 26px; flex: 1 1 auto; min-width: 0; align-self: stretch; }
body .btbp.btbp .btbp-tabs li { display: flex; }
html body .btbp .btbp-tab { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--p-sans); color: var(--p-body); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
html body .btbp .btbp-tab:hover { color: var(--p-ink); }
html body .btbp .btbp-tab.is-on { color: var(--p-ink); box-shadow: inset 0 -2px 0 var(--p-coral); }
html body .btbp .btbp-logout { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font: 600 14px/1 var(--p-sans); color: var(--p-muted); }
html body .btbp .btbp-logout:hover { color: var(--p-coral-ink); }

/* ---------- Page heading ---------- */
.btbp-head { padding: 40px 0 0; }
.btbp-head__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-bottom: 24px; border-bottom: 3px solid var(--p-ink); }
.btbp-head__t { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.btbp .btbp-head h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.btbp-head__lede { font-size: 18px; line-height: 1.55; color: var(--p-body); }
.btbp-head__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.btbp-head__date { font: 700 15px/1.3 var(--p-sans); }

.btbp-body { padding-top: 32px; padding-bottom: 72px; }

/* ---------- Section head (heavy ink rule) ---------- */
.btbp-shead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; border-top: 3px solid var(--p-ink); padding-top: 12px; margin-bottom: 8px; }
.btbp-shead__t { display: flex; flex-direction: column; gap: 6px; }
.btbp .btbp-shead h2 { font-size: 26px; }
.btbp-sec + .btbp-sec { margin-top: 48px; }

/* ---------- Filters ---------- */
.btbp-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 14px 0 6px; }
.btbp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html body .btbp .btbp-chip { --c: var(--p-ink); display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin: 0; padding: 0 13px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: var(--p-paper); color: var(--p-ink); font: 500 13px/1 var(--p-sans); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
html body .btbp .btbp-chip:hover { border-color: var(--p-ink); }
html body .btbp .btbp-chip.is-on { background: var(--p-ink); border-color: var(--p-ink); color: var(--p-paper); }
.btbp-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.btbp-chip.is-on .btbp-chip__dot { box-shadow: 0 0 0 2px var(--p-paper); }
.btbp-select { position: relative; display: inline-flex; align-items: center; }
html body .btbp .btbp-select select { appearance: none; -webkit-appearance: none; height: 38px; margin: 0; padding: 0 36px 0 14px; border: 1px solid var(--p-line-strong); border-radius: 6px; background: var(--p-paper); color: var(--p-ink); font: 600 14px/1 var(--p-sans); cursor: pointer; box-shadow: none; }
html body .btbp .btbp-select select:hover { border-color: var(--p-ink); }
.btbp-select .btbp-ico { position: absolute; right: 12px; pointer-events: none; color: var(--p-muted); }

/* ---------- Month groups ---------- */
.btbp-month { margin-top: 28px; }
.btbp-month:first-of-type { margin-top: 14px; }
.btbp .btbp-month__h { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--p-ink); font-size: 20px; }
.btbp-month--sm { margin-top: 20px; }
.btbp-month--sm:first-of-type { margin-top: 8px; }
.btbp .btbp-month--sm .btbp-month__h { font: 700 12px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); border-bottom-color: var(--p-line); }

/* ---------- Rows (Deadline Radar entries and events) ---------- */
.btbp-list { display: flex; flex-direction: column; }
.btbp-row { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--p-line); }
.btbp-row.is-closing::before { content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: var(--p-coral); }
.btbp-row.is-past { opacity: .6; }
.btbp-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.btbp-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.btbp .btbp-row__t { font: 600 17px/1.35 var(--p-sans); letter-spacing: 0; }
html body .btbp .btbp-row__t a { display: inline; }
.btbp-row__t .btbp-ico { color: var(--p-muted); margin-left: 2px; vertical-align: 0; }
.btbp-row__d { font-size: 15px; line-height: 1.55; color: var(--p-body); }

.btbp-plat { --c: var(--p-muted-dark); display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--p-sans); color: var(--p-body); }
.btbp-plat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.btbp-flag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 600 11px/1 var(--p-sans); background: var(--p-sand); color: var(--p-muted); }
.btbp-flag--reported { background: var(--p-teal-tint); color: var(--p-teal-ink); }
.btbp-flag--rumoured { background: var(--p-coral-tint); color: var(--p-coral-ink); }

/* Date block — same as BTB Polish's .btb-cal */
.btbp-date { flex: 0 0 56px; display: block; text-align: center; border: 1px solid var(--p-line); border-radius: 6px; overflow: hidden; }
.btbp-date__m { display: block; background: var(--p-ink); color: var(--p-paper); font: 700 11px/22px var(--p-sans); letter-spacing: .1em; }
.btbp-date__d { display: block; background: var(--p-paper); font: 700 24px/36px var(--p-sans); letter-spacing: -0.02em; color: var(--p-ink); }
.btbp-date.is-muted .btbp-date__m { background: var(--p-muted-dark); }

/* Countdown */
.btbp-when { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 52px; text-align: right; }
.btbp-when strong { font: 700 26px/1 var(--p-sans); letter-spacing: -0.02em; }
.btbp-when span { font: 600 11px/1 var(--p-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }
.btbp-when--today, .btbp-when--past { display: inline-flex; flex-direction: row; min-width: 0; padding: 6px 9px; border-radius: 4px; font: 700 11px/1 var(--p-sans); letter-spacing: .1em; text-transform: uppercase; }
.btbp-when--today { background: var(--p-coral); color: var(--p-ink); }
.btbp-when--past { background: var(--p-sand); color: var(--p-muted); }
.btbp-row.is-closing .btbp-when strong { color: var(--p-coral-ink); }

/* Expandable detail */
html body .btbp .btbp-toggle { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--p-coral-ink); font: 700 14px/1.2 var(--p-sans); cursor: pointer; }
html body .btbp .btbp-toggle:hover { color: var(--p-ink); }
.btbp-toggle .btbp-ico { transition: transform .2s ease; }
.btbp-toggle[aria-expanded="true"] .btbp-ico { transform: rotate(180deg); }
.btbp-toggle__less { display: none; }
.btbp-toggle[aria-expanded="true"] .btbp-toggle__more { display: none; }
.btbp-toggle[aria-expanded="true"] .btbp-toggle__less { display: inline; }
.btbp-detail { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; max-width: 680px; }
.btbp-detail__why { font-size: 16px; line-height: 1.6; color: var(--p-body); }
.btbp-move { padding: 16px 18px; background: var(--p-paper); border: 1px solid var(--p-line); border-left: 4px solid var(--p-teal); border-radius: 6px; }
.btbp-move__h { display: block; margin-bottom: 6px; font: 700 11px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-teal-ink); }
.btbp-move p { font-size: 15px; line-height: 1.55; color: var(--p-ink); }
html body .btbp .btbp-source { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 700 14px/1 var(--p-sans); color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.btbp-empty { padding: 28px 0; font-size: 15px; color: var(--p-muted); }

/* Full Deadline Radar / calendar pages: keep the list a readable width */
.btbp--radar .btbp-body > .btbp-radar, .btbp--calendar .btbp-body > .btbp-cal { max-width: 920px; }

/* ---------- Dashboard ---------- */
.btbp-updates { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.btbp-update { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 18px; background: var(--p-paper); border: 1px solid var(--p-line); border-left: 4px solid var(--p-coral); border-radius: 6px; }
.btbp-update__k { font: 700 11px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-coral-ink); }
.btbp-update p { flex: 1 1 320px; font-size: 15px; line-height: 1.5; }
html body .btbp .btbp-update a { color: var(--p-coral-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.btbp-dash__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.btbp-dash__side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }

/* Today (dark card, like Polish's "Your verdict") */
.btbp-today { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 12px; background: var(--p-night); color: #fff; }
.btbp .btbp-today h2 { font-size: 24px; line-height: 1.2; color: #fff; }
body .btbp.btbp .btbp-today__list { display: flex; flex-direction: column; }
body .btbp.btbp .btbp-today__list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--p-ink-line); }
.btbp-today__list .btbp-dot { margin-top: 6px; }
html body .btbp .btbp-today__list a { display: flex; flex-direction: column; gap: 3px; color: #fff; }
html body .btbp .btbp-today__list a:hover strong { color: var(--p-coral); }
.btbp-today__list strong { font: 600 15px/1.35 var(--p-sans); transition: color .15s; }
.btbp-today__list span { font-size: 13px; color: var(--p-muted-dark); }
.btbp-today__none, .btbp-today__more { font-size: 15px; line-height: 1.55; color: var(--p-on-dark); }
.btbp-today__none strong { color: #fff; font-weight: 600; }
html body .btbp .btbp-today__more a { color: var(--p-coral); }
.btbp-today__x { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--p-ink-line); }
.btbp-today__x p { font-size: 15px; line-height: 1.55; color: var(--p-on-dark); }
.btbp-today__x strong { color: #fff; font-weight: 600; }
body .btbp.btbp .btbp-today__news { display: flex; flex-direction: column; counter-reset: btbp-news; }
body .btbp.btbp .btbp-today__news li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; counter-increment: btbp-news; }
body .btbp.btbp .btbp-today__news li + li { border-top: 1px solid var(--p-ink-line); }
.btbp-today__news li::before { content: counter(btbp-news); flex: 0 0 16px; font: 700 20px/1.1 var(--p-sans); color: var(--p-coral); }
html body .btbp .btbp-today__news a { display: flex; flex-direction: column; gap: 4px; color: #fff; }
html body .btbp .btbp-today__news a:hover strong { color: var(--p-coral); }
.btbp-today__news strong { font: 600 15px/1.35 var(--p-sans); color: #fff; transition: color .15s; }
.btbp-today__news span { font-size: 12px; color: var(--p-muted-dark); }

/* Dots (shared by Today, month view and legend) */
.btbp-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--p-change); }
.btbp-dot--deadline { background: var(--p-coral); }
.btbp-dot--event { background: var(--p-teal); }
.btbp-dot--change { background: var(--p-change); }

/* Month view */
.btbp-mcal { padding: 22px; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 12px; }
.btbp-mcal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.btbp-mcal__label { font: 700 17px/1.2 var(--p-sans); letter-spacing: -0.01em; }
.btbp-mcal__nav { display: flex; gap: 6px; }
html body .btbp .btbp-mcal__btn { width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid var(--p-line-strong); border-radius: 6px; background: var(--p-paper); color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html body .btbp .btbp-mcal__btn:hover:not(:disabled) { border-color: var(--p-ink); }
html body .btbp .btbp-mcal__btn:disabled { opacity: .35; cursor: default; }
.btbp-mcal__dow, .btbp-mcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.btbp-mcal__dow { margin-bottom: 4px; }
.btbp-mcal__dow span { text-align: center; font: 600 11px/1 var(--p-sans); letter-spacing: .08em; color: var(--p-muted); padding: 4px 0; }
.btbp-mcal__day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; aspect-ratio: 1; border-radius: 6px; font: 500 13px/1 var(--p-sans); color: var(--p-ink); }
.btbp-mcal__day.is-out { visibility: hidden; }
.btbp-mcal__day.is-past { color: var(--p-muted-dark); }
.btbp-mcal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--p-ink); font-weight: 700; }
html body .btbp button.btbp-mcal__day { margin: 0; padding: 0; border: 0; background: var(--p-sand); font-weight: 700; cursor: pointer; transition: background .15s; }
html body .btbp button.btbp-mcal__day.has-deadline { background: var(--p-coral-tint); }
html body .btbp button.btbp-mcal__day.has-event { background: var(--p-teal-tint); }
html body .btbp button.btbp-mcal__day:hover, html body .btbp button.btbp-mcal__day[aria-expanded="true"] { background: var(--p-ink); color: var(--p-paper); }
.btbp-mcal__dots { display: flex; gap: 2px; height: 5px; }
.btbp-mcal__dots .btbp-dot { width: 5px; height: 5px; }
/* Day popover: shows on hover or keyboard focus, tap to pin on phones */
.btbp-mcal { position: relative; }
.btbp-mcal__info { position: absolute; z-index: 30; width: 260px; max-width: calc(100% - 16px); padding: 14px 16px; background: var(--p-night); color: #fff; border-radius: 8px; box-shadow: 0 12px 30px rgba(23, 21, 20, .22); pointer-events: none; }
.btbp-mcal__info::before { content: ""; position: absolute; top: -6px; left: var(--arrow, 50%); width: 12px; height: 12px; margin-left: -6px; background: var(--p-night); transform: rotate(45deg); border-radius: 2px; }
.btbp-mcal__info.is-above::before { top: auto; bottom: -6px; }
.btbp-mcal__info strong { position: relative; display: block; margin-bottom: 10px; font: 700 14px/1.3 var(--p-sans); color: #fff; }
body .btbp.btbp .btbp-mcal__info ul { position: relative; display: flex; flex-direction: column; gap: 10px; }
body .btbp.btbp .btbp-mcal__info li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #fff; }
.btbp-mcal__info .btbp-dot { margin-top: 5px; }
.btbp-mcal__info em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--p-muted-dark); }
.btbp-mcal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--p-line); }
.btbp-mcal__legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--p-muted); }

/* Community (coral panel, like Polish's BTB+ band) */
.btbp-comm { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border-radius: 12px; background: var(--p-coral); color: var(--p-ink); }
.btbp .btbp-comm h2 { font-size: 22px; line-height: 1.2; }
.btbp-comm p { font-size: 15px; line-height: 1.55; color: var(--p-ink-2); }
.btbp-comm__stat { display: inline-flex; padding: 6px 10px; border-radius: 4px; background: rgba(255, 255, 255, .55); font: 600 13px/1 var(--p-sans); }
.btbp-comm .btbp-btn { margin-top: 4px; }

/* Calendar sync (the member's private feed link) */
.btbp-feed { margin-top: 56px; scroll-margin-top: 140px; }
.btbp-feed__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 16px; padding: 26px; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 12px; }
.btbp-feed__main, .btbp-feed__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.btbp-feed__lede { font-size: 16px; line-height: 1.6; color: var(--p-body); }
.btbp-feed__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btbp-feed__label { font: 700 13px/1 var(--p-sans); color: var(--p-ink); }
.btbp-feed__copy { display: flex; gap: 8px; width: 100%; }
html body .btbp .btbp-feed__copy input { flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--p-line-strong); border-radius: 6px; background: var(--p-paper); color: var(--p-ink); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; }
.btbp-feed__reset { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding-top: 14px; width: 100%; border-top: 1px solid var(--p-line); }
html body .btbp .btbp-feed__resetbtn { padding: 0; border: 0; background: none; color: var(--p-coral-ink); font: 700 14px/1.4 var(--p-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html body .btbp .btbp-feed__resetbtn:hover { color: var(--p-ink); }
.btbp-feed__note { margin-top: 16px; padding: 12px 16px; border-left: 4px solid var(--p-coral); border-radius: 4px; background: var(--p-coral-tint); color: var(--p-ink); font: 500 15px/1.5 var(--p-sans); }
html[data-btb-theme="dark"] .btbp .btbp-feed__resetbtn { color: var(--p-coral); }
@media (max-width: 980px) {
	.btbp-feed__box { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
	.btbp-feed__box { padding: 20px; }
	.btbp-feed__btns .btbp-btn { width: 100%; }
}

/* Calculators */
.btbp-tools { margin-top: 56px; }
.btbp-tools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
html body .btbp .btbp-tool { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 12px; color: var(--p-ink); transition: border-color .15s; }
html body .btbp .btbp-tool:hover { border-color: var(--p-ink); color: var(--p-ink); }
.btbp-tool__ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--p-coral-tint); color: var(--p-coral-ink); }
.btbp-tool__t { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.btbp-tool__t strong { font: 700 18px/1.25 var(--p-sans); letter-spacing: -0.01em; }
.btbp-tool__t span { font-size: 14px; line-height: 1.5; color: var(--p-muted); }
.btbp-tool__go { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--p-sans); color: var(--p-coral-ink); }

/* ==========================================================================
   Timeline layout: Deadline Radar and Seller Calendar
   ========================================================================== */
.btbp-tl { padding-top: 4px; }

/* Next up */
.btbp .btbp-next__h { font: 700 12px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); margin-bottom: 14px; }
.btbp-next__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html body .btbp a.btbp-nextcard { display: flex; flex-direction: column; gap: 12px; min-height: 150px; padding: 20px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-paper); color: var(--p-ink); transition: border-color .15s, transform .15s; }
html body .btbp a.btbp-nextcard:hover { border-color: var(--p-ink); color: var(--p-ink); }
html body .btbp a.btbp-nextcard.is-hot { background: var(--p-night); border-color: var(--p-night); color: #fff; }
html body .btbp a.btbp-nextcard.is-hot:hover { color: #fff; }
.btbp-nextcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.btbp-nextcard__label { font: 700 10.5px/1.3 var(--p-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--p-coral-ink); }
.is-hot .btbp-nextcard__label { color: var(--p-coral); }
.btbp-nextcard__n { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1; }
.btbp-nextcard__n strong { font: 800 34px/1 var(--p-sans); letter-spacing: -0.03em; }
.btbp-nextcard__n strong.is-word { font-size: 20px; }
.btbp-nextcard__n span { font: 700 10.5px/1 var(--p-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }
.is-hot .btbp-nextcard__n strong { color: var(--p-coral); }
.is-hot .btbp-nextcard__n span { color: var(--p-on-dark); }
.btbp-nextcard__t { font: 700 16px/1.35 var(--p-sans); }
.btbp-nextcard__meta { margin-top: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--p-muted); }
.is-hot .btbp-nextcard__meta, .is-hot .btbp-nextcard__meta .btbp-plat { color: var(--p-on-dark); }

/* Tabs, chips, toggle */
.btbp-tl__bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; padding: 14px 0; border-bottom: 1px solid var(--p-line); background: var(--p-paper); }
.admin-bar .btbp-tl__bar { top: 32px; }
.btbp-tl__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--p-sand); }
html body .btbp .btbp-tl__tab { height: 40px; margin: 0; padding: 0 18px; border: 0; border-radius: 8px; background: transparent; color: var(--p-muted); font: 600 14px/1 var(--p-sans); cursor: pointer; }
html body .btbp .btbp-tl__tab:hover { color: var(--p-ink); }
html body .btbp .btbp-tl__tab.is-on { background: var(--p-paper); color: var(--p-ink); box-shadow: 0 1px 2px rgba(23, 21, 20, .12); }
.btbp-tl__bar .btbp-chips { flex: 1 1 360px; }
.btbp-tl__action { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.2 var(--p-sans); cursor: pointer; white-space: nowrap; }
.btbp-tl__action input { width: 18px; height: 18px; margin: 0; accent-color: var(--p-ink); }

/* Main + sidebar */
.btbp-tl__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.btbp-tl__grid:not(:has(.btbp-tl__aside)) { grid-template-columns: minmax(0, 1fr); }
.btbp-tl__main { min-width: 0; }
.btbp-tl__group { margin-top: 28px; }
.btbp-tl__gh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 10px; border-bottom: 2px solid var(--p-ink); }
.btbp .btbp-tl__gh h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.btbp-tl__group.is-pastgroup .btbp-tl__gh { border-bottom-width: 1px; }
.btbp-tl__group.is-pastgroup .btbp-tl__gh h2 { font-size: 17px; color: var(--p-muted); }
.btbp-tl__past.is-desc, .btbp-tl__past.is-desc .btbp-list { display: flex; flex-direction: column-reverse; }
.btbp-tl__today { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; font: 800 12px/1 var(--p-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--p-coral-ink); }
.btbp-tl__today::after { content: ""; flex: 1; height: 2px; background: var(--p-coral); }
html body .btbp .btbp-tl__older { margin: 20px 0 0; height: 44px; padding: 0 20px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: var(--p-paper); color: var(--p-ink); font: 600 14px/1 var(--p-sans); cursor: pointer; }
html body .btbp .btbp-tl__older:hover { border-color: var(--p-ink); }
.btbp-anchor { display: block; height: 0; scroll-margin-top: 140px; }
.btbp-tl .btbp-row { padding: 14px 0; }
.btbp-tl .btbp-row.is-flash { background: var(--p-coral-tint); transition: background .6s; }
.btbp-row.is-paused .btbp-row__t, .btbp-row.is-cancelled .btbp-row__t { color: var(--p-muted); }
.btbp-row.is-cancelled .btbp-row__t { text-decoration: line-through; text-decoration-thickness: 1px; }
.btbp-flag--changed { background: var(--p-coral-tint); color: var(--p-coral-ink); }
.btbp-when--hold strong { color: var(--p-muted-dark); }
.btbp-tl .btbp-when strong { font-weight: 800; }
.btbp-tl__up .is-later .btbp-when strong, .btbp-tl__up .is-horizon .btbp-when strong { color: var(--p-muted); }
.btbp-tl__up .is-horizon .btbp-when strong { font-size: 18px; }

.btbp-tl__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.admin-bar .btbp-tl__aside { top: 128px; }
.btbp-tl__index { padding: 20px; border: 1px solid var(--p-line); border-radius: 12px; }
.btbp .btbp-tl__index h2 { margin-bottom: 8px; font: 700 12px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); }
html body .btbp .btbp-tl__index a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--p-ink); }
html body .btbp .btbp-tl__index a:hover { color: var(--p-coral-ink); }
body .btbp.btbp .btbp-tl__index li + li { border-top: 1px solid var(--p-line); }
.btbp-tl__index .btbp-count { color: var(--p-muted-dark); }
.btbp-tl__aside .btbp-mcal { padding: 20px; border: 1px solid var(--p-line); border-radius: 12px; }

@media (max-width: 1100px) {
	.btbp-next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.btbp-tl__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.btbp-tl__aside { display: none; }
}
@media (max-width: 767px) {
	.btbp-next__grid { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
	.btbp-next__grid::-webkit-scrollbar { display: none; }
	html body .btbp a.btbp-nextcard { flex: 0 0 250px; min-height: 138px; padding: 16px; scroll-snap-align: start; }
	.btbp-nextcard__n strong { font-size: 28px; }
	.btbp-tl__bar { position: static; flex-direction: column; align-items: stretch; margin-top: 24px; padding: 12px 0; }
	.btbp-tl__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	html body .btbp .btbp-tl__tab { padding: 0 8px; }
	.btbp-tl__bar > * { min-width: 0; }
	.btbp-tl__bar .btbp-chips { flex: 0 0 auto; width: calc(100% + 32px); max-width: none; }
	.btbp .btbp-tl__gh h2 { font-size: 18px; }
	.btbp-tl__group { margin-top: 24px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
	.btbp-wrap { padding-left: 24px; padding-right: 24px; }
	.btbp-bar__in { gap: 18px; }
	body .btbp.btbp .btbp-tabs { overflow-x: auto; scrollbar-width: none; gap: 22px; }
	body .btbp.btbp .btbp-tabs::-webkit-scrollbar { display: none; }
	.btbp-dash__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.btbp-dash__side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.btbp-today { grid-column: 1 / -1; }
	.btbp .btbp-head h1 { font-size: 36px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
	.btbp-wrap { padding-left: 16px; padding-right: 16px; }
	.btbp-bar__in { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 12px; }
	.btbp-brand { order: 1; }
	.btbp-logout { order: 2; margin-left: auto; }
	.btbp-logout span { display: none; }
	body .btbp.btbp .btbp-tabs { order: 3; flex: 1 1 100%; margin: 6px -16px 0; padding: 0 16px; min-height: 48px; }
	.btbp-head { padding-top: 24px; }
	.btbp-head__in { padding-bottom: 18px; }
	.btbp .btbp-head h1 { font-size: 30px; }
	.btbp-head__lede { font-size: 16px; }
	.btbp-head__meta { align-items: flex-start; text-align: left; }
	.btbp-body { padding-top: 24px; padding-bottom: 48px; }
	.btbp .btbp-shead h2 { font-size: 22px; }
	.btbp-filters { padding-top: 12px; }
	.btbp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; flex: 1 1 100%; }
	.btbp-chips::-webkit-scrollbar { display: none; }
	.btbp-row { gap: 14px; padding: 16px 0; }
	.btbp-row.is-closing::before { left: -10px; }
	.btbp-date { flex-basis: 48px; }
	.btbp-date__m { font-size: 10px; line-height: 20px; }
	.btbp-date__d { font-size: 20px; line-height: 30px; }
	.btbp .btbp-row__t { font-size: 16px; }
	.btbp-when { min-width: 0; }
	.btbp-when strong { font-size: 20px; }
	.btbp-dash__side { grid-template-columns: minmax(0, 1fr); }
	.btbp-today, .btbp-mcal, .btbp-comm { padding: 20px; }
	.btbp-tools__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	html body .btbp .btbp-tool { flex-direction: row; align-items: center; padding: 16px; }
	.btbp-tool__go span, .btbp-tool__go { font-size: 0; gap: 0; }
	.btbp-tool__go .btbp-ico { width: 18px; height: 18px; }
}


/* ---------- Calculators ---------- */
.btbp-calc__nav { margin-bottom: 24px; }
html body .btbp a.btbp-chip { text-decoration: none; }
html body .btbp a.btbp-chip.is-on, html body .btbp a.btbp-chip.is-on:hover { color: var(--p-paper); }
.btbp-calc__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.btbp-calc__card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 12px; }
.btbp-calc__inputs { background: var(--p-paper); border: 1px solid var(--p-line); }
.btbp-calc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--p-line); }
.btbp .btbp-calc__head h2 { font-size: 20px; }
.btbp-calc__tools { display: flex; gap: 8px; }
html body .btbp .btbp-calc__tool { min-height: 34px; margin: 0; padding: 0 12px; border: 1px solid var(--p-line-strong); border-radius: 6px; background: var(--p-paper); color: var(--p-ink); font: 600 13px/1 var(--p-sans); cursor: pointer; }
html body .btbp .btbp-calc__tool:hover { border-color: var(--p-ink); }
.btbp-calc__fields { display: flex; flex-direction: column; gap: 18px; }
.btbp-field { display: flex; flex-direction: column; gap: 8px; }
.btbp-field label { font: 600 14px/1.2 var(--p-sans); color: var(--p-ink); }
.btbp-field label span { font-weight: 400; color: var(--p-muted); }
.btbp-field__in { display: flex; align-items: stretch; height: 50px; border: 1px solid var(--p-line-strong); border-radius: 6px; background: var(--p-paper); overflow: hidden; }
.btbp-field__in:focus-within { border-color: var(--p-ink); box-shadow: 0 0 0 3px rgba(23, 21, 20, .10); }
.btbp-field__fix { display: inline-flex; align-items: center; padding: 0 14px; background: var(--p-sand); color: var(--p-muted); font: 600 15px/1 var(--p-sans); }
html body .btbp .btbp-field__in input { flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--p-ink); font: 500 17px/1 var(--p-sans); box-shadow: none; outline: none; -moz-appearance: textfield; }
.btbp-field__in input::-webkit-outer-spin-button, .btbp-field__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btbp-field__hint { font-size: 13px; line-height: 1.45; color: var(--p-muted); }
.btbp-calc__note { font-size: 13px; color: var(--p-muted); }

.btbp-calc__out { background: var(--p-night); color: #fff; position: sticky; top: 24px; }
.btbp-calc__lbl { display: block; font: 700 11px/1 var(--p-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted-dark); }
.btbp-calc__big { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--p-ink-line); }
.btbp-calc__big strong { font: 700 48px/1 var(--p-sans); letter-spacing: -0.03em; color: #fff; }
.btbp-calc__sub { font-size: 14px; color: var(--p-on-dark); }
.btbp-calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--p-ink-line); }
.btbp-calc__pair > div { display: flex; flex-direction: column; gap: 8px; }
.btbp-calc__pair strong { font: 700 26px/1 var(--p-sans); letter-spacing: -0.02em; color: #fff; }
.btbp-calc .is-neg { color: var(--p-coral) !important; }
body .btbp.btbp .btbp-calc__rows { display: flex; flex-direction: column; }
body .btbp.btbp .btbp-calc__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; color: var(--p-on-dark); border-bottom: 1px solid var(--p-ink-line); }
body .btbp.btbp .btbp-calc__rows li:last-child { border-bottom: 0; }
body .btbp.btbp .btbp-calc__rows li.is-sum { color: #fff; font-weight: 700; }
.btbp-calc__rows li > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.btbp-calc__tag { display: inline-flex; padding: 3px 8px; border-radius: 4px; background: var(--p-ink-line); color: #fff; font: 700 12px/1 var(--p-sans); }
.btbp-calc__tag[data-health="Healthy"] { background: var(--p-teal); }
.btbp-calc__tag[data-health="Tight"] { background: #C98A1B; color: var(--p-ink); }
.btbp-calc__tag[data-health="At risk"], .btbp-calc__tag[data-health="Negative"] { background: var(--p-coral); color: var(--p-ink); }
.btbp-calc__how { font-size: 13px; line-height: 1.55; color: var(--p-muted-dark); }

@media (max-width: 980px) {
	.btbp-calc__grid { grid-template-columns: minmax(0, 1fr); }
	.btbp-calc__out { position: static; }
}
@media (max-width: 767px) {
	.btbp-calc__card { padding: 20px; }
	.btbp-calc__big strong { font-size: 40px; }
	.btbp-calc__nav { margin-bottom: 18px; }
}

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

/* Design pass (2.2.1): balanced headings, figures that line up */
.btbp h1, .btbp h2, .btbp h3 { text-wrap: balance; }
.btbp p { text-wrap: pretty; }
.btbp-date__d, .btbp-date__m, .btbp-count, .btbp-nextcard__n, .btbp-calc__big strong, .btbp-calc input, .btbp-tl__tab, .btbp-badge, .btbp-head__date { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Dark mode (2.3.0) — BTB Polish sets <html data-btb-theme="dark">.
   ========================================================================== */
html[data-btb-theme="dark"] .btbp {
	--p-paper: #141312;
	--p-line: #2E2B27;
	--p-coral-tint: #3A231F;
	--p-teal-tint: #142F2C;
	--p-change: #A69E92;
	--p-night: #0C0B0A;
}
/* Already-dark panels keep their light-mode tokens */
html[data-btb-theme="dark"] .btbp :is(.btbp-today, .btbp-mcal__info, .btbp-calc__out, .btbp-nextcard.is-hot) {
	--p-ink: #171514; --p-ink-2: #22201D; --p-body: #3D3832; --p-muted: #5E5850; --p-paper: #FFFFFF; --p-line: #E6E4E0;
	box-shadow: inset 0 0 0 1px #2E2B27;
}
html[data-btb-theme="dark"] .btbp .btbp-btn--ink:hover { background: #FFFFFF; color: #171514; }
html[data-btb-theme="dark"] .btbp img { filter: brightness(.92); }
/* Coral surfaces keep dark text */
html[data-btb-theme="dark"] .btbp :is(.btbp-btn:not(.btbp-btn--ink), .btbp-badge:not([class*="--"]), .btbp-when--today, .btbp-comm, .btbp-calc__tag[data-health="At risk"], .btbp-calc__tag[data-health="Negative"], .btbp-calc__tag[data-health="Tight"]) {
	--p-ink: #171514; --p-ink-2: #22201D; --p-body: #3D3832; --p-muted: #5E5850; --p-coral-ink: #B83A28; --p-paper: #FFFFFF; --p-line: #E6E4E0;
}
html[data-btb-theme="dark"] .btbp .btbp-date__m { background: var(--p-coral); color: #171514; }
html[data-btb-theme="dark"] .btbp .btbp-date { border-color: var(--p-line-strong); }
