*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f5f7fb;color:#172033}.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;background:#101827;color:#fff;position:sticky;top:0;z-index:5}.brand{font-weight:900;color:#fff;text-decoration:none;font-size:22px}.brand span{color:#f59e0b}.topbar nav{display:flex;gap:14px;flex-wrap:wrap}.topbar nav a{color:#dbeafe;text-decoration:none;font-size:14px}.container{max-width:1120px;margin:0 auto;padding:28px 18px}.footer{text-align:center;color:#667085;padding:30px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px;box-shadow:0 10px 25px rgba(16,24,39,.06);margin-bottom:18px}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:center}.hero h1{font-size:44px;line-height:1;margin:0 0 12px}.muted{color:#667085}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.btn,button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:#f59e0b;color:#101827;font-weight:800;padding:11px 16px;text-decoration:none;cursor:pointer}.btn.secondary{background:#e5e7eb;color:#172033}.btn.danger{background:#fee2e2;color:#991b1b}.input,select,textarea{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:11px;background:#fff;color:#172033}label{font-weight:700;display:block;margin:10px 0 6px}.flash{padding:12px 14px;border-radius:12px;margin-bottom:16px}.flash.ok{background:#dcfce7;color:#166534}.flash.err{background:#fee2e2;color:#991b1b}.exercise{display:grid;grid-template-columns:88px 1fr auto;gap:14px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin:10px 0;background:#fff}.demo{height:72px;border-radius:14px;background:linear-gradient(135deg,#eef2ff,#fff7ed);display:grid;place-items:center;position:relative;overflow:hidden}.demo:before{content:'🏋️';font-size:30px;animation:pulse 1.4s infinite alternate}.demo.small{height:50px}.demo.small:before{font-size:22px}@keyframes pulse{from{transform:translateY(5px) scale(.95)}to{transform:translateY(-4px) scale(1.08)}}.pill{display:inline-block;border-radius:999px;background:#eef2ff;color:#3730a3;padding:4px 10px;font-size:12px;font-weight:800}.pill.green{background:#dcfce7;color:#166534}.pill.red{background:#fee2e2;color:#991b1b}.day{border-left:6px solid #f59e0b}.setrow{display:grid;grid-template-columns:70px 1fr 1fr 1fr 80px;gap:8px;align-items:end;margin-bottom:8px}.table{width:100%;border-collapse:collapse}.table th,.table td{border-bottom:1px solid #e5e7eb;padding:10px;text-align:left}.checkbox-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check-card{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff}.check-card input{margin-right:8px}.empty{border:2px dashed #d0d5dd;background:#fff;padding:30px;border-radius:18px;text-align:center}.actions{display:flex;gap:10px;flex-wrap:wrap}.stat{background:#101827;color:#fff;border-radius:18px;padding:18px}.stat b{display:block;font-size:30px}pre{white-space:pre-wrap;background:#111827;color:#e5e7eb;border-radius:12px;padding:14px;overflow:auto}@media(max-width:800px){.hero,.grid.two,.grid.three{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.checkbox-list{grid-template-columns:1fr}.exercise{grid-template-columns:68px 1fr}.exercise .actions{grid-column:1/-1}.setrow{grid-template-columns:1fr 1fr}.setrow strong{grid-column:1/-1}}

/* Equipment setup v2 */
.equipment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.equipment-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:14px;transition:.15s ease;box-shadow:0 4px 10px rgba(16,24,39,.025)}.equipment-card.selected{border-color:#f59e0b;box-shadow:0 10px 22px rgba(245,158,11,.12)}.equipment-main{display:grid;grid-template-columns:auto 56px 1fr;gap:12px;align-items:center;margin:0;cursor:pointer}.equipment-main input{width:18px;height:18px}.equipment-main strong{display:block;font-size:16px}.equipment-main small{display:inline-block;color:#667085;margin-top:3px;font-weight:700}.equipment-icon{width:56px;height:56px;border-radius:14px;display:block}.equipment-details{display:none;margin-top:14px;padding-top:14px;border-top:1px solid #eef2f7}.equipment-card.selected .equipment-details{display:block}.detail-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#667085;font-weight:900;margin-bottom:6px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.equipment-details label{font-size:13px}.inline-check{display:flex;gap:8px;align-items:center;font-weight:700}.inline-check input{width:auto}.compact{margin:4px 0 8px}@media(max-width:900px){.equipment-list{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}}

/* Equipment setup v3 compact override */
.equipment-setup-v3 .equipment-list-v3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.equipment-setup-v3 .equipment-card-v3{border:1px solid #e5e7eb;border-radius:16px;background:#fff;padding:12px;box-shadow:0 4px 10px rgba(16,24,39,.025);transition:.15s ease}.equipment-setup-v3 .equipment-card-v3.selected{border-color:#f59e0b;background:#fffbeb;box-shadow:0 8px 18px rgba(245,158,11,.1)}.equipment-setup-v3 .equipment-main-v3{display:grid!important;grid-template-columns:auto 46px 1fr;align-items:center;gap:10px;margin:0!important;cursor:pointer}.equipment-setup-v3 .equipment-main-v3 input{width:17px!important;height:17px!important}.equipment-setup-v3 .equipment-icon-v3{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;object-fit:contain!important;border-radius:12px!important;display:block!important;background:#f8fafc}.equipment-setup-v3 .equipment-main-v3 strong{display:block;font-size:14px;line-height:1.15}.equipment-setup-v3 .equipment-main-v3 small{display:block;color:#667085;font-weight:700;font-size:11px;margin-top:2px}.equipment-setup-v3 .equipment-details-v3{display:none;margin-top:10px;padding-top:10px;border-top:1px solid #e5e7eb}.equipment-setup-v3 .selected .equipment-details-v3{display:block}.equipment-setup-v3 .detail-row{display:grid;gap:8px;margin-top:7px}.equipment-setup-v3 .detail-row.two{grid-template-columns:1fr 1fr}.equipment-setup-v3 .detail-row.four{grid-template-columns:repeat(4,1fr)}.equipment-setup-v3 .detail-row.six{grid-template-columns:repeat(6,1fr)}.equipment-setup-v3 .equipment-details-v3 label{font-size:11px;font-weight:800;margin:0;color:#334155}.equipment-setup-v3 .compact-input{font-size:12px!important;padding:7px 8px!important;border-radius:9px!important;margin-top:3px!important}.equipment-setup-v3 .compact-check{display:flex!important;gap:8px;align-items:center;margin-top:8px!important;font-size:12px!important}.equipment-setup-v3 .helper-line{font-size:13px;color:#667085;margin-top:6px}.equipment-setup-v3 .save-row{margin-top:16px}@media(max-width:1050px){.equipment-setup-v3 .equipment-list-v3{grid-template-columns:repeat(2,minmax(0,1fr))}.equipment-setup-v3 .detail-row.four,.equipment-setup-v3 .detail-row.six{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.equipment-setup-v3 .equipment-list-v3{grid-template-columns:1fr}.equipment-setup-v3 .detail-row.two,.equipment-setup-v3 .detail-row.four,.equipment-setup-v3 .detail-row.six{grid-template-columns:repeat(2,1fr)}}

/* Guest one-off generator */
.guest-equipment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.guest-equipment-grid.compact{grid-template-columns:repeat(6,minmax(0,1fr))}.guest-equipment-card{display:grid;grid-template-columns:auto 38px 1fr;gap:9px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;padding:10px;background:#fff;cursor:pointer;margin:0}.guest-equipment-card.selected{border-color:#f59e0b;background:#fffbeb}.guest-equipment-card input{width:16px;height:16px}.guest-equipment-card strong{display:block;font-size:13px;line-height:1.15}.guest-equipment-card small{display:block;color:#667085;font-size:11px;margin-top:2px}.guest-equipment-icon{width:38px;height:38px;object-fit:contain;border-radius:10px;background:#f8fafc}.compact-copy{margin:0;font-size:13px}.height-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:1050px){.guest-equipment-grid,.guest-equipment-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.guest-equipment-grid,.guest-equipment-grid.compact{grid-template-columns:1fr}.grid.four{grid-template-columns:1fr!important}}

/* Update 008: hard-stop guest equipment icons from expanding when cached/old styles conflict. */
.guest-equipment-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  margin-top:12px !important;
}
.guest-equipment-card{
  display:grid !important;
  grid-template-columns:auto 42px minmax(0,1fr) !important;
  gap:9px !important;
  align-items:center !important;
  border:1px solid #e5e7eb !important;
  border-radius:14px !important;
  padding:10px !important;
  background:#fff !important;
  cursor:pointer !important;
  margin:0 !important;
  min-height:62px !important;
}
.guest-equipment-card.selected{border-color:#f59e0b !important;background:#fffbeb !important;}
.guest-equipment-card input{width:16px !important;height:16px !important;margin:0 !important;}
.guest-equipment-thumb{
  width:42px !important;
  height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  border-radius:10px !important;
  background:#f8fafc !important;
  flex:none !important;
}
.guest-equipment-card img.guest-equipment-icon,
img.guest-equipment-icon{
  width:38px !important;
  height:38px !important;
  max-width:38px !important;
  max-height:38px !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:8px !important;
  background:transparent !important;
}
.guest-equipment-card strong{display:block !important;font-size:13px !important;line-height:1.15 !important;white-space:normal !important;}
.guest-equipment-card small{display:block !important;color:#667085 !important;font-size:11px !important;margin-top:2px !important;}
@media(max-width:1050px){.guest-equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}}
@media(max-width:700px){.guest-equipment-grid{grid-template-columns:1fr !important;}}

/* Update 009: generic workout generator + cleaner guest results */
.guest-section-head{margin-top:14px}
.guest-result-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.guest-result-head h1{margin-bottom:8px}
.compact-generator .grid.two{align-items:end}
@media(max-width:800px){.guest-result-head{display:block}.guest-result-head .actions{margin-top:14px}}

.profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.profile-summary div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.profile-summary strong{display:block;color:#0f172a}.profile-summary span{display:block;color:#475569;margin-top:4px}.why{margin-top:8px;color:#475569}.why summary{cursor:pointer;font-weight:800;color:#0f172a}.feedback-strip{display:grid;grid-template-columns:240px 1fr;gap:12px;margin:14px 0}.workout-feedback-card{border-left:4px solid #f59e0b}.workout-log-card{background:#fff}.grid.one{display:grid;grid-template-columns:1fr;gap:14px}@media(max-width:800px){.profile-summary{grid-template-columns:1fr 1fr}.feedback-strip{grid-template-columns:1fr}}@media(max-width:520px){.profile-summary{grid-template-columns:1fr}}
.load-pill{display:inline-block;margin:5px 0;border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;padding:4px 9px;font-size:12px;font-weight:900}.workout-log-card .muted .load-pill{margin-left:6px}

/* Update 013: compact workout runner */
.workout-player-shell{max-width:1050px;margin-left:auto;margin-right:auto}
.player-head{display:grid;grid-template-columns:1fr 240px;gap:20px;align-items:center;margin-bottom:18px}
.timer-box{background:#0f172a;color:#fff;border-radius:18px;padding:18px;text-align:center;box-shadow:0 12px 25px rgba(15,23,42,.15)}
.timer-label{font-size:14px;opacity:.85;margin-bottom:4px}.timer-time{font-size:42px;font-weight:900;letter-spacing:.04em;margin-bottom:12px}
.run-card{align-items:flex-start;gap:16px;margin:14px 0}.run-main{flex:1;min-width:240px}.run-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.quick-log{display:grid;grid-template-columns:repeat(2,minmax(95px,1fr));gap:10px;align-items:end;min-width:310px}.quick-log label{font-weight:700;font-size:13px}.compact-input{max-width:110px}.compact-feedback{margin-top:20px}.load-pill{display:inline-block;margin-top:6px}.btn.secondary.js-work,.btn.secondary.js-rest{padding:9px 13px;font-size:14px}
@media (max-width: 850px){.player-head{grid-template-columns:1fr}.quick-log{min-width:100%;grid-template-columns:repeat(2,minmax(120px,1fr))}.run-card{display:block}.run-card .demo{float:left;margin-right:12px}.run-main{margin-bottom:12px}.timer-box{position:sticky;top:58px;z-index:5}}
/* update 014 */
.rest-only-head .timer-box{max-width:260px;margin-left:auto}.simple-run-card{grid-template-columns:72px 1fr minmax(260px,360px)}
.load-note{display:block;margin-top:4px}.quick-log-simple{grid-template-columns:1fr;min-width:260px}.feel-buttons{border:0;padding:0;margin:8px 0 0;display:flex;gap:8px;flex-wrap:wrap}.feel-buttons legend{font-weight:800;font-size:13px;margin-bottom:6px;width:100%}.feel-buttons label{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px;cursor:pointer;font-weight:800;font-size:13px}.feel-buttons input{margin-right:5px}.advanced-log{margin-top:10px}.advanced-log summary{cursor:pointer;font-weight:800;color:#334155}.advanced-log-grid{display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:8px;margin-top:8px}.btn.secondary.js-rest{padding:9px 13px;font-size:14px}@media (max-width:900px){.simple-run-card{grid-template-columns:1fr}.quick-log-simple{min-width:100%}.rest-only-head .timer-box{max-width:none;margin-left:0}}

/* Update 017: replace emoji exercise placeholder with a CSS-only icon so it does not render as garbled emoji on some systems. */
.demo:before{content:'' !important;width:34px;height:10px;border-radius:999px;background:#101827;box-shadow:-20px 0 0 -2px #101827,20px 0 0 -2px #101827;animation:none !important;transform:rotate(-18deg);display:block;}
.demo:after{content:'';position:absolute;width:8px;height:28px;border-radius:999px;background:#f59e0b;transform:rotate(-18deg);}
.demo.small:before{width:28px;height:8px;box-shadow:-16px 0 0 -2px #101827,16px 0 0 -2px #101827;}
.demo.small:after{width:7px;height:22px;}
.load-note{display:block;margin-top:4px;}

/* Update 018: dark gym-style theme */
:root{
  --bg:#0b1220;
  --bg-2:#111827;
  --panel:#151f2f;
  --panel-2:#1b273a;
  --panel-soft:#202c41;
  --text:#eef2ff;
  --text-2:#cbd5e1;
  --muted:#94a3b8;
  --line:#334155;
  --line-soft:#263449;
  --accent:#f59e0b;
  --accent-2:#fbbf24;
  --accent-soft:rgba(245,158,11,.13);
  --blue-soft:rgba(99,102,241,.18);
  --green-soft:rgba(34,197,94,.16);
  --red-soft:rgba(239,68,68,.16);
  --shadow:0 18px 40px rgba(0,0,0,.28);
}
html{background:var(--bg)}
body{
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 32rem),
    linear-gradient(180deg,#0b1220 0%,#111827 46%,#0b1220 100%) !important;
  color:var(--text) !important;
  min-height:100vh;
}
.topbar{
  background:rgba(8,13,24,.92) !important;
  border-bottom:1px solid rgba(148,163,184,.16);
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  backdrop-filter:blur(10px);
}
.topbar nav a{color:#dbeafe !important;opacity:.92}.topbar nav a:hover{color:#fff !important}.brand{color:#fff !important}.brand span{color:var(--accent) !important}
.footer{color:var(--muted) !important}
.card,
.empty,
.workout-log-card,
.equipment-card,
.equipment-setup-v3 .equipment-card-v3,
.guest-equipment-card,
.profile-summary div{
  background:linear-gradient(180deg,var(--panel) 0%,var(--panel-2) 100%) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  box-shadow:var(--shadow) !important;
}
.card.hero{background:linear-gradient(135deg,#182236 0%,#111827 58%,#171f2f 100%) !important}
.hero h1,.card h1,.card h2,.card h3,.exercise h3,.why summary,.profile-summary strong{color:var(--text) !important}
.muted,.equipment-main small,.equipment-setup-v3 .equipment-main-v3 small,.guest-equipment-card small,.profile-summary span{color:var(--muted) !important}
.input,select,textarea,input[type="number"],input[type="text"],input[type="email"],input[type="password"]{
  background:#0f172a !important;
  border-color:#3b4a63 !important;
  color:var(--text) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.input::placeholder,textarea::placeholder,input::placeholder{color:#64748b !important}
label{color:var(--text-2) !important}.btn,button{background:linear-gradient(180deg,var(--accent-2),var(--accent)) !important;color:#111827 !important;box-shadow:0 8px 18px rgba(245,158,11,.18)}.btn.secondary,button.secondary,.btn.secondary.js-rest,.btn.secondary.js-work{background:#263449 !important;color:var(--text) !important;box-shadow:none}.btn.danger{background:#7f1d1d !important;color:#fee2e2 !important}.flash.ok{background:rgba(34,197,94,.15) !important;color:#bbf7d0 !important;border:1px solid rgba(34,197,94,.25)}.flash.err{background:rgba(239,68,68,.15) !important;color:#fecaca !important;border:1px solid rgba(239,68,68,.25)}
.exercise{
  background:#111827 !important;
  border-color:#2b3a51 !important;
  color:var(--text) !important;
}
.exercise:hover{border-color:#475569 !important;background:#141f31 !important}
.day{border-left-color:var(--accent) !important}
.table th,.table td{border-bottom-color:var(--line) !important;color:var(--text-2) !important}
.stat,.timer-box{background:#080d18 !important;color:#fff !important;border:1px solid rgba(148,163,184,.18)}
.pill{background:var(--blue-soft) !important;color:#c7d2fe !important}.pill.green{background:var(--green-soft) !important;color:#bbf7d0 !important}.pill.red{background:var(--red-soft) !important;color:#fecaca !important}
.load-pill{background:rgba(245,158,11,.15) !important;color:#fed7aa !important;border-color:rgba(245,158,11,.45) !important}
.demo,.guest-equipment-thumb,.equipment-setup-v3 .equipment-icon-v3,.equipment-icon{
  background:linear-gradient(135deg,#202c41,#0f172a) !important;
  border:1px solid rgba(148,163,184,.14);
}
.demo:before{background:#e5e7eb !important;box-shadow:-20px 0 0 -2px #e5e7eb,20px 0 0 -2px #e5e7eb !important}.demo:after{background:var(--accent) !important}.demo.small:before{box-shadow:-16px 0 0 -2px #e5e7eb,16px 0 0 -2px #e5e7eb !important}
.check-card{background:#111827 !important;border-color:#2b3a51 !important;color:var(--text) !important}.check-card.selected,.guest-equipment-card.selected,.equipment-setup-v3 .equipment-card-v3.selected,.equipment-card.selected{background:rgba(245,158,11,.1) !important;border-color:var(--accent) !important;box-shadow:0 0 0 1px rgba(245,158,11,.15),0 14px 28px rgba(0,0,0,.24) !important}.equipment-details,.equipment-setup-v3 .equipment-details-v3{border-top-color:#334155 !important}.equipment-setup-v3 .equipment-details-v3 label,.detail-title{color:#cbd5e1 !important}.helper-line,.compact-copy{color:var(--muted) !important}.feel-buttons label{background:#1e293b !important;border-color:#334155 !important;color:var(--text-2) !important}.advanced-log summary{color:var(--text-2) !important}pre{background:#050814 !important;border:1px solid #263449}.guest-result-head,.player-head{color:var(--text)}
a{color:#93c5fd}a:hover{color:#bfdbfe}

/* Update 019: grey-first dark theme polish and admin path fixes */
:root{
  --bg:#111111;
  --bg-2:#151515;
  --panel:#1c1c1c;
  --panel-2:#232323;
  --panel-soft:#2b2b2b;
  --text:#f4f4f5;
  --text-2:#d4d4d8;
  --muted:#a1a1aa;
  --line:#3f3f46;
  --line-soft:#303036;
  --accent:#f59e0b;
  --accent-2:#fbbf24;
  --shadow:0 18px 44px rgba(0,0,0,.34);
}
html,body{background:#111 !important;}
body{
  background:
    radial-gradient(circle at 4% 0%, rgba(245,158,11,.10), transparent 28rem),
    radial-gradient(circle at 100% 0%, rgba(113,113,122,.12), transparent 30rem),
    linear-gradient(180deg,#111 0%,#181818 48%,#101010 100%) !important;
  color:var(--text) !important;
}
.topbar{background:rgba(13,13,13,.96) !important;border-bottom:1px solid #2c2c2c !important;}
.container{max-width:1160px;}
.card,
.empty,
.workout-log-card,
.equipment-card,
.equipment-setup-v3 .equipment-card-v3,
.guest-equipment-card,
.profile-summary div,
.setup-v6 .section-card,
.setup-v6 .detail-panel-v6{
  background:linear-gradient(180deg,var(--panel) 0%,var(--panel-2) 100%) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  box-shadow:var(--shadow) !important;
}
.card.hero{background:linear-gradient(135deg,#242424 0%,#171717 58%,#202020 100%) !important;}
.card h1,.card h2,.card h3,.setup-v6 h1,.setup-v6 h2,.setup-v6 strong,.table th{color:var(--text) !important;}
.muted,.mini-muted,.setup-v6 .mini-muted,.helper-line,.setup-v6 small,.equipment-setup-v3 .equipment-main-v3 small,.guest-equipment-card small{color:var(--muted) !important;}
.input,select,textarea,input[type="number"],input[type="text"],input[type="email"],input[type="password"]{
  background:#111 !important;
  color:var(--text) !important;
  border-color:#4b4b52 !important;
  min-width:0;
}
label,.setup-v6 label,.setup-v6 .detail-title-v6,.setup-v6 .custom-title-v6{color:var(--text-2) !important;}
.exercise,.check-card{background:#171717 !important;border-color:#34343a !important;color:var(--text) !important;}
.exercise:hover{background:#202020 !important;border-color:#52525b !important;}
.table{background:transparent !important;}
.table th,.table td{border-bottom:1px solid var(--line) !important;color:var(--text-2) !important;}
.table tr:hover td{background:#202020 !important;color:var(--text) !important;}
a{color:#fbbf24 !important;}a:hover{color:#fde68a !important;}
.btn.secondary,button.secondary,.btn.secondary.js-rest,.btn.secondary.js-work{background:#333 !important;color:var(--text) !important;border:1px solid #444 !important;}
.pill{background:#333 !important;color:#e4e4e7 !important;}
.pill.green{background:rgba(34,197,94,.14) !important;color:#bbf7d0 !important;}.pill.red{background:rgba(239,68,68,.15) !important;color:#fecaca !important;}
.demo,.equipment-icon,.equipment-setup-v3 .equipment-icon-v3,.setup-v6 .equipment-icon-v6,.guest-equipment-icon{
  background:linear-gradient(135deg,#2a2a2a,#151515) !important;
  border:1px solid #3f3f46 !important;
}
.equipment-setup-v3 .equipment-card-v3.selected,
.equipment-card.selected,
.guest-equipment-card.selected,
.setup-v6 .equipment-card-v6.selected{
  background:rgba(245,158,11,.10) !important;
  border-color:var(--accent) !important;
}
.equipment-details,.equipment-setup-v3 .equipment-details-v3,.setup-v6 .equipment-details-v6{border-top-color:#45454d !important;}

/* Keep equipment setup compact enough for nested fields. */
.setup-v6 .equipment-list-v6{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
.setup-v6 .equipment-card-v6{background:linear-gradient(180deg,#1c1c1c,#222) !important;border-color:#3f3f46 !important;color:var(--text) !important;}
.setup-v6 .equipment-main-v6{grid-template-columns:auto 42px minmax(0,1fr) !important;}
.setup-v6 .equipment-main-v6 span{min-width:0;}
.setup-v6 .equipment-main-v6 strong{white-space:normal;color:var(--text) !important;}
.setup-v6 .detail-row.two{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
.setup-v6 .weight-grid-v6{grid-template-columns:repeat(4,minmax(88px,1fr)) !important;}
.setup-v6 .custom-weight-row-v6{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto !important;}
.setup-v6 .compact-input{width:100% !important;}
.setup-v6 .link-button{color:#fbbf24 !important;background:transparent !important;box-shadow:none !important;}
.setup-v6 .link-button.danger{color:#fecaca !important;}

/* Fix older v3 equipment wrappers that still render inside light panels. */
.equipment-setup-v3 .card > div,
.equipment-setup-v3 .section-card{
  background:transparent !important;
  color:var(--text) !important;
}

/* Tables/admin screens should retain app chrome, spacing, and readability. */
.card .table{margin-top:14px;display:table;}
@media(max-width:850px){
  .card .table{display:block;overflow-x:auto;white-space:nowrap;}
  .setup-v6 .equipment-list-v6{grid-template-columns:1fr !important;}
  .setup-v6 .weight-grid-v6{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

/* Update 020: equipment detail select sizing/alignment */
.setup-v6 .equipment-details-v6 .detail-row.full{
  display:block !important;
  width:100% !important;
  margin-top:14px !important;
}
.setup-v6 .equipment-details-v6 .detail-row.full > label{
  display:grid !important;
  grid-template-columns:minmax(70px,max-content) minmax(240px,1fr) !important;
  align-items:center !important;
  column-gap:14px !important;
  margin:0 !important;
  width:100% !important;
}
.setup-v6 .equipment-details-v6 .detail-row.full select,
.setup-v6 .equipment-details-v6 select.compact-input{
  width:100% !important;
  min-width:240px !important;
  max-width:100% !important;
  padding:10px 34px 10px 12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.setup-v6 .equipment-details-v6 label{
  line-height:1.25 !important;
}
.setup-v6 .equipment-details-v6 .detail-panel-v6{
  margin-top:12px !important;
}
.setup-v6 .equipment-details-v6 .detail-panel-v6 > label{
  display:grid !important;
  grid-template-columns:minmax(190px,max-content) minmax(140px,220px) !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
}
.setup-v6 .equipment-details-v6 .detail-panel-v6 > label input{
  width:100% !important;
}
@media(max-width:760px){
  .setup-v6 .equipment-details-v6 .detail-row.full > label,
  .setup-v6 .equipment-details-v6 .detail-panel-v6 > label{
    grid-template-columns:1fr !important;
    row-gap:6px !important;
  }
  .setup-v6 .equipment-details-v6 .detail-row.full select,
  .setup-v6 .equipment-details-v6 select.compact-input{
    min-width:0 !important;
  }
}

/* Update 022: restore full stylesheet and tighten setup spacing safely */
.setup-v6 .equipment-details-v6 .detail-row.full > label{
  display:grid !important;
  grid-template-columns:max-content minmax(260px,1fr) !important;
  align-items:center !important;
  column-gap:8px !important;
}
.setup-v6 .equipment-details-v6 .detail-row.full > label > select{
  margin-left:0 !important;
}
.setup-v6 .equipment-details-v6 .detail-panel-v6 > label{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  width:100% !important;
}
.setup-v6 .equipment-details-v6 .detail-panel-v6 > label input{
  flex:0 0 160px !important;
  width:160px !important;
  max-width:100% !important;
}
.setup-v6 .equipment-details-v6 .detail-row.two{
  gap:14px !important;
}
.setup-v6 .equipment-details-v6 .detail-row.two label{
  display:block !important;
}
.setup-v6 .equipment-details-v6 .detail-row.two input{
  margin-top:6px !important;
}
@media(max-width:760px){
  .setup-v6 .equipment-details-v6 .detail-row.full > label{
    grid-template-columns:1fr !important;
    row-gap:6px !important;
  }
  .setup-v6 .equipment-details-v6 .detail-panel-v6 > label input{
    flex-basis:100% !important;
    width:100% !important;
  }
}

/* Update 023: clearer load build details and softer typography */
html, body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body{
  font-weight:400 !important;
  line-height:1.48;
}
.brand{font-weight:800 !important;letter-spacing:-.02em !important;}
.hero h1,.card h1,.card h2,.card h3,.setup-v6 h1,.setup-v6 h2{
  font-weight:700 !important;
  letter-spacing:-.025em !important;
  text-shadow:none !important;
}
.exercise strong,.why summary,.table th,label,.setup-v6 label,.equipment-setup-v3 .equipment-main-v3 strong,.guest-equipment-card strong{
  font-weight:650 !important;
  letter-spacing:-.01em !important;
}
.btn,button,.pill,.load-pill{
  font-weight:700 !important;
  letter-spacing:-.01em !important;
}
.muted,small,.load-note{
  font-weight:400 !important;
}
.load-pill{
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  max-width:100% !important;
  margin-top:4px !important;
  margin-bottom:4px !important;
}
.load-build{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  color:#d4d4d8;
  font-size:13px;
  line-height:1.35;
  margin:2px 0 6px;
}
.load-build:before{
  content:'';
  width:18px;
  height:18px;
  flex:0 0 18px;
  border:2px solid #f59e0b;
  border-radius:50%;
  box-shadow:inset 0 0 0 5px #1c1c1c;
  background:#d4d4d8;
  opacity:.95;
}
.quick-log select option{
  background:#111;
  color:#f4f4f5;
}
@media(max-width:760px){
  .load-build{font-size:12px;}
}

/* Update 024: plate-build visual blocks */
.load-build-visual{
  margin:8px 0 8px;
  padding:10px 12px;
  border:1px solid rgba(245,158,11,.28);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(245,158,11,.08),rgba(255,255,255,.025));
  width:max-content;
  max-width:100%;
}
.build-title{
  color:#d4d4d8;
  font-size:12px;
  font-weight:650;
  letter-spacing:.01em;
  margin-bottom:7px;
}
.build-equation{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.build-plate-set{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.plate-icon{
  width:54px;
  height:54px;
  border:3px solid #f5f5f4;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at 50% 50%, #171717 0 33%, transparent 34%), #262626;
  box-shadow:0 0 0 2px rgba(255,255,255,.10), inset 0 0 0 2px rgba(255,255,255,.55);
  color:#f8fafc;
  font-size:24px;
  font-weight:650;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.plate-times{
  color:#f4f4f5;
  font-size:30px;
  font-weight:500;
  letter-spacing:.02em;
  line-height:1;
}
.build-plus{
  color:#a3a3a3;
  font-size:22px;
  font-weight:400;
}
.build-base{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 10px;
  border-radius:10px;
  background:#111;
  border:1px solid #3f3f46;
  color:#e5e7eb;
  font-size:13px;
  font-weight:650;
}
.build-base.only{
  color:#fed7aa;
  border-color:rgba(245,158,11,.35);
}
.load-build-visual.handle-only{
  padding:8px 10px;
}
.load-build-visual.handle-only .build-title{
  margin-bottom:5px;
}
@media(max-width:760px){
  .load-build-visual{width:100%;}
  .plate-icon{width:44px;height:44px;font-size:19px;}
  .plate-times{font-size:24px;}
  .build-equation{gap:8px;}
}

/* Update 025: compact plate build diagrams placed in unused card space */
.exercise.has-build{
  grid-template-columns:88px minmax(0,1fr) minmax(240px,340px) auto !important;
  align-items:center !important;
}
.exercise .build-side{
  justify-self:start;
  align-self:center;
}
.load-build-visual.compact-profile{
  width:auto !important;
  max-width:100% !important;
  margin:0 !important;
  padding:8px 10px !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:12px !important;
  border-radius:14px !important;
  border:1px solid rgba(245,158,11,.24) !important;
  background:linear-gradient(135deg,rgba(245,158,11,.07),rgba(255,255,255,.025)) !important;
  white-space:nowrap !important;
}
.load-build-visual.compact-profile .build-label{
  color:#a1a1aa;
  font-size:11px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.build-plate-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.build-plate-set.compact{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.plate-icon.compact{
  width:46px !important;
  height:46px !important;
  border:3px solid #e7e5e4 !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:radial-gradient(circle at 50% 50%, #181818 0 36%, transparent 37%), #292929 !important;
  box-shadow:0 0 0 2px rgba(255,255,255,.08), inset 0 0 0 2px rgba(255,255,255,.35) !important;
  color:#f8fafc !important;
  font-size:20px !important;
  font-weight:650 !important;
  line-height:1 !important;
  font-variant-numeric:tabular-nums !important;
}
.plate-times.compact{
  color:#f4f4f5 !important;
  font-size:24px !important;
  font-weight:500 !important;
  line-height:1 !important;
}
.build-plus.compact{
  color:#a3a3a3 !important;
  font-size:18px !important;
  font-weight:400 !important;
}
.build-profile{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:86px;
  height:42px;
  flex:0 0 auto;
  opacity:.98;
}
.build-profile.dumbbell{width:92px;}
.build-profile.barbell{width:110px;}
.build-profile .profile-bar{
  position:absolute;
  left:4px;
  right:4px;
  top:50%;
  height:7px;
  margin-top:-3.5px;
  border-radius:999px;
  background:#e5e7eb;
  box-shadow:0 1px 0 rgba(255,255,255,.12);
}
.build-profile .profile-plate{
  position:absolute;
  top:9px;
  width:8px;
  height:25px;
  border-radius:3px;
  background:var(--accent);
  box-shadow:0 0 0 1px rgba(245,158,11,.25);
}
.build-profile.dumbbell .profile-plate.left{left:26px;}
.build-profile.dumbbell .profile-plate.right{right:26px;}
.build-profile.barbell .profile-plate.left{left:36px;}
.build-profile.barbell .profile-plate.right{right:36px;}
.load-build-visual.compact-profile .build-title,
.load-build-visual.compact-profile .build-base{
  display:none !important;
}
@media(max-width:980px){
  .exercise.has-build{grid-template-columns:72px minmax(0,1fr) auto !important;}
  .exercise .build-side{grid-column:2 / -1; margin-top:8px;}
}
@media(max-width:640px){
  .load-build-visual.compact-profile{white-space:normal !important; flex-wrap:wrap !important;}
  .load-build-visual.compact-profile .build-label{width:100%;}
  .build-profile{width:82px;height:34px;}
  .plate-icon.compact{width:38px !important;height:38px !important;font-size:17px !important;}
  .plate-times.compact{font-size:20px !important;}
}

/* Update 027: restore full stylesheet + refined plate build visual */
.load-build-visual.compact-profile {
  min-width: 250px;
  max-width: 330px;
  padding: 10px 14px;
  gap: 16px;
  justify-content: space-between;
}

.load-build-visual.compact-profile .build-label {
  display: none !important;
}

.load-build-visual.compact-profile .build-plate-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.load-build-visual.compact-profile .build-plate-set {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.load-build-visual.compact-profile .plate-icon.compact {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.92),
    0 0 0 1px rgba(255,255,255,.16),
    0 2px 8px rgba(0,0,0,.35);
}

.load-build-visual.compact-profile .plate-icon.compact::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
  opacity: .95;
}

.load-build-visual.compact-profile .plate-icon.compact span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

.load-build-visual.compact-profile .plate-icon.compact small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  opacity: .95;
}

.load-build-visual.compact-profile .plate-times.compact,
.load-build-visual.compact-profile .build-plus.compact {
  color: #f5f5f4;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: .01em;
}

.plate-orange { background: #f59e0b !important; }
.plate-red { background: #dc2626 !important; }
.plate-blue { background: #2563eb !important; }
.plate-green { background: #16a34a !important; }
.plate-yellow { background: #ca8a04 !important; }
.plate-silver { background: #cbd5e1 !important; }
.plate-white { background: #f8fafc !important; }
.plate-generic { background: #94a3b8 !important; }

.plate-white span,
.plate-silver span,
.plate-white small,
.plate-silver small {
  color: #111827 !important;
  text-shadow: none !important;
}

.load-build-visual.compact-profile .build-profile {
  width: 122px;
  height: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.load-build-visual.compact-profile .profile-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg,#ffffff,#d7d7d7);
  box-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.load-build-visual.compact-profile .profile-grip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 14px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: #f5f5f5;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.22);
}

.load-build-visual.compact-profile .profile-side {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transform: translateY(-50%);
}

.load-build-visual.compact-profile .profile-left {
  right: 63px;
  flex-direction: row-reverse;
}

.load-build-visual.compact-profile .profile-right {
  left: 63px;
  flex-direction: row;
}

.load-build-visual.compact-profile .profile-plate {
  display: inline-block;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.35);
}

.load-build-visual.compact-profile .profile-plate-large {
  width: 9px;
  height: 30px;
}

.load-build-visual.compact-profile .profile-plate-small {
  width: 7px;
  height: 21px;
}

.load-build-visual.compact-profile .profile-lock {
  width: 5px;
  height: 24px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,.45);
}

@media (max-width: 1180px) {
  .load-build-visual.compact-profile {
    min-width: 0;
    max-width: 100%;
  }
}

/* update_028_hide_weight_build_visuals */
.exercise-build-slot,
.exercise-build-visual,
.exercise-build-visual-row,
.build-plate-group,
.build-profile {
  display: none !important;
}

.exercise-card,
.workout-exercise-card,
.plan-exercise-card {
  min-height: auto !important;
}
