:root {
  /* Light theme (default) */
  --bg: #FAF8F3;
  --card: #FFFFFF;
  --card-2: #F4EFE4;
  --line: #E6DFD0;
  --row-line: #EFE9DC;
  --ink: #17140F;
  --sub: #5F5646;
  --faint: #9A9080;
  --gold: #B8902F;
  --gold-light: #8F7332;
  --gold-deep: #D9BE7A;
  --gold-bg: #F7F1E1;
  --good: #2F8F6A;
  --good-bg: #E6F4EC;
  --bad: #B5443A;
  --bad-bg: #F9E8E6;
  --danger-line: #EFCFCB;
  --header-bg: rgba(250, 248, 243, .94);
  --btn-bg: #FFFFFF;
  --btn-border: #D9BE7A;
  --btn-hover: #F7F1E1;
  --btn-ink: #1A1507;
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0B0907;
  --card: #16120C;
  --card-2: #1E1809;
  --line: #2A2214;
  --row-line: #1d1810;
  --ink: #F2EBDC;
  --sub: #B5A88C;
  --faint: #6E6450;
  --gold: #C9A24B;
  --gold-light: #E6CC8F;
  --gold-deep: #8F7332;
  --gold-bg: #1E1809;
  --good: #4CAF8A;
  --good-bg: #13251D;
  --bad: #D4756C;
  --bad-bg: #2B1A16;
  --danger-line: #3a1f1b;
  --header-bg: rgba(11, 9, 7, .96);
  --btn-bg: #C9A24B;
  --btn-border: transparent;
  --btn-hover: #E6CC8F;
  --btn-ink: #0B0907;
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
[data-theme="dark"] .only-light { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
a { color: var(--gold-light); }
h1 { font-size: 1.6rem; font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5rem; color: var(--gold-light); }
.muted { color: var(--sub); }
.error { color: var(--bad); font-size: .9rem; }

.top { position: sticky; top: 0; z-index: 10; position: -webkit-sticky; position: sticky; display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.5rem; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top nav { display: flex; align-items: center; gap: 1.2rem; font-size: .92rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand img { display: block; }
.brand-name { font-weight: 700; letter-spacing: 2px; font-size: .95rem; text-transform: uppercase; }
.brand-tag { color: var(--faint); font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; padding-left: .7rem; border-left: 1px solid var(--line); }
.who { color: var(--sub); }
.flash { background: var(--gold-bg); border-bottom: 1px solid var(--gold-deep); color: var(--gold-light); padding: .6rem 1.5rem; font-size: .92rem; text-align: center; }

main { padding: 2rem 1.2rem 4rem; }
.narrow { max-width: 680px; margin: 0 auto; }
.login { max-width: 380px; margin-top: 2rem; text-align: center; }
.login-brand img { width: 220px; height: auto; border-radius: var(--radius); margin: 0 auto 1rem; display: block; }
.login form { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-top: 1.2rem; }

.stack { display: grid; gap: .9rem; }
label { display: grid; gap: .35rem; font-size: .85rem; color: var(--sub); font-weight: 500; }
label.inline { grid-auto-flow: column; justify-content: start; align-items: center; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--ink); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold-deep); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button { font: inherit; font-weight: 700; padding: .8rem 1.2rem; border: 1px solid var(--btn-border); border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-ink); cursor: pointer; min-height: 46px; }
button:hover { background: var(--btn-hover); }
button.linkish { background: none; border: 0; color: var(--sub); padding: 0; min-height: 0; font-weight: 600; font-size: .92rem; }
button.linkish:hover { background: none; color: var(--gold-light); }
button.danger { color: var(--bad); }

.course-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.course-list a { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.course-list a:hover { border-color: var(--gold-deep); }
.course-list h2 { color: var(--ink); font-size: 1.15rem; }
.course-list p { margin: 0 0 .9rem; color: var(--sub); font-size: .95rem; }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: .45rem; }
.bar span { display: block; height: 100%; background: var(--gold); }
small { color: var(--sub); }

.lesson-list { list-style: none; padding: 0; margin: 1.5rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.lesson-list a { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.2rem; color: inherit; text-decoration: none; }
.lesson-list a:hover { background: var(--gold-bg); }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gold-deep); flex: none; }
.done .check { border-color: var(--gold); background: var(--gold); }
.name { flex: 1; font-weight: 500; }
.dur { color: var(--faint); font-size: .85rem; }

.theater { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.6rem; max-width: 1180px; margin: 0 auto; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-head { margin-top: 1.3rem; }
.lesson-head h1 { font-size: 1.4rem; }
.lesson-head form { margin-top: .6rem; }
.crumb { margin: 0 0 .3rem; color: var(--faint); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.crumb a { color: var(--sub); text-decoration: none; }
.notes { white-space: pre-line; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1rem; color: var(--sub); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.pager a { display: inline-block; background: var(--gold-bg); border: 1px solid var(--gold-deep); border-radius: var(--radius-sm); padding: .7rem 1rem; color: var(--gold-light); text-decoration: none; font-weight: 600; font-size: .92rem; }
.playlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; align-self: start; }
.playlist h2 { font-size: .75rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sub); margin-bottom: .6rem; }
.playlist ol { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.playlist li { counter-increment: n; }
.playlist li a { display: flex; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; color: var(--sub); text-decoration: none; font-size: .92rem; }
.playlist li a::before { content: counter(n); color: var(--faint); min-width: 1.3em; font-weight: 600; }
.playlist li.done a::before { content: "✓"; color: var(--good); }
.playlist li.current a { background: var(--gold-bg); border: 1px solid var(--gold-deep); color: var(--gold-light); font-weight: 600; }

.admin { max-width: 1100px; margin: 0 auto; }
.callout { background: var(--gold-bg); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 1rem 1.4rem; margin: 1rem 0 2rem; color: var(--gold-light); font-size: .92rem; }
.callout ol { margin: .4rem 0 0; padding-left: 1.2rem; }
code { background: var(--card-2); color: var(--gold-light); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
summary { cursor: pointer; }
details > ol { padding-left: 1.2rem; }

@media (max-width: 860px) {
  .theater { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .brand-tag { display: none; }
  .top { padding: .7rem 1rem; }
}

.module { margin-top: 2rem; }
.module-head { display: flex; align-items: baseline; gap: .8rem; }
.module-head h2 { color: var(--ink); flex: 1; margin: 0; }
.module-num { color: var(--gold); font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.module-desc { margin: .3rem 0 0; font-size: .95rem; }
.module .lesson-list { margin-top: .8rem; }
.lesson-list li.empty { padding: .9rem 1.2rem; font-size: .92rem; }
.playlist details + details { margin-top: .6rem; }
.playlist summary { list-style: none; cursor: pointer; padding: .4rem .3rem; font-weight: 600; color: var(--ink); font-size: .92rem; display: flex; flex-direction: column; gap: .1rem; }
.playlist summary::-webkit-details-marker { display: none; }
.playlist details[open] summary { color: var(--gold-light); }
.playlist ol { margin-top: .2rem; }
.module-row { margin-top: 1rem; border-bottom: 1px solid var(--gold-deep); }

/* Admin */
.admin-nav { display: flex; gap: .3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: .6rem 1rem; color: var(--sub); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a.on { color: var(--gold-light); border-bottom-color: var(--gold); }
.admin-nav .view-site { margin-left: auto; font-weight: 500; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 .8rem; }
.admin-head h1, .admin-head h2 { margin: 0; }
.admin .crumb { margin-bottom: 1rem; }
.program-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.program-card { margin: 0; display: flex; flex-direction: column; }
.program-card h2 { color: var(--ink); }
.program-card p { margin: 0 0 .6rem; }
.program-card .stats { color: var(--faint); font-size: .85rem; flex: 1; }
.program-card.new { border-style: dashed; border-color: var(--gold-deep); }
.btn { display: inline-block; text-align: center; background: var(--btn-bg); border: 1px solid var(--btn-border); color: var(--btn-ink); border-radius: var(--radius-sm); padding: .7rem 1.1rem; font-weight: 700; text-decoration: none; font-size: .92rem; }
.btn.ghost { background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--gold-deep); }
.actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.help { background: var(--gold-bg); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: .8rem 1.2rem; margin-bottom: 1.2rem; font-size: .9rem; color: var(--gold-light); }
.help summary { cursor: pointer; font-weight: 600; }
.help p { margin: .6rem 0 0; color: var(--sub); }
.module-card { padding: 1rem 1.2rem; }
.module-bar, .session-bar { display: flex; align-items: center; gap: .5rem; }
.module-bar strong { font-size: 1.05rem; }
.grow { flex: 1; min-width: 0; }
button.icon { background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--line); min-height: 0; padding: .25rem .6rem; font-weight: 600; border-radius: 8px; }
button.icon:disabled { opacity: .3; cursor: default; }
details.edit, details.add { margin: .4rem 0 0; }
details.edit summary, details.add summary { cursor: pointer; color: var(--sub); font-size: .88rem; font-weight: 600; padding: .3rem 0; }
details.add summary { color: var(--gold-light); }
details.edit[open] summary, details.add[open] summary { color: var(--gold-light); }
details.edit form.stack, details.add form.stack { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-top: .4rem; }
.inline-form { margin-top: .5rem; }
.session-list { list-style: none; padding: 0; margin: .8rem 0 0; }
.session-list > li { border-top: 1px solid var(--line); padding: .7rem 0; }
.member-list { list-style: none; padding: 0; margin: 0; }
.member-list.cards { display: grid; gap: .8rem; }
.member-list .row { border-bottom: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.enroll-row { display: flex; gap: .6rem; margin-top: .8rem; }
.enroll-row select { flex: 1; }
.pill { display: inline-block; background: var(--gold-bg); border: 1px solid var(--gold-deep); color: var(--gold-light); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }
.small { font-size: .85rem; }
.danger-zone { margin-top: 2rem; border: 1px solid var(--danger-line); border-radius: var(--radius); padding: .8rem 1.2rem; }
.danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 600; }
.danger-btn { background: var(--bad); border-color: var(--bad); color: #fff; }
.danger-btn:hover { opacity: .85; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } .admin-nav .view-site { display: none; } }

/* Members table */
.admin.wide { max-width: 1240px; }
.add-member { padding: .9rem 1.4rem; }
.add-member summary { cursor: pointer; font-weight: 600; color: var(--gold-light); }
.add-member form { margin-top: 1rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0 .8rem; }
.filters a { padding: .4rem .9rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--faint); text-decoration: none; font-weight: 600; font-size: .85rem; }
.filters a span { color: var(--sub); margin-left: .3rem; }
.filters a.on { background: var(--gold-bg); border-color: var(--gold-deep); color: var(--gold-light); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.members { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.members th { text-align: left; color: var(--sub); font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; padding: .8rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.members td { padding: .7rem .8rem; border-bottom: 1px solid var(--row-line); vertical-align: top; }
table.members tr.edit-row td { background: var(--bg); padding: 1rem; }
.pill.active { background: var(--good-bg); color: var(--good); border-color: transparent; }
.pill.disabled, .pill.expired { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.pill.admin { margin-left: .3rem; }
.exp { display: flex; gap: .4rem; align-items: center; }
.exp input[type=date] { padding: .3rem .5rem; font-size: .85rem; width: 150px; }
.acts { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.acts form { margin: 0; }
button.icon.ok { color: var(--good); border-color: var(--good); }
button.icon.warn { color: var(--bad); border-color: var(--danger-line); }
.code-box { background: var(--gold-bg); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: 1.2rem; color: var(--gold-light); }
.code-box .code { font-size: 2.2rem; font-weight: 700; letter-spacing: .3em; margin: .4rem 0; color: var(--gold); }
.code-box p { margin: 0; color: var(--sub); }
.enroll-block { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--gold-bg); border: 1px solid var(--gold-deep); border-radius: 999px; padding: .2rem .4rem .2rem .8rem; font-size: .85rem; color: var(--gold-light); margin: 0; }
.chip button { font-size: 1rem; line-height: 1; }
.enroll-block .enroll-row { margin: 0; }
.login .small { margin-top: 1rem; }

/* Images */
.cover { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.course-list a.has-cover { padding-top: 1rem; }
.hero { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); margin: 1rem 0 1.4rem; border: 1px solid var(--line); }
.module-banner { display: block; width: 100%; aspect-ratio: 21 / 6; object-fit: cover; border-radius: 12px; margin-top: .8rem; border: 1px solid var(--line); }
.mini { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid var(--line); }
.playlist li a .mini { width: 56px; }
.playlist li a span { flex: 1; }
.image-field { display: grid; gap: .5rem; }
.image-field .thumb { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.image-field input[type=file] { padding: .5rem; font-size: .9rem; }

/* Completion + progress */
.progress-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.progress-row .bar { flex: 1; margin: 0; }
.progress-row .pct { color: var(--gold-light); font-weight: 600; min-width: 3ch; text-align: right; }
.progress-row.big { margin: 1rem 0 .3rem; }
.progress-row.big .bar { height: 8px; }
.progress-row.small { margin-top: .8rem; max-width: 420px; }
.progress-row.small .pct { font-weight: 500; font-size: .85rem; min-width: 0; white-space: nowrap; }
.complete-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.status { display: none; margin: 0; color: var(--good); font-weight: 600; }
.status.is-done { display: inline-flex; align-items: center; gap: .4rem; }
.status .tick { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff; align-items: center; justify-content: center; font-size: .85rem; }
.complete-row form { margin: 0; }


/* Field report */
.report-page h1 { margin-bottom: .3rem; }
.report-form textarea { min-height: 160px; width: 100%; }
.report-actions { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
button.mic { background: var(--card); color: var(--gold-light); border: 1px solid var(--gold-deep); font-weight: 600; }
button.mic .mic-icon { color: var(--gold); font-size: .7rem; vertical-align: middle; }
button.mic.on { border-color: var(--bad); }
button.mic.on .mic-icon { color: var(--bad); animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.rec-panel { background: var(--card); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.rec-top { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--bad); }
.rec-top .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: pulse 1s infinite; }
.rec-panel.paused .rec-dot { animation: none; opacity: .3; }
.rec-panel.paused .rec-top { color: var(--sub); }
.rec-top #rec-time { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500; }
.rec-text { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: .7rem 0; min-height: 60px; max-height: 180px; overflow-y: auto; line-height: 1.5; }
.rec-btns { display: flex; gap: .6rem; }
.rec-btns button { flex: 1; }
.ghost-btn { background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--gold-deep); font-weight: 600; }
.ghost-btn.danger-text { color: var(--bad); border-color: var(--danger-line); background: var(--bad-bg); }
.report-result { margin-top: 1.2rem; }
.report-body h2 { color: var(--gold); font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; margin: 1.3rem 0 .4rem; }
.report-body h2:first-child { margin-top: 0; }
.report-body h3 { color: var(--gold-light); font-size: 1rem; margin: 1rem 0 .3rem; }
.report-body p { margin: 0 0 .7rem; }
.report-body ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.report-body li { margin-bottom: .3rem; }
.past-head { margin-top: 2rem; color: var(--sub); font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; }
.report-list { list-style: none; padding: 0; margin: .6rem 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.report-list li + li { border-top: 1px solid var(--line); }
.report-list a { display: flex; gap: 1rem; padding: .8rem 1.1rem; color: inherit; text-decoration: none; }
.report-list a:hover { background: var(--gold-bg); }
.report-list .date { color: var(--faint); font-size: .85rem; white-space: nowrap; }
.report-list .snippet { color: var(--sub); font-size: .92rem; }
.input-recap { padding: .8rem 1.2rem; margin-bottom: 1rem; }
.input-recap summary { cursor: pointer; font-weight: 600; color: var(--sub); font-size: .9rem; }
.notes-text { white-space: pre-line; margin: .6rem 0 0; color: var(--sub); }
.chat { display: grid; gap: .6rem; margin-top: 1.2rem; }
.msg { max-width: 85%; padding: .7rem 1rem; border-radius: 14px; line-height: 1.5; }
.msg.me { justify-self: end; background: var(--gold-bg); border: 1px solid var(--gold-deep); color: var(--gold-light); border-bottom-right-radius: 4px; }
.msg.coach { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.coach p:last-child { margin-bottom: 0; }
.followup { display: flex; gap: .6rem; margin-top: 1rem; }
.followup input { flex: 1; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; }
.small-btn { padding: .35rem .7rem; font-size: .82rem; }
.pager-links { display: flex; gap: .4rem; margin-top: 1rem; }
.pager-links a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--sub); }
.pager-links a.on { border-color: var(--gold-deep); color: var(--gold-light); }

.share-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.share-row .btn, .share-row button { font-size: .9rem; padding: .6rem 1rem; min-height: 0; }
.sr-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Mobile header */
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 38px; min-height: 0; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--gold-light); border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .top { position: sticky; top: 0; z-index: 30; padding: .6rem 1rem; }
  .brand img { width: 30px; height: 32px; }
  .brand-name { font-size: .85rem; letter-spacing: 1.5px; }
  .burger { display: flex; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); background: var(--card); border-bottom: 1px solid var(--gold-deep); flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0 .6rem; }
  .nav-open .top nav { display: flex; }
  .top nav a, .top nav .who, .top nav form { padding: .8rem 1.2rem; }
  .top nav a { text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
  .top nav .who { color: var(--faint); font-size: .85rem; border-bottom: 1px solid var(--line); }
  .top nav form button.linkish { color: var(--gold-light); }
  .flash { font-size: .88rem; }
}
.burger, .burger:hover { background: var(--card); }

/* Documents */
.doc-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 .4rem; border-radius: 6px; background: var(--gold-bg); border: 1px solid var(--gold-deep); color: var(--gold-light); font-size: .68rem; font-weight: 700; letter-spacing: 1px; flex: none; }
.doc-icon.big { min-width: 64px; height: 36px; font-size: .9rem; }
.doc-hero { aspect-ratio: 16 / 7; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; }
.docs { margin-top: 1.2rem; }
.docs h2 { font-size: .75rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sub); margin-bottom: .5rem; }
.doc-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-name { flex: 1; color: var(--ink); text-decoration: none; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-name:hover { color: var(--gold-light); }
.doc-dl { color: var(--sub); text-decoration: none; font-weight: 700; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 8px; }
.doc-admin-list { list-style: none; padding: 0; margin: -.3rem 0 0; display: grid; gap: .3rem; }
.doc-admin-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.doc-admin-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-page { max-width: 1180px; margin: 0 auto; }
.viewer-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.viewer-bar .crumb { margin: 0; }
.doc-title { display: flex; align-items: center; gap: .6rem; font-weight: 600; min-width: 0; }
.viewer-frame { background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 190px); min-height: 480px; }
.viewer-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 760px) { .viewer-frame { height: calc(100vh - 170px); min-height: 360px; } }

/* Theme toggle */
.theme-toggle { background: var(--card); border: 1px solid var(--line); border-radius: 999px; width: 38px; height: 38px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 1rem; flex: none; }
.theme-toggle:hover { background: var(--gold-bg); }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: inline; }
.top-right { display: flex; align-items: center; gap: .6rem; }
.login-brand img { border-radius: var(--radius); }
@media (max-width: 760px) { .theme-toggle { width: 34px; height: 34px; } }
.top-right nav { order: 1; } .theme-toggle { order: 2; } .burger { order: 3; }

.desc { white-space: pre-line; }
.fallback { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 2rem 1.4rem; margin-top: 1rem; }
.fallback p { margin: 0; max-width: 440px; }
.fallback .actions { margin-top: .4rem; }
@media (max-width: 760px) {
  .viewer-bar { gap: .5rem; }
  .viewer-bar .crumb { width: 100%; }
  .viewer-bar .doc-title { width: 100%; }
  .viewer-bar .doc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .viewer-bar .doc-title .doc-icon { vertical-align: middle; margin-right: .3rem; }
}

/* Collapsible modules + play buttons */
details.module { margin-top: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
details.module summary { list-style: none; cursor: pointer; display: block; }
details.module summary::-webkit-details-marker { display: none; }
details.module .module-banner { margin: 0; border: 0; border-radius: 0; aspect-ratio: 21 / 7; display: block; }
details.module .module-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem .6rem; }
.module-titles { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.module-titles h2 { margin: 0; color: var(--ink); font-size: 1.1rem; }
details.module .module-head small { white-space: nowrap; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(45deg); transition: transform .2s; margin: 0 .3rem 0 .2rem; flex: none; }
details.module[open] .chev { transform: rotate(-135deg); margin-top: .4rem; }
.module-bar-line { margin: 0 1.2rem .9rem; height: 4px; }
details.module .module-desc { margin: 0 1.2rem .6rem; }
details.module .lesson-list { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
details.module summary:hover .module-head { background: var(--gold-bg); }
details.module.complete .module-num { color: var(--good); }
.play { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--btn-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.play svg { display: block; margin-left: 1px; }
.lesson-list .done .play { background: var(--good); color: #fff; }
.lesson-list a:hover .play { transform: scale(1.08); }
.lesson-list .done .name { color: var(--sub); }
[data-theme="dark"] .play { color: #0B0907; }

/* Video poster */
.poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: #000; cursor: pointer; display: block; border-radius: 0; min-height: 0; transition: opacity .3s; z-index: 2; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%); }
.poster-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: rgba(201,162,75,.95); color: #0B0907; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .15s, background .15s; z-index: 1; }
.poster-play svg { margin-left: 4px; }
.poster:hover .poster-play { transform: translate(-50%, -50%) scale(1.07); background: #E6CC8F; }
.poster-dur { position: absolute; right: 14px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; font-weight: 600; padding: .25rem .55rem; border-radius: 6px; z-index: 1; }
.poster.hide { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .poster-play { width: 64px; height: 64px; } .poster-play svg { width: 24px; height: 24px; } }

details.module .module-desc { margin: -.2rem 1.2rem .8rem; font-size: .95rem; }
.module-toggle { display: block; padding: 0 1.2rem .9rem; font-size: .82rem; font-weight: 600; color: var(--gold-light); letter-spacing: .5px; }
.module-toggle .when-open, details.module[open] .module-toggle .when-closed { display: none; }
details.module[open] .module-toggle .when-open { display: inline; }
.module-bar-line { margin: 0 1.2rem .6rem; }

.link-row { display: flex; gap: .5rem; margin: .5rem 0; }
.link-row input { flex: 1; font-size: .85rem; }
.link-row button { min-height: 0; padding: .5rem 1rem; }
.pill.invited { background: var(--gold-bg); color: var(--gold-light); border-color: transparent; }

/* Steel Coach: highlighted "Use Steel" entry points */
.top nav a.use-steel { background: var(--gold); color: #0B0907; text-decoration: none; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(184, 144, 47, .35); }
.top nav a.use-steel:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .top nav a.use-steel { margin: .3rem 1rem .5rem; padding: .8rem 1.2rem; text-align: center; border-bottom: 0; color: #0B0907; }
}
/* "Your services" section (same card look as programs) */
.services-title { margin-top: 2.5rem; }
.course-list a.service-card { display: flex; align-items: center; gap: 1.1rem; }
.service-icon { flex: none; object-fit: contain; }
.service-body { flex: 1; min-width: 0; display: block; }
.service-body p { margin: 0; }
.steel-go { flex: none; background: var(--gold); color: #0B0907; font-weight: 700; padding: .65rem 1.1rem; border-radius: 999px; white-space: nowrap; font-size: .92rem; }
@media (max-width: 560px) {
  .course-list a.service-card { flex-wrap: wrap; }
  .service-body { flex-basis: calc(100% - 44px - 1.1rem); }
  .steel-go { flex-basis: 100%; text-align: center; }
}


/* Subscriptions: plan picker, pay button, billing cards */
.plans { display: grid; gap: 1rem; margin: 1.5rem 0; }
.plan { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: var(--gold-bg); }
.plan input { width: auto; margin-top: .35rem; accent-color: var(--gold); }
.plan-body { display: flex; flex-direction: column; gap: .2rem; }
.plan-price { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.plan-price small { font-size: .85rem; font-weight: 500; color: var(--sub); margin-left: .2rem; }
.save { display: inline-block; background: var(--good-bg); color: var(--good); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; padding: .1rem .5rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }
.pay-btn, a.pay-btn { display: inline-block; width: 100%; text-align: center; background: var(--gold); color: #0B0907; border: 0; border-radius: 999px; padding: .9rem 1.2rem; font-weight: 700; text-decoration: none; min-height: 48px; }
.pay-btn:hover { background: var(--gold); filter: brightness(1.07); }
.pay-btn:disabled { opacity: .6; cursor: default; }
.bill-card { margin: 0; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.bill-row h2 { margin: 0; color: var(--ink); }
.bill-card p { margin: .35rem 0 0; }
.bill-actions { margin-top: .8rem; }
.service-card .steel-go.subscribe { background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--gold-deep); }

/* Accountability */
.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ms-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0 1.5rem; }
.ms-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .6rem; text-align: center; }
.ms-stat strong { display: block; font-size: 1.4rem; color: var(--gold-light); }
.ms-stat span { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }
.ms-h2 { margin-top: 2rem; color: var(--ink); }
.ms-item { display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.ms-item-top { display: flex; justify-content: space-between; gap: .5rem; }
.ms-check { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.ms-check input { width: 22px; height: 22px; accent-color: var(--gold); }
.ms-num { display: flex; align-items: center; gap: .6rem; }
.ms-num input { max-width: 9rem; }
.ms-mood { display: grid; grid-template-columns: repeat(10, 1fr); gap: .3rem; }
.ms-mood label { position: relative; }
.ms-mood input { position: absolute; opacity: 0; inset: 0; }
.ms-mood span { display: block; text-align: center; padding: .55rem 0; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.ms-mood input:checked + span { background: var(--gold); border-color: var(--gold); color: #0B0907; }
.ms-mood input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ms-note { border-color: var(--gold-deep); background: var(--gold-bg); }
.ms-note p { white-space: pre-line; margin: .4rem 0 0; }
.ms-days { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .4rem; }
.ms-days li { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; flex-wrap: wrap; }
.ms-day { min-width: 6.5rem; font-weight: 600; }
.ms-score { min-width: 3.2rem; font-weight: 700; }
.ms-score.good { color: var(--good); } .ms-score.mid { color: var(--gold-light); } .ms-score.low { color: var(--bad); }
.ms-reminder { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ms-reminder label { flex: 1; min-width: 10rem; }
.ms-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.ms-area legend { padding: 0 .3rem; }
.ms-area { margin: 0; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
@media (max-width: 560px) {
  .ms-stats { grid-template-columns: repeat(2, 1fr); }
  .ms-row { grid-template-columns: 1fr 1fr; }
  .ms-mood { grid-template-columns: repeat(5, 1fr); }
}
.trial-box { margin: 1.5rem 0 .5rem; display: flex; flex-direction: column; gap: .5rem; border-color: var(--gold-deep); background: var(--gold-bg); }
.trial-box p { margin: 0; }

/* Food log */
.food-daynav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1rem; }
.food-daynav a { text-decoration: none; font-size: 1.4rem; padding: 0 .6rem; }
.food-totals { display: flex; flex-direction: column; gap: .55rem; }
.food-bar { display: grid; grid-template-columns: 4.8rem 1fr auto; align-items: center; gap: .7rem; }
.food-bar .bar { margin: 0; }
.food-bar .lbl { font-size: .85rem; color: var(--sub); }
.food-bar strong { font-size: .9rem; white-space: nowrap; }
.food-totals .good, .members td.good { color: var(--good); } .food-totals .low, .members td.low { color: var(--bad); }
.food-remaining { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.food-remaining .module-num { width: 100%; }
.food-advice { margin: .3rem 0 0; background: var(--gold-bg); border: 1px solid var(--gold-deep); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .92rem; }
.food-log { margin-top: 1rem; }
.food-previews { display: flex; gap: .5rem; flex-wrap: wrap; }
.food-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.food-entry h2 { color: var(--ink); margin: .2rem 0 .6rem; }
.food-items { font-size: .85rem; }
.food-items td:not(:first-child), .food-items th:not(:first-child) { text-align: right; white-space: nowrap; }
.food-items .food-sum td { font-weight: 700; border-bottom: 0; }
.food-q { margin: .4rem 0 0; }
.food-fix { margin-top: .6rem; }
.food-actions { display: flex; gap: 1.2rem; margin-top: .6rem; }
.food-card { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--ink); margin: 0 0 .5rem; }
.food-card:hover { border-color: var(--gold-deep); }
.ms-note-text { white-space: pre-line; background: var(--gold-bg); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.food-targets { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
@media (max-width: 560px) { .food-targets { grid-template-columns: 1fr 1fr; } .food-bar { grid-template-columns: 4rem 1fr; } .food-bar strong { grid-column: 1 / -1; } }
.report-tabs { margin-top: 1rem; }
.manual-form { grid-template-columns: repeat(3, 1fr); align-items: end; }
@media (max-width: 760px) { .manual-form { grid-template-columns: 1fr; } }

/* Accountability plan editor */
.ms-edit { display: grid; gap: .5rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.ms-edit:last-child { border-bottom: 0; }
.ms-edit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.ms-edit-flags { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.ms-edit-flags .ms-check { font-weight: 500; }
.ms-remove { color: var(--bad); }
.ms-locked { opacity: .85; }
.ms-add-label { margin: .6rem 0 0; text-transform: uppercase; letter-spacing: 1px; font-size: .7rem; }
.ms-template { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ms-template > div { flex: 1; min-width: 14rem; }
.ms-template p { margin: .3rem 0 0; }
.ms-ticks { display: grid; gap: .5rem; }
.ms-ticks small { margin-left: auto; }
.ms-week td.good { color: var(--good); }
@media (max-width: 640px) { .ms-edit-grid { grid-template-columns: 1fr 1fr; } }
.ms-area { min-width: 0; }
.ms-edit-grid > label, .ms-edit label { min-width: 0; }
.ms-edit input, .ms-edit select { width: 100%; max-width: 100%; box-sizing: border-box; }
.ms-edit .ms-check input { width: 18px; }
.ms-edit-wrap { border-bottom: 1px dashed var(--line); padding: .7rem 0; }
.ms-edit-wrap summary { cursor: pointer; list-style: none; }
.ms-edit-wrap summary::-webkit-details-marker { display: none; }
.ms-edit-wrap summary::before { content: '›'; display: inline-block; width: 1rem; color: var(--gold); transition: transform .15s; }
.ms-edit-wrap[open] summary::before { transform: rotate(90deg); }
.ms-edit-wrap .ms-edit { border-bottom: 0; padding-bottom: 0; }

/* Services catalog */
.catalog { max-width: 1080px; margin: 0 auto; }
.catalog-hero { max-width: 720px; margin-bottom: 1.5rem; }
.catalog-hero h1 { margin: .2rem 0 .5rem; }
.catalog-group { margin: 2.2rem 0 .9rem; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.catalog-group small { font-size: .85rem; font-weight: 400; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
a.catalog-card { position: relative; display: flex; flex-direction: column; gap: .5rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.2rem 1.2rem; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.catalog-card:hover { border-color: var(--gold); transform: translateY(-2px); }
a.catalog-card.featured { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep) inset; }
a.catalog-card.owned { background: var(--gold-bg); }
.catalog-card h3 { margin: 0; font-size: 1.1rem; }
.catalog-card .desc { margin: 0; color: var(--muted); }
.catalog-bundle { margin: 0; font-size: .85rem; color: var(--gold-light); }
.catalog-price { margin-top: auto; padding-top: .4rem; }
.catalog-price strong { font-size: 1.35rem; }
.catalog-price .good { color: var(--good); }
.catalog-card .steel-go { align-self: flex-start; margin-top: .4rem; }
.catalog-flag { position: absolute; top: -.6rem; right: 1rem; background: var(--gold); color: #0B0907; font-size: .68rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.catalog-flag.owned { background: var(--good); color: #fff; }
.catalog-foot { margin-top: 2rem; }
.explore-card { display: flex; flex-direction: column; gap: .35rem; margin-top: 2rem; border-color: var(--gold-deep); text-decoration: none; color: var(--ink); }
.explore-card h2 { margin: 0; }
.explore-card p { margin: 0; }
.explore-card .steel-go { align-self: flex-start; margin-top: .5rem; }
.see-all { margin-top: 1rem; }
.small-title { font-size: 1.1rem; }
.mine-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.guest-nav { display: flex; gap: 1rem; align-items: center; order: 1; }
.guest-nav .guest-signin { font-weight: 600; }
.upsell { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 1.2rem; border-color: var(--gold-deep); background: var(--gold-bg); }
.upsell p { margin: .2rem 0 0; }
@media (max-width: 760px) {
  .top nav.guest-nav { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; gap: .8rem; }
  .top nav.guest-nav a { padding: 0; border: 0; font-size: .88rem; }
}
.catalog-card .steel-go, .explore-card .steel-go, .upsell .steel-go { flex-basis: auto; }
@media (max-width: 760px) { .catalog-card .steel-go, .explore-card .steel-go { align-self: stretch; text-align: center; } }
.features { font-size: .92rem; }
.features ul { margin: .2rem 0 .5rem; padding-left: 1.1rem; }
.features li { margin: .15rem 0; }
.features li::marker { color: var(--gold); }
.features-title { margin: .5rem 0 0; font-weight: 600; }
.addon-box { display: flex; gap: .8rem; align-items: flex-start; border-color: var(--gold-deep); cursor: pointer; }
.addon-box input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--gold); flex: none; }
.apply-form .ms-row { grid-template-columns: repeat(3, 1fr); }
.lead summary { cursor: pointer; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lead-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.lead-form input { flex: 1; min-width: 12rem; }
.lead-form select { width: auto; }
@media (max-width: 640px) { .apply-form .ms-row { grid-template-columns: 1fr; } }
.catalog-call { margin: .8rem 0 0; }
.apply-form label { min-width: 0; } .apply-form input, .apply-form select, .apply-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }

/* ---------- Accountability Tracker: one-tap UI ---------- */
.tk { padding-bottom: 2rem; }
.tk-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .8rem; }
.tk-top h1 { margin: 0; }
.tk-date { margin: 0; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.tk-hero { display: flex; align-items: center; gap: 1.1rem; }
.tk-ring { width: 84px; height: 84px; flex: none; transform: rotate(-90deg); }
.tk-ring circle { fill: none; stroke-width: 8; }
.tk-ring-bg { stroke: var(--line); }
.tk-ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.tk-hero-text { display: flex; flex-direction: column; gap: .25rem; }
.tk-hero-text strong { font-size: 1.25rem; }
.tk-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.tk-chip { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--gold-deep); }
.tk-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 1.2rem 0 1rem; position: sticky; top: 64px; z-index: 5; }
.tk-tabs button { background: none; border: 0; border-radius: 999px; padding: .55rem .4rem; font-weight: 600; color: var(--muted); min-height: 0; cursor: pointer; }
.tk-tabs button.on { background: var(--gold); color: #0B0907; }
.tk-food { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); border-color: var(--gold-deep); }
.tk-food span:last-child { display: flex; flex-direction: column; }
.tk-food-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold); color: #0B0907; font-size: 1.6rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.tk-area { margin: 1.4rem 0 .5rem; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.tk-list { padding: 0; overflow: hidden; }
.tk-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; width: 100%; padding: .95rem 1rem; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font: inherit; min-height: 0; border-radius: 0; }
.tk-row:last-child { border-bottom: 0; }
.tk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.tk-main strong { font-size: 1rem; }
.tk-note { font-size: .75rem; }
button.tk-toggle { cursor: pointer; }
.tk-check { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: all .15s; }
.tk-row.met .tk-check { background: var(--gold); border-color: var(--gold); }
.tk-row.met .tk-check::after { content: ''; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #0B0907; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tk-row.met strong { color: var(--gold-light); }
.tk-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: .25rem; }
.tk-bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .3s; }
.tk-stepper { display: flex; align-items: center; gap: .35rem; flex: none; }
.tk-stepper input { width: 4.6rem; text-align: center; padding: .45rem .3rem; min-height: 0; }
.tk-btn { min-height: 40px; min-width: 40px; padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #0B0907; font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.tk-btn.ghost { background: var(--gold-bg); color: var(--gold-light); border-color: var(--gold-deep); }
.tk-log { flex-basis: 100%; font-size: .9rem; }
.tk-chipgrid { display: flex; flex-wrap: wrap; gap: .5rem; }
.tk-sup { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; min-height: 0; }
.tk-tick { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.tk-sup.on { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-light); }
.tk-sup.on .tk-tick { background: var(--gold); border-color: var(--gold); }
.tk-saved { min-height: 1.2em; text-align: center; margin: .6rem 0 0; }
.tk-finish { margin-top: 1.4rem; border-color: var(--gold-deep); display: flex; flex-direction: column; gap: .5rem; }
.tk-finish h2 { margin: 0; }
.tk-finish details textarea { margin-top: .4rem; }
.tk-remind { margin-top: 1.4rem; }
.tk-remind summary { cursor: pointer; }
@media (max-width: 520px) {
  .tk-num .tk-stepper { flex-basis: 100%; justify-content: flex-end; }
  .tk-stepper input { flex: 1; max-width: 7rem; }
}
.start-choices { display: grid; gap: 1.2rem; margin: 1.4rem 0; }
.start-choice { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.start-choice.featured { border-color: var(--gold); }
.start-choice h2 { margin: 0; font-size: 1.25rem; }
.start-choice .ticks { margin: .3rem 0 .6rem; }
.ghost-pay { background: var(--gold-bg) !important; color: var(--gold-light) !important; border: 1px solid var(--gold-deep) !important; }
.center { text-align: center; }
.tk-row.tk-toggle { padding: 0; }
.tk-hit { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .95rem 1rem; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-height: 0; border-radius: 0; }
.tk-row.tk-toggle .tk-log { margin: 0 1rem .9rem; flex-basis: calc(100% - 2rem); }
.tk-hero { transition: background .3s, border-color .3s; }
.tk-hero.all-done { background: var(--gold-bg); border-color: var(--gold); }
.tk-hero.pop { animation: tk-pop .6s ease; }
@keyframes tk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.tk-yest { margin-bottom: .8rem; }
.tk-yest-link { display: inline-block; margin-bottom: .6rem; }
ul.ticks { list-style: none; padding: 0; margin: .4rem 0; }
ul.ticks li { position: relative; padding-left: 1.4rem; margin: .3rem 0; }
ul.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 .22rem var(--gold-bg); }
.tk-install { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; position: relative; }
.tk-install img { border-radius: 10px; flex: none; }
.tk-install > div { flex: 1; display: flex; flex-direction: column; }
.tk-x { background: none; border: 0; color: var(--muted); font-size: 1.3rem; padding: 0 .2rem; min-height: 0; cursor: pointer; }
/* "What do you want to work on?" */
.pick { padding-bottom: 6rem; }
.pick-area { margin-top: 1rem; }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.pick-head strong { font-size: 1.05rem; }
.pick-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick-chip { position: relative; cursor: pointer; }
.pick-chip input { position: absolute; opacity: 0; inset: 0; }
.pick-chip > span { display: flex; flex-direction: column; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: all .15s; }
.pick-chip strong { font-size: .92rem; }
.pick-chip small { font-size: .72rem; color: var(--muted); }
.pick-chip input:checked + span { background: var(--gold-bg); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pick-chip input:checked + span strong { color: var(--gold-light); }
.pick-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick-chip.owned { opacity: .6; cursor: default; }
.pick-own { margin-top: .7rem; width: 100%; box-sizing: border-box; font-size: .9rem; }
.pick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem max(1rem, calc((100vw - 720px) / 2)); background: var(--card); border-top: 1px solid var(--gold-deep); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.pick-bar .pay-btn { width: auto; margin: 0; padding: .7rem 1.4rem; }
.pick-bar .pay-btn:disabled { opacity: .45; }
.pick-template { margin-top: 1.4rem; }

/* ---------- Guided Field Report ---------- */
.fr { padding-bottom: 2rem; }
.fr-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: .4rem 0 .5rem; }
.fr-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.fr-step-label { margin: 0 0 .8rem; }
.fr-step { display: flex; flex-direction: column; gap: 1rem; }
.fr-step h1 { margin: 0; font-size: 1.5rem; }
.fr-step .module-num { margin: 0; }
.fr-q { display: flex; flex-direction: column; gap: .35rem; }
.fr-label { font-weight: 600; }
.fr-field { position: relative; display: block; }
.fr-field textarea { width: 100%; box-sizing: border-box; padding-bottom: 2.8rem; }
.fr-mic { position: absolute; right: .5rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .4rem; min-height: 0; padding: .35rem .75rem;
  border-radius: 999px; border: 1px solid var(--gold-deep); background: var(--gold-bg); color: var(--gold-light); font-weight: 600; font-size: .82rem; cursor: pointer; }
.fr-mic-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.fr-mic.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.fr-mic.on .fr-mic-dot { background: #fff; animation: fr-blink 1s infinite; }
@keyframes fr-blink { 50% { opacity: .2; } }
.fr-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.fr-chip { position: relative; cursor: pointer; }
.fr-chip input { position: absolute; opacity: 0; inset: 0; }
.fr-chip span { display: inline-block; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; font-weight: 600; }
.fr-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #0B0907; }
.fr-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.fr-rating .fr-chip span { min-width: 2.2rem; text-align: center; padding: .5rem .4rem; }
.fr-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.fr-nums input { width: 100%; box-sizing: border-box; font-size: 1.2rem; text-align: center; }
.fr-set-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fr-set-actions .fr-add-set { font-weight: 700; }
.fr-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 .6rem; }
.fr-nav .pay-btn { width: auto; flex: 1; margin: 0; }
.fr-working { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 2.5rem 1rem; }
.fr-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: fr-spin .9s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
.fr-start { display: flex; flex-direction: column; gap: .6rem; border-color: var(--gold); }
.fr-start .pay-btn { text-decoration: none; text-align: center; }
.fr-step[hidden], .fr-working[hidden], #fr-form[hidden], .fr-progress[hidden] { display: none !important; }
a.fr-type, a.fr-type * { text-decoration: none; } a.fr-type { color: var(--ink); } a.fr-type h2 { color: var(--gold-light); }
.fr-more { border-top: 1px dashed var(--line); padding-top: .6rem; }
.fr-more summary { cursor: pointer; font-weight: 600; color: var(--gold-light); }
.fr-more[open] { display: flex; flex-direction: column; gap: 1rem; }
.fr-review-item { display: block; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin: 0 0 .5rem; color: var(--ink); font: inherit; cursor: pointer; min-height: 0; }
.fr-review-item strong { display: block; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); }
.fr-review-item span { font-size: .92rem; white-space: pre-line; }
.fr-review-item.empty span { color: var(--muted); font-style: italic; }
.fr-score { margin: 1rem 0; }
.fr-score-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.fr-score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.fr-score-grid > div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .4rem; text-align: center; display: flex; flex-direction: column; }
.fr-score-grid b { font-size: 1.5rem; color: var(--gold-light); line-height: 1.1; }
.fr-score-grid small { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.fr-score-grid em { font-style: normal; font-size: .72rem; color: var(--muted); margin-top: .2rem; border-top: 1px dashed var(--line); padding-top: .2rem; }
.fr-badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: .1rem .45rem; border-radius: 999px; background: var(--gold); color: #0B0907; }
.fr-badge.date { background: var(--gold-bg); color: var(--gold-light); border: 1px solid var(--gold-deep); }
@media (max-width: 420px) { .fr-score-grid { grid-template-columns: repeat(2, 1fr); } }
