.cft { --g:#1e5b36; --g2:#4f9a6b; --bg:#f4f8f5; --ink:#1c2a22; --mut:#5d6f64; --line:#dfe9e2;
  max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.cft * { box-sizing: border-box; }
.cft h2 { margin: 0; font-size: 26px; color: var(--g); }
.cft h3 { margin: 0 0 12px; font-size: 17px; color: var(--g); }
.cft h4 { margin: 14px 0 6px; font-size: 14px; }
.cft-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; }
.cft-sub { margin: 2px 0 0; color: var(--mut); }
.cft-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.cft-center { text-align: center; padding: 32px 18px; }
.cft-warn { background: #fff7e6; border-color: #f0d9a8; }
.cft-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.cft-grid .cft-card { margin-bottom: 0; }
.cft-grid { margin-bottom: 16px; }
.cft-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.cft-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cft-stat-v { font-size: 28px; font-weight: 700; color: var(--g); line-height: 1.1; }
.cft-stat-l { color: var(--mut); font-size: 13px; margin-top: 4px; }
.cft-big { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.cft-note { color: var(--mut); font-size: 13px; margin: 6px 0 0; }
.cft-pre { white-space: pre-wrap; margin: 4px 0; }
.cft-btn { display: inline-block; background: var(--g); color: #fff !important; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.cft-btn:hover { background: var(--g2); }
.cft-back { color: var(--g); text-decoration: none; font-weight: 600; }
.cft-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cft-green { background: #e1f3e8; color: #17653a; }
.cft-amber { background: #fdf0d3; color: #8a5a00; }
.cft-red { background: #fde4e1; color: #a1281c; }
.cft-grey { background: #eceeed; color: #555; }
.cft-tag { font-size: 11px; font-weight: 600; background: #eef1ff; color: #3b4fa3; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.cft-chart { position: relative; width: 100%; }
.cft-goal { margin-bottom: 14px; }
.cft-goal-top, .cft-goal-bot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.cft-goal-top strong { color: var(--ink); font-size: 15px; }
.cft-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.cft-bar div { height: 100%; background: var(--g2); border-radius: 999px; }
.cft-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; }
.cft-kv span { display: block; font-size: 12px; color: var(--mut); }
.cft-kv strong { font-weight: 600; word-break: break-word; }
.cft-note-row { border-top: 1px solid var(--line); padding: 10px 0; }
.cft-note-row:first-of-type { border-top: 0; }
.cft-note-top { font-size: 13px; color: var(--mut); }
.cft-scroll { overflow-x: auto; }
.cft-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cft-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--mut); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.cft-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cft-table a { color: var(--g); font-weight: 600; text-decoration: none; }
.cft-table small { color: var(--mut); }
.cft-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cft-toolbar h3 { margin: 0; }
.cft-toolbar input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 220px; }
@media (max-width: 760px) {
  .cft-grid { grid-template-columns: 1fr; }
  .cft-grid .cft-card { margin-bottom: 16px; }
  .cft-stats { grid-template-columns: repeat(2, 1fr); }
  .cft h2 { font-size: 22px; }
}

.cft-bar-account { text-align: right; font-size: 13px; color: var(--mut); margin: 6px 0 0; }
.cft-bar-account a, .cft-auth a { color: var(--g); font-weight: 600; text-decoration: none; }
.cft-auth { max-width: 440px; margin: 24px auto; }
.cft-auth label { display: block; font-weight: 600; font-size: 14px; }
.cft-auth input[type=text], .cft-auth input[type=password], .cft-auth input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; font-size: 15px; }
.cft-auth input[type=submit] { background: var(--g); color: #fff; border: 0; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.cft-auth input[type=submit]:hover { background: var(--g2); }
.cft-auth .login-remember label { font-weight: 400; }
.cft-msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 8px 0; }
.cft-msg-ok { background: #e1f3e8; color: #17653a; }
.cft-msg-bad { background: #fde4e1; color: #a1281c; }

/* participant list */
.cft-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.cft-pill { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--g); text-decoration: none; background: #fff; }
.cft-pill:hover { border-color: var(--g2); }
.cft-backrow { margin: 6px 0 0; }
.cft-stat-btn { text-align: left; cursor: pointer; font: inherit; }
.cft-stat-btn:hover, .cft-stat-btn.is-on { border-color: var(--g2); background: #e9f4ed; }
.cft-filters { padding: 14px 18px; }
.cft-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cft-filter-row input[type=search] { flex: 1 1 220px; min-width: 180px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.cft-filter-row select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; max-width: 220px; }
.cft-link { background: none; border: 0; color: var(--g); font-weight: 600; cursor: pointer; padding: 8px; }
.cft-filters .cft-note { margin: 8px 0 0; }
.cft-flush { padding: 0; overflow: hidden; }
.cft-flush .cft-table th, .cft-flush .cft-table td { padding-left: 16px; }
.cft-table small { display: block; color: var(--mut); font-size: 12px; margin-top: 2px; }
.cft-clickable tbody tr.cft-row { cursor: pointer; }
.cft-clickable tbody tr.cft-row:hover { background: var(--bg); }
.cft-name { font-weight: 600; }
.cft-go { color: var(--mut); font-size: 22px; text-align: right; width: 24px; }
.cft-meter { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; min-width: 90px; max-width: 160px; }
.cft-meter div { height: 100%; background: var(--g2); border-radius: 999px; }
.cft-empty { padding: 18px; text-align: center; color: var(--mut); margin: 0; }
.cft-batches summary { cursor: pointer; list-style: none; }
.cft-batches summary h3 { display: inline; margin: 0; }
.cft-batches summary::after { content: ' +'; color: var(--mut); }
.cft-batches[open] summary::after { content: ' \2212'; }
.cft-batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.cft-batch { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.cft-batch strong { display: block; }
.cft-batch small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 3px; }
.cft-batch a { display: inline-block; margin-top: 8px; color: var(--g); font-weight: 600; font-size: 13px; text-decoration: none; }
/* our pages carry their own title, so hide the theme's repeated page header */
body.cft-page #page-header, body.cft-page .post-title-wrapper, body.cft-page h1.post-title { display: none !important; }
/* theme overrides: selects, dark menu bar without the hero, space under the fixed menu */
.cft select { -webkit-appearance: menulist !important; appearance: auto !important; background-image: none !important; height: auto !important; }
.cft .cft-filter-row select { width: auto !important; flex: 0 1 185px !important; min-width: 150px; display: inline-block !important; margin: 0 !important; }
.cft .cft-filter-row input[type=search] { margin: 0 !important; height: auto !important; }
body.cft-page .menu-wrapper, body.cft-page .menu-container, body.cft-page .menu-sticky { background: #101213 !important; }
body.cft-page .sections-container { padding-top: 150px; }
@media (max-width: 960px) { body.cft-page .sections-container { padding-top: 90px; } }

/* Buttons that the theme left white-on-white (login form + WooCommerce reset screens) */
body.cft-page .login-submit input[type=submit], body.cft-page #wp-submit,
body.cft-page .woocommerce-Button, body.cft-page .woocommerce button.button, body.cft-page .woocommerce-form button[type=submit] {
  display: inline-block !important; opacity: 1 !important; visibility: visible !important;
  background: #1e5b36 !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
  padding: 12px 22px !important; font-weight: 600 !important; font-size: 16px !important; cursor: pointer; box-shadow: none !important;
}
body.cft-page .login-submit input[type=submit]:hover, body.cft-page #wp-submit:hover,
body.cft-page .woocommerce-Button:hover, body.cft-page .woocommerce button.button:hover { background: #4f9a6b !important; color: #fff !important; }
body.cft-page .woocommerce { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
body.cft-page .woocommerce input.input-text { width: 100%; }

/* Analytics */
.cft-an-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.cft-an-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); min-width: 150px; flex: 1 1 150px; max-width: 220px; }
.cft-an-f select { width: 100%; }
.cft-an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cft-an-grid .cft-card { margin-bottom: 0; }
.cft-an .cft-card { box-shadow: none; }
.cft-stat-d { font-size: 12px; margin-top: 6px; color: var(--mut); }
.cft-delta.up { color: #1e7a44; font-weight: 600; }
.cft-delta.down { color: #b4472f; font-weight: 600; }
@media (max-width: 800px) { .cft-an-grid { grid-template-columns: 1fr; } .cft-an-f { max-width: none; } }

/* Daily motivation */
.cft-motive { background: linear-gradient(135deg, #1e5b36 0%, #2f7a4b 100%); border: 0; color: #fff; }
.cft-motive-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.cft-motive-l { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 600; margin-right: auto; }
.cft-motive .cft-chip { background: rgba(255,255,255,.18); color: #fff; border: 0; }
.cft-motive-q { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 500; color: #fff; }
@media (max-width: 600px) { .cft-motive-q { font-size: 17px; } }

/* Log forms (runs, activity, coach notes, goals) */
.cft-logform { padding: 0; }
.cft-logform > summary { cursor: pointer; padding: 14px 18px; list-style: none; }
.cft-logform > summary::-webkit-details-marker { display: none; }
.cft-logform > summary h3 { display: inline; margin: 0; }
.cft-logform > summary::after { content: "+"; float: right; font-size: 20px; line-height: 1; color: var(--g); }
.cft-logform[open] > summary::after { content: "\2212"; }
.cft-logform .cft-form { padding: 0 18px 16px; }
.cft-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 10px; }
.cft-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mut); margin-bottom: 8px; }
.cft-form input[type=text], .cft-form input[type=number], .cft-form input[type=date], .cft-form select, .cft-form textarea {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; color: #1d2b22; background: #fff; margin: 0;
}
.cft-form textarea { resize: vertical; }
.cft-form .cft-check { flex-direction: row; align-items: center; gap: 8px; color: #1d2b22; font-size: 14px; }
.cft-form .cft-check input { width: auto; margin: 0; }
.cft-pending { background: #fff8e6; border-color: #f0dca0; }
.cft-pending ul { margin: 6px 0; padding-left: 18px; }

/* Hide the big "This is where your transformation begins" footer banner on our private pages */
body.cft-page #colophon #row-unique-0 { display: none !important; }

/* Footer: the footer's second row used a parallax offset that clipped the top once the banner is hidden */
body.cft-page #colophon #row-unique-1, body.cft-page #colophon #row-unique-1 * { transform: none !important; }
body.cft-page #colophon #row-unique-1 { overflow: visible !important; }

/* Profile photo */
.cft-head-l { display: flex; align-items: center; gap: 16px; }
.cft-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cft-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); background: var(--bg); }
.cft-avatar-i { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--g); }
.cft-photo-btn { font-size: 12px; font-weight: 600; color: var(--g); cursor: pointer; text-decoration: underline; }
.cft-photo-form { margin: 0; }

/* Calendar */
.cft-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
.cft-cal-h { font-size: 11px; color: var(--mut); text-align: center; }
.cft-cal-d { text-align: center; padding: 8px 0; border-radius: 8px; background: var(--bg); font-size: 13px; color: var(--mut); }
.cft-cal-d.is-on { background: var(--g); color: #fff; font-weight: 700; }
.cft-cal-d.is-future { opacity: .45; }
.cft-cal-d.is-today { outline: 2px solid var(--g2); }
@media (max-width: 600px) { .cft-head-l { flex-direction: row; } .cft-avatar { width: 64px; height: 64px; } }

/* Buttons: the theme restyles <button>; keep ours clearly visible */
.cft button.cft-btn, .cft button[type=submit], .cft input[type=submit], a.cft-btn {
  background: #1e5b36 !important; color: #fff !important; border: 0 !important; opacity: 1 !important;
  padding: 11px 22px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 15px !important;
  line-height: 1.2 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; min-height: 0 !important;
}
.cft button.cft-btn:hover, .cft button[type=submit]:hover, .cft input[type=submit]:hover, a.cft-btn:hover { background: #4f9a6b !important; color: #fff !important; }
