/*! FitnessWorx Tools 1.4.0 */
.fwx, .fwx-hub {
	--fwx-ink: var(--contrast, #111);
	--fwx-ink-2: var(--contrast-2, #333);
	--fwx-muted: var(--accent-2, #6b7c85);
	--fwx-bg: var(--base-3, #fff);
	--fwx-soft: var(--base-2, #fafafa);
	--fwx-line: var(--base, #e8e8e8);
	--fwx-accent: var(--accent, #ffb300);
	--fwx-good: #2e9d5b;
	--fwx-warn: #e0a100;
	--fwx-bad: #d64545;
	--fwx-info: #4b8bbe;
	--fwx-radius: 14px;
	color: var(--fwx-ink);
	margin: 0 0 2rem;
}
.fwx *, .fwx-hub * { box-sizing: border-box; }

/* panel */
.fwx-panel { background: var(--fwx-bg); border: 1px solid var(--fwx-line); border-radius: var(--fwx-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .05); overflow: hidden; }
.fwx-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: var(--fwx-soft); border-bottom: 1px solid var(--fwx-line); }
.fwx-panel__title { font-weight: 700; }
.fwx-panel__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 860px) { .fwx-panel__body { grid-template-columns: 1fr; } }

/* units toggle, tabs, chips */
.fwx-units, .fwx-tabs { display: inline-flex; background: var(--fwx-line); border-radius: 999px; padding: 3px; }
.fwx-units button, .fwx-tabs button { appearance: none; border: 0; background: transparent; color: var(--fwx-ink); font: inherit; font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 999px; cursor: pointer; line-height: 1.4; }
.fwx-units button[aria-pressed="true"], .fwx-tabs button[aria-selected="true"] { background: var(--fwx-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fwx-units button:focus-visible, .fwx-tabs button:focus-visible, .fwx-chip:focus-visible, .fwx-btn:focus-visible, .fwx-sound:focus-visible { outline: 3px solid var(--fwx-accent); outline-offset: 2px; }
.fwx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fwx-chip { appearance: none; border: 1px solid var(--fwx-line); background: var(--fwx-bg); color: var(--fwx-ink); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; line-height: 1.4; }
.fwx-chip:hover, .fwx-chip[aria-pressed="true"] { border-color: var(--fwx-ink); }
.fwx-chip[aria-pressed="true"] { background: var(--fwx-ink); color: var(--fwx-bg); }
.fwx-sound { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--fwx-muted); cursor: pointer; padding: 6px 4px; }
.fwx-sound[aria-pressed="false"] { text-decoration: line-through; }

/* form */
.fwx-form { padding: 22px 20px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--fwx-line); }
@media (max-width: 860px) { .fwx-form { border-right: 0; border-bottom: 1px solid var(--fwx-line); } }
.fwx-form--timer { border: 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); padding-top: 4px; }
.fwx-field[hidden] { display: none; }
.fwx-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.fwx-opt { font-weight: 400; color: var(--fwx-muted); }
.fwx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fwx-input { position: relative; display: flex; align-items: center; }
.fwx-input input, .fwx-select select { width: 100%; font: inherit; font-size: 17px; color: var(--fwx-ink); background: var(--fwx-bg); border: 1px solid #cfd4d8; border-radius: 10px; padding: 11px 14px; min-height: 48px; margin: 0; }
.fwx-input input { padding-right: 52px; -moz-appearance: textfield; }
.fwx-input input::-webkit-outer-spin-button, .fwx-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fwx-input span { position: absolute; right: 14px; color: var(--fwx-muted); font-size: 15px; pointer-events: none; }
.fwx-input input:focus, .fwx-select select:focus { outline: none; border-color: var(--fwx-ink); box-shadow: 0 0 0 3px rgba(255, 179, 0, .35); }
.fwx-select select { font-size: 16px; cursor: pointer; }
.fwx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fwx-seg__opt { position: relative; cursor: pointer; margin: 0; }
.fwx-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fwx-seg__opt span { display: block; text-align: center; padding: 11px 10px; border: 1px solid #cfd4d8; border-radius: 10px; font-weight: 600; min-height: 48px; line-height: 24px; }
.fwx-seg__opt input:checked + span { background: var(--fwx-ink); border-color: var(--fwx-ink); color: var(--fwx-bg); }
.fwx-seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 179, 0, .5); }

/* results */
.fwx-result { padding: 22px 20px; min-width: 0; }
.fwx-empty { color: var(--fwx-muted); margin: 0; padding: 28px 0; text-align: center; }
.fwx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fwx-stat { background: var(--fwx-soft); border: 1px solid var(--fwx-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fwx-stat:first-child { border-top: 4px solid var(--fwx-accent); }
.fwx-stat--good:first-child { border-top-color: var(--fwx-good); }
.fwx-stat--warn:first-child { border-top-color: var(--fwx-warn); }
.fwx-stat--bad:first-child { border-top-color: var(--fwx-bad); }
.fwx-stat--info:first-child { border-top-color: var(--fwx-info); }
.fwx-stat__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fwx-muted); }
.fwx-stat__value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.fwx-stat__value small { font-size: .5em; font-weight: 600; color: var(--fwx-muted); }
.fwx-stat__sub { font-size: 14px; color: var(--fwx-ink-2); }
.fwx-stat--macro-p:first-child, .fwx-stat--macro-p { border-top: 4px solid #e8743b; }
.fwx-stat--macro-c { border-top: 4px solid #4b8bbe; }
.fwx-stat--macro-f { border-top: 4px solid var(--fwx-accent); }
.fwx-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #fff; background: var(--fwx-info); }
.fwx-badge--good { background: var(--fwx-good); }
.fwx-badge--warn { background: var(--fwx-warn); color: #1d1600; }
.fwx-badge--bad { background: var(--fwx-bad); }
.fwx-note { font-size: 15px; line-height: 1.55; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff8e1; border-left: 4px solid var(--fwx-accent); }
.fwx-note--warn { background: #fff1e6; border-left-color: #e8743b; }
.fwx-note--muted { background: transparent; border-left: 0; padding: 0; color: var(--fwx-ink-2); font-size: 14px; }
.fwx-note a, .fwx-result a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--fwx-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fwx-muted { color: var(--fwx-muted); font-weight: 400; }

/* gauge */
.fwx-gauge { margin: 6px 0 18px; }
.fwx-gauge__track { position: relative; padding: 8px 0; }
.fwx-gauge__bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; }
.fwx-gauge__seg { height: 100%; }
.fwx-gauge__labels { display: flex; }
.fwx-gauge__labels span { text-align: center; font-size: 11px; font-weight: 700; color: var(--fwx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.fwx-tone--good { background: var(--fwx-good); }
.fwx-tone--warn { background: var(--fwx-warn); }
.fwx-tone--bad { background: var(--fwx-bad); }
.fwx-tone--info { background: var(--fwx-info); }
.fwx-gauge__marker { position: absolute; top: 0; width: 4px; height: 28px; margin-left: -2px; background: var(--fwx-ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--fwx-bg); }

/* macro split */
.fwx-split { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; font-size: 12px; font-weight: 700; color: #fff; }
.fwx-split__part { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.fwx-split--p { background: #e8743b; }
.fwx-split--c { background: #4b8bbe; }
.fwx-split--f { background: var(--fwx-accent); color: #1d1600; }

/* tables */
.fwx-table-wrap { overflow-x: auto; margin: 4px 0 4px; }
.fwx-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.fwx-table th, .fwx-table td { text-align: left; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--fwx-line); background: none; }
.fwx-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fwx-muted); }
.fwx-table tbody th { font-weight: 600; }
.fwx-table td { font-weight: 700; white-space: nowrap; }
.fwx-row--hl th, .fwx-row--hl td { background: #fff8e1; }

/* how it works + disclaimer */
.fwx-how { margin-top: 18px; border: 1px solid var(--fwx-line); border-radius: 12px; background: var(--fwx-bg); }
.fwx-how summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.fwx-how summary::-webkit-details-marker { display: none; }
.fwx-how summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--fwx-muted); }
.fwx-how[open] summary::after { content: "\2212"; }
.fwx-how__body { padding: 0 18px 8px; font-size: 15px; line-height: 1.6; }
.fwx-how__body ul { margin: 0 0 1em 1.2em; }
.fwx-disclaimer { font-size: 13px; color: var(--fwx-muted); margin: 12px 0 0; line-height: 1.5; }
.fwx-noscript { padding: 20px; margin: 0; }

/* timers */
.fwx-timer .fwx-panel__head { gap: 10px; }
.fwx-face { --fwx-face: var(--fwx-ink); margin: 18px 20px 0; border-radius: var(--fwx-radius); background: #1a1a1a; color: #fff; text-align: center; padding: 26px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: background-color .3s ease; }
.fwx-face[data-face="work"] { background: #141414; }
.fwx-face[data-face="work"] .fwx-face__phase { color: var(--fwx-accent); }
.fwx-face[data-face="rest"] { background: #1d4d33; }
.fwx-face[data-face="prep"], .fwx-face[data-face="ready"] { background: #2b3238; }
.fwx-face[data-face="done"] { background: var(--fwx-good); }
.fwx-face__phase { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.fwx-face__time { font-size: clamp(3.5rem, 15vw, 7.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fwx-face__round { font-size: 15px; opacity: .85; }
.fwx-progress { width: 100%; max-width: 420px; height: 6px; background: rgba(255, 255, 255, .18); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.fwx-progress span { display: block; height: 100%; width: 0; background: var(--fwx-accent); transition: width .15s linear; }
.fwx-controls { display: flex; justify-content: center; gap: 10px; padding: 16px 20px 6px; flex-wrap: wrap; }
.fwx-btn { appearance: none; font: inherit; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 26px; min-height: 52px; border-radius: 10px; border: 1px solid var(--fwx-line); background: var(--fwx-soft); color: var(--fwx-ink); cursor: pointer; }
.fwx-btn--primary { background: var(--fwx-accent); border-color: var(--fwx-accent); color: #1d1600; min-width: 160px; }
.fwx-btn--ghost { background: none; border-color: transparent; color: var(--fwx-muted); font-size: 13px; min-height: 0; padding: 6px 12px; }
.fwx-btn:disabled { opacity: .45; cursor: default; }
.fwx-btn:not(:disabled):hover { filter: brightness(.96); }
.fwx-total { text-align: center; color: var(--fwx-muted); font-size: 14px; margin: 4px 20px 18px; }
.fwx-timer > div[data-pane] > .fwx-chips { justify-content: center; padding: 18px 20px 0; }
.fwx-laps { list-style: none; margin: 8px 20px 20px; padding: 0; max-height: 260px; overflow-y: auto; }
.fwx-laps li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 9px 4px; border-bottom: 1px solid var(--fwx-line); font-variant-numeric: tabular-nums; }

/* breathing */
.fwx-breath__stage { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; margin: 4px 20px 0; border-radius: var(--fwx-radius); background: radial-gradient(circle at 50% 45%, #eef6f3 0%, var(--fwx-soft) 70%); overflow: hidden; }
.fwx-breath__circle { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #8fd3b6, #3f9e7c); opacity: .9; transform: scale(.55); transition-property: transform; transition-timing-function: ease-in-out; box-shadow: 0 20px 60px rgba(63, 158, 124, .35); }
.fwx-breath__text { position: relative; text-align: center; color: #0f3d2c; display: flex; flex-direction: column; gap: 4px; padding: 0 16px; }
.fwx-breath .fwx-form--timer { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 560px) { .fwx-breath .fwx-form--timer { grid-template-columns: 1fr; } }
.fwx-breath__phase { font-size: 20px; font-weight: 800; }
.fwx-breath__count { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; min-height: 44px; }
@media (max-width: 480px) { .fwx-breath__stage { height: 270px; } .fwx-breath__circle { width: 220px; height: 220px; } }
@media (prefers-reduced-motion: reduce) { .fwx-breath__circle { transition-duration: 0s !important; } .fwx-progress span, .fwx-face { transition: none; } }

/* related + hub cards */
.fwx-related { margin-top: 28px; }
.fwx-related__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--fwx-muted); margin: 0 0 12px; }
.fwx-related__all { margin: 12px 0 0; font-weight: 700; }
.fwx-related__all a { color: inherit; text-decoration-color: var(--fwx-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fwx-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
@media (min-width: 900px) { .fwx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fwx-card { margin: 0; }
.fwx-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; background: var(--fwx-soft); border: 1px solid var(--fwx-line); border-radius: 12px; color: var(--fwx-ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease; border-top: 4px solid var(--fwx-line); }
.fwx-card--body a { border-top-color: #4b8bbe; }
.fwx-card--nutrition a { border-top-color: #e8743b; }
.fwx-card--timers a { border-top-color: var(--fwx-accent); }
.fwx-card a:hover, .fwx-card a:focus-visible { transform: translateY(-2px); border-color: var(--fwx-ink); outline: none; }
.fwx-card__title { font-weight: 800; font-size: 17px; }
.fwx-card__title::after { content: " \2192"; color: var(--fwx-accent); }
.fwx-card__text { font-size: 14px; line-height: 1.5; color: var(--fwx-ink-2); }
.fwx-hub__group { margin: 0 0 44px; }
.fwx-hub__title { margin: 0 0 6px; }
.fwx-hub__intro { color: var(--fwx-ink-2); margin: 0 0 18px; }

/* ===== batch 2 ===== */
.fwx-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fwx-trio .fwx-input input { padding-right: 44px; }
.fwx-trio .fwx-input span { right: 10px; font-size: 13px; }
.fwx-pair--unit { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.fwx-pair--unit .fwx-input input { padding-right: 14px; }
.fwx-chips--sm { margin-top: 8px; gap: 6px; }
.fwx-chips--sm .fwx-chip { font-size: 13px; padding: 4px 11px; }
.fwx-hint { display: block; font-size: 13px; color: var(--fwx-muted); margin-top: 4px; }
.fwx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barbell plate diagram */
.fwx-bar { display: flex; align-items: center; justify-content: center; height: 150px; margin: 4px 0 12px; padding: 0 4px; overflow: hidden; }
.fwx-bar__shaft { flex: 1 1 auto; max-width: 180px; min-width: 40px; height: 10px; background: #9aa3a8; border-radius: 2px; }
.fwx-bar__sleeve { width: 28px; height: 16px; background: #b8c0c4; border-radius: 3px; flex: 0 0 auto; }
.fwx-bar__collar { width: 8px; height: 28px; background: #7d868b; border-radius: 2px; flex: 0 0 auto; }
.fwx-plate { flex: 0 0 auto; width: 20px; margin: 0 1px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; writing-mode: vertical-rl; transform: rotate(180deg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.fwx-plate--red { background: #d64545; }
.fwx-plate--blue { background: #3b6fd6; }
.fwx-plate--green { background: #2e9d5b; }
.fwx-plate--yellow { background: #e6b800; color: #1d1600; }
.fwx-plate--black { background: #222; }
.fwx-plate--grey { background: #8a9297; }
@media (max-width: 480px) { .fwx-plate { width: 14px; font-size: 8px; } .fwx-bar__sleeve { width: 14px; } }

/* editable table (training volume) */
.fwx-volume { padding: 16px 20px 4px; }
.fwx-volume > .fwx-result { padding: 8px 0 18px; }
.fwx-table--inputs td { padding: 6px 6px 6px 0; white-space: normal; font-weight: 700; }
.fwx-table--inputs input { width: 100%; min-width: 64px; font: inherit; font-size: 16px; font-weight: 400; color: var(--fwx-ink); background: var(--fwx-bg); border: 1px solid #cfd4d8; border-radius: 8px; padding: 9px 10px; min-height: 44px; margin: 0; }
.fwx-table--inputs input[type="text"] { min-width: 140px; }
.fwx-table--inputs input:focus { outline: none; border-color: var(--fwx-ink); box-shadow: 0 0 0 3px rgba(255, 179, 0, .35); }
.fwx-table--inputs td[data-vol] { min-width: 90px; }
.fwx-x { appearance: none; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--fwx-muted); cursor: pointer; padding: 8px; border-radius: 6px; }
.fwx-x:hover { color: var(--fwx-bad); background: var(--fwx-soft); }
.fwx-controls--left { justify-content: flex-start; padding: 10px 0 4px; }
.fwx-card--strength a { border-top-color: #7b4fd6; }
.fwx-card--cardio a { border-top-color: #17a2a5; }
@media (max-width: 640px) {
	.fwx-table--inputs thead { display: none; }
	.fwx-table--inputs, .fwx-table--inputs tbody { display: block; }
	.fwx-table--inputs tr { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; grid-template-areas: "n n n x" "s r w w" "v v v v"; gap: 6px 8px; padding: 12px 0; border-bottom: 1px solid var(--fwx-line); }
	.fwx-table--inputs td { padding: 0; border: 0; }
	.fwx-table--inputs td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fwx-muted); margin-bottom: 3px; }
	.fwx-table--inputs td:nth-child(1) { grid-area: n; } .fwx-table--inputs td:nth-child(2) { grid-area: s; } .fwx-table--inputs td:nth-child(3) { grid-area: r; } .fwx-table--inputs td:nth-child(4) { grid-area: w; }
	.fwx-table--inputs td[data-vol] { grid-area: v; display: flex; gap: 8px; align-items: baseline; }
	.fwx-table--inputs td[data-vol]::before { display: inline; margin: 0; }
	.fwx-table--inputs td.fwx-td-x { grid-area: x; align-self: end; }
	.fwx-table--inputs td.fwx-td-x::before { content: none; }
	.fwx-table--inputs input, .fwx-table--inputs input[type="text"] { min-width: 0; }
	.fwx-volume .fwx-table-wrap { overflow: visible; }
}

/* ===== batch 3 ===== */
.fwx-input--time input { padding-right: 14px; }
.fwx-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.fwx-result .fwx-face { margin: 0 0 14px; }
.fwx-face--sm .fwx-face__time { font-size: clamp(2.6rem, 9vw, 4.5rem); }

.fwx-card--tests a { border-top-color: #e04f8a; }
.fwx-progress--light { background: var(--fwx-line); max-width: none; margin: 0 0 18px; }

/* meditation ring */
.fwx-ring { position: relative; width: min(300px, 80%); aspect-ratio: 1; margin: 6px auto 0; }
.fwx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fwx-ring__bg { fill: none; stroke: var(--fwx-line); stroke-width: 8; }
.fwx-ring__fg { fill: none; stroke: #3f9e7c; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.fwx-ring__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.fwx-ring__time { font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.fwx-ring__sub { color: var(--fwx-muted); font-size: 14px; }

/* quiz */
.fwx-quiz__body { padding: 22px 20px 24px; }
.fwx-quiz__intro { color: var(--fwx-ink-2); margin: 0 0 10px; }
.fwx-quiz__q { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; line-height: 1.3; margin: 0 0 16px; }
.fwx-quiz__opts { display: grid; gap: 10px; }
.fwx-quiz__opt { appearance: none; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--fwx-ink); background: var(--fwx-soft); border: 1px solid var(--fwx-line); border-radius: 12px; padding: 14px 18px; min-height: 52px; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.fwx-quiz__opt:hover, .fwx-quiz__opt:focus-visible { border-color: var(--fwx-ink); outline: none; transform: translateX(3px); }
.fwx-quiz__opt[aria-pressed="true"] { border-color: var(--fwx-accent); background: #fff8e1; }
.fwx-quiz__kicker { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--fwx-muted); }
.fwx-quiz__result { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 4px 0 10px; line-height: 1.1; }
.fwx-cards--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
.fwx-cards--compact .fwx-card a { padding: 14px 16px; }

/* ===== batch 4: generators & trackers ===== */
.fwx-field--wide { grid-column: 1 / -1; }
.fwx-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.fwx-check { position: relative; margin: 0; cursor: pointer; }
.fwx-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fwx-check span { display: block; padding: 9px 14px; border: 1px solid #cfd4d8; border-radius: 999px; font-size: 15px; font-weight: 600; }
.fwx-check input:checked + span { background: var(--fwx-ink); border-color: var(--fwx-ink); color: var(--fwx-bg); }
.fwx-check input:disabled + span { opacity: .75; cursor: default; }
.fwx-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 179, 0, .5); }
.fwx-gen__actions { padding: 0 20px 4px; }
.fwx-gen__out { padding: 8px 20px 22px; }
.fwx-gen__h { font-size: 1.15rem; margin: 22px 0 10px; }
.fwx-gen__h .fwx-muted { font-size: 14px; font-weight: 600; margin-left: 6px; }
.fwx-steps { list-style: none; counter-reset: fwxs; margin: 0; padding: 0; }
.fwx-steps li { counter-increment: fwxs; display: flex; justify-content: space-between; gap: 16px; padding: 11px 0 11px 40px; border-bottom: 1px solid var(--fwx-line); position: relative; }
.fwx-steps li::before { content: counter(fwxs); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--fwx-soft); border: 1px solid var(--fwx-line); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fwx-steps__cue { display: block; font-size: 14px; color: var(--fwx-ink-2); margin-top: 2px; }
.fwx-steps__dose { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fwx-player { margin: 4px 0 8px; }
.fwx-player .fwx-face { margin: 0; }
.fwx-player__name { font-size: clamp(1.4rem, 4.5vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.fwx-player__cue { font-size: 15px; opacity: .85; max-width: 560px; min-height: 1.3em; }
.fwx-player__next { font-size: 14px; opacity: .7; margin-top: 6px; min-height: 1.2em; }
.fwx-player .fwx-face__time { font-size: clamp(3rem, 12vw, 5.5rem); }

/* deck of cards */
.fwx-suit { font-size: 1.1em; }
.fwx-suit--red { color: #d12f3a; }
.fwx-deck { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 10px 20px; flex-wrap: wrap; }
.fwx-card-big { width: 190px; aspect-ratio: 5 / 7; border-radius: 16px; background: #fff; border: 2px solid var(--fwx-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; color: #111; }
.fwx-card-big--red { color: #d12f3a; }
.fwx-card-big--joker { background: #1a1a1a; color: var(--fwx-accent); }
.fwx-card-big__hint { color: var(--fwx-muted); text-align: center; padding: 16px; font-size: 14px; }
.fwx-card-big__rank { position: absolute; top: 10px; left: 14px; font-size: 26px; font-weight: 800; line-height: 1; display: flex; flex-direction: column; align-items: center; }
.fwx-card-big__rank em { font-style: normal; font-size: 22px; }
.fwx-card-big__reps { font-size: 64px; font-weight: 800; line-height: 1; }
.fwx-card-big__ex { font-size: 15px; font-weight: 700; color: var(--fwx-ink); text-align: center; padding: 0 10px; }
.fwx-card-big--joker .fwx-card-big__ex { color: #fff; }
.fwx-deck__info { text-align: center; }
.fwx-deck__count { font-weight: 700; margin: 0 0 4px; }
.fwx-deck__time { font-size: 2rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }

/* challenge calendar */
.fwx-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.fwx-day { appearance: none; font: inherit; color: var(--fwx-ink); text-align: left; background: var(--fwx-bg); border: 1px solid #cfd4d8; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 84px; position: relative; }
.fwx-day:hover { border-color: var(--fwx-ink); }
.fwx-day--rest { background: var(--fwx-soft); color: var(--fwx-muted); cursor: default; border-style: dashed; }
.fwx-day--done { background: #e8f6ee; border-color: var(--fwx-good); }
.fwx-day--done::after { content: "\2713"; position: absolute; top: 8px; right: 10px; color: var(--fwx-good); font-weight: 800; font-size: 18px; }
.fwx-day--today { box-shadow: 0 0 0 3px var(--fwx-accent); }
.fwx-day__n { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--fwx-muted); }
.fwx-day__t { font-weight: 800; font-size: 15px; line-height: 1.25; }
.fwx-day__d { font-size: 12px; color: var(--fwx-muted); margin-top: auto; }
.fwx-print-title { display: none; }
.fwx-store-note { font-size: 13px; color: var(--fwx-muted); margin: 10px 0 0; }

/* habit tracker */
.fwx-habits th, .fwx-habits td { text-align: center; padding: 6px 4px; }
.fwx-habits tbody th { text-align: left; min-width: 170px; }
.fwx-habits tbody th input { width: 100%; font: inherit; font-size: 15px; border: 1px solid transparent; background: none; border-radius: 6px; padding: 6px 8px; color: var(--fwx-ink); }
.fwx-habits tbody th input:hover, .fwx-habits tbody th input:focus { border-color: #cfd4d8; background: var(--fwx-bg); outline: none; }
.fwx-habits .fwx-today { color: var(--fwx-ink); background: #fff8e1; border-radius: 8px; }
.fwx-hcell { appearance: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #cfd4d8; background: var(--fwx-bg); font-size: 18px; font-weight: 800; color: #fff; cursor: pointer; }
.fwx-hcell.is-on { background: var(--fwx-good); border-color: var(--fwx-good); }
.fwx-hcell:disabled { opacity: .35; cursor: default; }
.fwx-panel__head .fwx-btn--ghost:disabled { visibility: hidden; }

/* inline entry forms */
.fwx-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 4px 0 8px; }
.fwx-inline-form .fwx-field { flex: 1 1 150px; }
.fwx-inline-form .fwx-btn { min-height: 48px; }
.fwx-inline-form--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fwx-inline-form--grid .fwx-btn { grid-column: 1 / -1; justify-self: start; }
.fwx-textarea { width: 100%; font: inherit; font-size: 16px; border: 1px solid #cfd4d8; border-radius: 10px; padding: 10px 14px; resize: vertical; }
.fwx-wrap { white-space: normal; font-weight: 400; display: block; max-width: 260px; }

/* chart */
.fwx-chart { width: 100%; height: auto; max-height: 340px; display: block; margin: 6px 0 4px; }
.fwx-chart__grid { stroke: var(--fwx-line); stroke-width: 1; }
.fwx-chart__lbl { fill: var(--fwx-muted); font-size: 10px; font-family: inherit; }
.fwx-chart__lbl--goal { fill: var(--fwx-good); font-weight: 700; }
.fwx-chart__line { fill: none; stroke: var(--fwx-ink); stroke-width: 2.5; stroke-linejoin: round; }
.fwx-chart__avg { fill: none; stroke: var(--fwx-accent); stroke-width: 3; stroke-linejoin: round; opacity: .9; }
.fwx-chart__goal { stroke: var(--fwx-good); stroke-width: 2; stroke-dasharray: 6 5; }
.fwx-chart__dot { fill: var(--fwx-bg); stroke: var(--fwx-ink); stroke-width: 2; }
.fwx-legend { font-size: 13px; color: var(--fwx-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.fwx-legend span { display: inline-block; width: 18px; height: 3px; background: var(--fwx-ink); margin-left: 8px; }
.fwx-legend .fwx-legend__avg { background: var(--fwx-accent); }
.fwx-legend .fwx-legend__goal { background: repeating-linear-gradient(90deg, var(--fwx-good) 0 6px, transparent 6px 10px); }
.fwx-legend .fwx-legend__line { margin-left: 0; }

/* printable sheets (screen preview) */
.fwx-sheet-preview { padding: 10px 20px 24px; background: var(--fwx-soft); border-top: 1px solid var(--fwx-line); overflow-x: auto; }
.fwx-sheet { background: #fff; color: #111; width: 100%; max-width: 820px; margin: 10px auto 0; padding: 36px 40px; box-shadow: 0 6px 24px rgba(0, 0, 0, .1); font-size: 13px; }
.fwx-sheet__head { border-bottom: 3px solid #111; margin-bottom: 16px; padding-bottom: 8px; }
.fwx-sheet__head h3 { margin: 0; font-size: 24px; }
.fwx-sheet__head p { margin: 4px 0 0; }
.fwx-sheet__meta { color: #444; }
.fwx-sheet__t { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.fwx-sheet__t th, .fwx-sheet__t td { border: 1px solid #999; padding: 8px; text-align: left; vertical-align: top; height: 46px; }
.fwx-sheet__t thead th { height: auto; background: #f1f1f1; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.fwx-sheet__t--habit th, .fwx-sheet__t--habit td { height: 28px; padding: 2px; font-size: 10px; text-align: center; }
.fwx-sheet__t--habit tbody th { text-align: left; padding: 2px 6px; font-size: 12px; min-width: 120px; }
.fwx-sheet__box { text-align: center !important; font-size: 18px; width: 52px; }
.fwx-sheet__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.fwx-sheet__grid div { border: 1px solid #999; height: 74px; padding: 4px 6px; font-size: 11px; font-weight: 700; }
.fwx-sheet__lines { margin: 14px 0 0; font-weight: 700; }
.fwx-sheet__rule { border-bottom: 1px solid #999; height: 26px; }
.fwx-sheet__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.fwx-sheet__foot { margin: 18px 0 0; font-size: 11px; color: #777; text-align: right; }

/* printing: only the chosen sheet or plan */
@media print {
	body.fwx-printing * { visibility: hidden !important; }
	body.fwx-printing .fwx-print-target, body.fwx-printing .fwx-print-target * { visibility: visible !important; }
	body.fwx-printing .fwx-print-target { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; padding: 0; box-shadow: none; }
	body.fwx-printing .fwx-print-target [data-player], body.fwx-printing .fwx-print-target .fwx-controls { display: none !important; }
	body.fwx-printing .fwx-print-title { display: block; }
	.fwx-day { break-inside: avoid; }
	@page { margin: 14mm; }
}
@media (max-width: 600px) {
	.fwx-sheet { padding: 18px; font-size: 11px; }
	.fwx-sheet__grid { grid-template-columns: repeat(5, 1fr); }
	.fwx-card-big { width: 150px; }
	.fwx-card-big__reps { font-size: 48px; }
	.fwx-steps li { flex-direction: column; gap: 4px; }
}
.fwx-player .fwx-controls { flex-wrap: nowrap; }
.fwx-player .fwx-btn--primary { min-width: 0; flex: 1 1 auto; max-width: 220px; }
@media (max-width: 640px) {
	.fwx-habits, .fwx-habits thead, .fwx-habits tbody { display: block; }
	.fwx-habits tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto auto; gap: 4px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--fwx-line); }
	.fwx-habits th, .fwx-habits td { border: 0; padding: 0; min-width: 0; }
	.fwx-habits thead th:first-child { display: none; }
	.fwx-habits thead th { font-size: 11px; }
	.fwx-habits tbody th { grid-column: 1 / -1; min-width: 0; }
	.fwx-habits .fwx-hcell { width: 100%; max-width: 42px; height: 36px; }
	.fwx-habits td:nth-last-child(2) { font-size: 12px; white-space: nowrap; padding: 0 2px; }
	.fwx-panel__head .fwx-panel__title { font-size: 15px; text-align: center; flex: 1 1 auto; }
	.fwx-panel__head .fwx-btn--ghost { padding: 6px 4px; }
}

/* ===== 1.4: pose video in the follow-along player ===== */
.fwx-player--video .fwx-player__stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #1a1a1a; border-radius: var(--fwx-radius); overflow: hidden; }
.fwx-player--video .fwx-face { border-radius: 0; margin: 0; justify-content: center; padding: 22px 18px; }
.fwx-player--video .fwx-face__time { font-size: clamp(2.8rem, 7vw, 4.6rem); }
.fwx-player--video .fwx-player__name { font-size: clamp(1.25rem, 3vw, 1.8rem); }
.fwx-player__media { position: relative; background: #000; aspect-ratio: 16 / 9; align-self: stretch; min-height: 100%; display: flex; align-items: center; justify-content: center; }
.fwx-player__media video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.fwx-player__media video[hidden] { display: none; }
.fwx-player__novideo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #2f4a3e, #141414 75%); }
.fwx-player__novideo span { font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 800; }
.fwx-player__novideo small { opacity: .7; font-size: 13px; }
.fwx-player__sound { position: absolute; left: 10px; bottom: 10px; appearance: none; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.fwx-player__sound[aria-pressed="true"] { background: var(--fwx-accent); color: #1d1600; }
@media (max-width: 760px) {
	.fwx-player--video .fwx-player__stage { grid-template-columns: 1fr; }
	.fwx-player__media { min-height: 0; }
}
.fwx-player__novideo[hidden] { display: none; }

/* ===== 1.5: flow / learn video modes ===== */
.fwx-player__modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.fwx-player__modehint { flex: 1 1 260px; font-size: 13px; color: var(--fwx-muted, #666); line-height: 1.4; }
.fwx-player__tag { position: absolute; left: 10px; top: 10px; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(0, 0, 0, .6); color: #fff; pointer-events: none; }
.fwx-player__tag[hidden], .fwx-player__tag:empty { display: none; }
.fwx-player[data-vmode="flow"] .fwx-player__sound { display: none; }
