:root{--plum:#632240;--navy:#081f2c;--gold:#ffbe3d;--bg:#f4f4f6;--line:#d8d8dc;--text:#111}
*{box-sizing:border-box}
body{font-family:Arial,Helvetica,sans-serif;margin:0;background:var(--bg);color:var(--text)}
header{background:var(--plum);color:white;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}
header h1{margin:0;font-size:26px} header p{margin:5px 0 0;font-size:13px}
main{max-width:1200px;margin:20px auto;padding:0 14px 40px}
section{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
h2{color:var(--plum);margin-top:0} h3{color:var(--navy)}
button{background:var(--plum);color:white;border:0;border-radius:8px;padding:9px 13px;font-weight:700;cursor:pointer}
button.secondary{background:var(--navy)} button.warning{background:#8a1c16}
.btnrow{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
label{font-size:13px;font-weight:700}
input,select,textarea{width:100%;padding:8px;border:1px solid #c8c8cc;border-radius:6px;font-size:14px;margin-top:4px}
textarea{min-height:70px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.tabs button{background:#ddd;color:#111}.tabs button.active{background:var(--plum);color:white}
.tab{display:none}.tab.active{display:block}
.signal{border-left:8px solid var(--gold)}
.callout{border-left:6px solid var(--gold);background:#fff8e1;padding:10px;border-radius:6px;margin:10px 0}
.equipment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.equipment-card{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fafafa;cursor:pointer;font-weight:700}
.equipment-card.selected{background:var(--plum);color:white;border-color:var(--plum)}
table{width:100%;border-collapse:collapse;margin-top:10px;font-size:14px}
th{background:var(--navy);color:white;text-align:left;padding:9px;border:1px solid #123447}
td{border:1px solid var(--line);padding:8px;vertical-align:top}
.setInput{display:inline-block;width:64px;margin:2px}
.status{font-weight:700}.status.up{color:#1b7f37}.status.hold{color:#805b00}.status.down{color:#b42318}
.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:12px}
.summary .card{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:12px}
.metric{font-size:24px;font-weight:800;color:var(--plum)}
@media(max-width:700px){header{display:block}table{font-size:12px}th,td{padding:6px}}

.rodWrap{min-width:220px}
.rodButtons{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.rodTile{display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;color:#111;font-size:13px;font-weight:700;min-width:52px;min-height:40px;cursor:pointer}
.rodTile input{position:absolute;opacity:0;pointer-events:none}
.rodTile.selected{background:var(--plum);color:#fff;border-color:var(--plum)}
.rodTotal{font-weight:800;color:var(--plum);font-size:13px}
.repSelect{width:58px;margin:2px}

.template-actions{display:flex;gap:6px;flex-wrap:wrap}
.template-actions button{padding:6px 9px;font-size:12px}
.inlineInput{width:90px}
.orderBtns{display:flex;gap:4px;flex-wrap:wrap}
.orderBtns button{padding:5px 8px;font-size:12px}

#dashboardSignal{padding:14px;margin-bottom:12px;background:#eef6ff;border-left:8px solid #3778c2}
#dashboardSignal.good{background:#e8f5e9;border-left-color:#1b7f37}
#dashboardSignal.warn{background:#fff8e1;border-left-color:#ffbe3d}
#dashboardSignal.bad{background:#fff1f1;border-left-color:#b42318}
#dashboardSignal h3{margin:0 0 4px;color:var(--navy)}
#dashboardSignal p{margin:0}

.actionList{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:14px 14px 14px 34px}
.actionList li{margin:6px 0;font-weight:700}
.reviewBox{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:14px}
.scoreGood{color:#1b7f37}
.scoreWarn{color:#805b00}
.scoreBad{color:#b42318}

.signalGood{border-left:8px solid #1b7f37;background:#e8f5e9}
.signalWarn{border-left:8px solid #ffbe3d;background:#fff8e1}
.signalBad{border-left:8px solid #b42318;background:#fff1f1}
.signalInfo{border-left:8px solid #3778c2;background:#eef6ff}
.reviewBox b{color:var(--navy)}

.validationBox{border-left:6px solid #b42318;background:#fff1f1;padding:10px;border-radius:6px;margin:10px 0}
.saveOk{border-left:6px solid #1b7f37;background:#e8f5e9}
.incompleteRow{background:#fff8e1}

.modeBadge{display:inline-block;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}
.modeLive{background:#e8f5e9;color:#1b7f37}
.modeTest{background:#fff8e1;color:#805b00}

.changeLogViewer{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-bottom:12px}
.changeDetail{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:14px}
.changeDetail h3{margin-top:0}
.changeDetail ul{margin-top:6px}
.phaseBadge{display:inline-block;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;background:#eef6ff;color:#081f2c;margin-bottom:8px}

.chartGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.chartCard{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:12px}
.chartCard h4{margin:0 0 8px;color:var(--navy)}
.miniChart{width:100%;height:220px;border:1px solid var(--line);border-radius:8px;background:white}
.achievement{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fafafa}
.achievement.unlocked{background:#e8f5e9;border-color:#1b7f37}
.achievement.locked{opacity:.65}
.prNew{background:#fff8e1}

#nutritionTable input,#scheduleTable input{min-width:80px}
.kpiRow{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.kpiBox{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:12px}

.libraryAddBtn{padding:6px 10px;font-size:12px}
.modelPill{display:inline-block;border-radius:999px;background:#eef6ff;color:#081f2c;padding:3px 8px;font-size:12px;font-weight:700}

/* Version 0 Rev 2.4 - Mobile / PWA readiness */
:root{--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px)}
body{overscroll-behavior-y:contain}
.mobile-install-card{border-left:6px solid var(--gold)}
section table{min-width:680px}
@media(max-width:760px){
  body{font-size:16px;padding-bottom:calc(76px + var(--safe-bottom))}
  header,.header,.topbar{position:sticky;top:0;z-index:50}
  h1{font-size:1.35rem} h2{font-size:1.2rem} h3{font-size:1.05rem}
  .tabs,nav,.tabButtons{
    position:fixed;left:0;right:0;bottom:0;z-index:100;
    display:flex!important;gap:4px;overflow-x:auto;
    padding:8px 8px calc(8px + var(--safe-bottom));
    background:linear-gradient(180deg,rgba(8,31,44,.96),rgba(8,31,44,1));
    border-top:1px solid rgba(255,255,255,.16);
    box-shadow:0 -8px 22px rgba(0,0,0,.22);
  }
  .tabs button,nav button,.tabButtons button{
    flex:0 0 auto;min-width:82px;min-height:44px;padding:8px 10px;
    border-radius:14px;font-size:.78rem;white-space:nowrap;
  }
  button,select,input,textarea{min-height:44px;font-size:16px}
  .grid,.grid2,.summary,.chartGrid,.kpiRow{grid-template-columns:1fr!important}
  .table-wrap,.tableWrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  section{overflow-x:hidden} section table{min-width:640px}
  th,td{padding:8px 6px}
  .btnrow{display:grid;grid-template-columns:1fr;gap:8px}
  .btnrow button{width:100%}
  .card,.reviewBox,.callout,.chartCard,.achievement,.panel{border-radius:16px}
  .miniChart{height:180px}
}
@media(display-mode:standalone){
  .mobile-install-card{display:none}
  body{padding-top:var(--safe-top)}
}

/* Version 0 Rev 2.5 - Mobile App UI Shell */
.mobile-app-header,.mobile-dashboard-hero{display:none}
@media(max-width:760px){
  html,body{background:#050c12!important;color:#eef6ff!important}
  body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif!important;padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
  .mobile-app-header{display:flex;position:sticky;top:0;z-index:200;align-items:center;justify-content:space-between;gap:12px;padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px;background:linear-gradient(135deg,#081f2c,#0d1722 52%,#632240);border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 10px 24px rgba(0,0,0,.35)}
  .mobile-brand{display:flex;align-items:center;gap:10px}.mobile-logo{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#632240,#ffbe3d);color:#fff;font-weight:900}.mobile-title{font-size:1.1rem;font-weight:900;line-height:1}.mobile-subtitle{font-size:.72rem;color:rgba(255,255,255,.7);margin-top:3px}
  .mobile-primary-action{min-height:38px!important;padding:8px 14px!important;border-radius:999px!important;background:#ffbe3d!important;color:#081f2c!important;font-weight:900!important}
  h1{display:none!important} h2{color:#fff!important;font-size:1.25rem!important;margin:10px 4px 12px!important} h3{color:#fff!important;margin:18px 4px 10px!important;font-size:1.02rem!important}
  main,.container,.wrap,.app,.shell{width:100%!important;max-width:none!important;margin:0!important;padding:12px!important;background:#050c12!important}
  section,.tab{background:#050c12!important;color:#eef6ff!important;padding:8px 0 18px!important}
  .mobile-dashboard-hero{display:block;margin:4px 0 14px;padding:16px;border-radius:22px;background:linear-gradient(145deg,rgba(8,31,44,.96),rgba(14,28,40,.92));border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 28px rgba(0,0,0,.34)}
  .mobile-status-eyebrow{color:rgba(255,255,255,.66);font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.mobile-status-main{color:#4de36f;font-size:1.8rem;font-weight:950;margin-top:5px}.mobile-status-detail{color:rgba(255,255,255,.78);font-size:.88rem;margin-top:4px}
  .mobile-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.mobile-kpi-grid div{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:10px}.mobile-kpi-grid span{display:block;font-size:1.15rem;font-weight:900;color:#ffbe3d}.mobile-kpi-grid small{display:block;margin-top:2px;color:rgba(255,255,255,.65);font-size:.68rem}
  .summary,.grid,.grid2,.chartGrid,.kpiRow{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .card,.reviewBox,.callout,.chartCard,.achievement,.panel,.kpiBox{background:linear-gradient(145deg,rgba(12,25,36,.98),rgba(8,31,44,.86))!important;color:#eef6ff!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 10px 24px rgba(0,0,0,.28)!important;border-radius:20px!important;padding:14px!important}
  label{color:rgba(255,255,255,.78)!important;font-weight:800!important}
  input,select,textarea{background:rgba(255,255,255,.94)!important;color:#081f2c!important;border-radius:14px!important;min-height:46px!important;font-size:16px!important}
  button{border-radius:16px!important;min-height:46px!important;font-weight:900!important}
  .btnrow{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.btnrow button{width:100%!important}
  table{min-width:0!important;width:100%!important;border-collapse:separate!important;border-spacing:0 8px!important;color:#eef6ff!important} thead{display:none!important} tbody,tr,td{display:block!important;width:100%!important}
  tr{background:linear-gradient(145deg,rgba(12,25,36,.98),rgba(8,31,44,.86))!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:16px!important;overflow:hidden!important;padding:8px!important;box-shadow:0 8px 18px rgba(0,0,0,.22)}td{border:none!important;padding:6px 8px!important;color:#eef6ff!important;font-size:.88rem!important}td:first-child{font-weight:900!important;color:#ffbe3d!important}
  .miniChart{background:#07131d!important;border-color:rgba(255,255,255,.12)!important;height:190px!important}
  .tabs,nav,.tabButtons{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:300!important;display:flex!important;gap:4px!important;overflow-x:auto!important;padding:8px 8px calc(9px + env(safe-area-inset-bottom,0px))!important;background:linear-gradient(180deg,rgba(5,12,18,.94),#050c12)!important;border-top:1px solid rgba(255,255,255,.14)!important;box-shadow:0 -10px 26px rgba(0,0,0,.42)!important}
  .tabs button,nav button,.tabButtons button{background:transparent!important;color:rgba(255,255,255,.72)!important;border:none!important;box-shadow:none!important;min-width:78px!important;min-height:48px!important;font-size:.72rem!important;padding:8px 8px!important}.tabs button.active,nav button.active,.tabButtons button.active{color:#ffbe3d!important;background:rgba(255,190,61,.10)!important}
  .mobile-install-card{display:none!important}
}

/* Version 0 Rev 2.6 - Native Mobile Layout Conversion */
.mobile-bottom-nav,.mobile-more-panel{display:none}

@media(max-width:760px){
  html,body{
    width:100%;
    min-height:100%;
    overflow-x:hidden!important;
    background:#050c12!important;
    color:#eef6ff!important;
  }

  body{
    padding:0 0 calc(90px + env(safe-area-inset-bottom,0px)) 0!important;
  }

  /* Hide original desktop nav/buttons on mobile. The new 5-button app nav replaces it. */
  body > .tabs,
  body > nav:not(.mobile-bottom-nav),
  body > .tabButtons,
  .tabs:not(.mobile-bottom-nav),
  nav:not(.mobile-bottom-nav),
  .tabButtons{
    display:none!important;
    position:static!important;
    height:0!important;
    overflow:hidden!important;
    padding:0!important;
    margin:0!important;
  }

  .mobile-app-header{
    display:flex!important;
    position:sticky!important;
    top:0!important;
    z-index:900!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px!important;
    background:linear-gradient(135deg,#081f2c,#0d1722 52%,#632240)!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.38)!important;
  }

  .mobile-brand{display:flex!important;align-items:center!important;gap:10px!important}
  .mobile-logo{
    width:38px!important;height:38px!important;border-radius:13px!important;
    display:grid!important;place-items:center!important;
    background:linear-gradient(135deg,#632240,#ffbe3d)!important;
    color:#fff!important;font-weight:950!important;
  }
  .mobile-title{font-size:1.08rem!important;font-weight:950!important;line-height:1!important;color:#fff!important}
  .mobile-subtitle{font-size:.72rem!important;color:rgba(255,255,255,.68)!important;margin-top:3px!important}
  .mobile-primary-action{
    min-height:38px!important;
    padding:8px 16px!important;
    border-radius:999px!important;
    background:#ffbe3d!important;
    color:#081f2c!important;
    border:none!important;
    box-shadow:none!important;
  }

  .mobile-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(5,1fr)!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:950!important;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))!important;
    background:linear-gradient(180deg,rgba(8,18,28,.96),#050c12)!important;
    border-top:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 -10px 28px rgba(0,0,0,.45)!important;
  }

  .mobile-bottom-nav button{
    background:transparent!important;
    color:rgba(255,255,255,.62)!important;
    border:none!important;
    box-shadow:none!important;
    display:grid!important;
    place-items:center!important;
    gap:3px!important;
    min-width:0!important;
    min-height:54px!important;
    padding:4px 2px!important;
    border-radius:16px!important;
    font-size:12px!important;
  }

  .mobile-bottom-nav button span{
    font-size:24px!important;
    line-height:1!important;
  }
  .mobile-bottom-nav button small{
    font-size:11px!important;
    line-height:1!important;
  }
  .mobile-bottom-nav button.active{
    color:#ffbe3d!important;
    background:rgba(255,190,61,.08)!important;
  }
  .mobile-bottom-nav .mobile-center-action{
    transform:translateY(-10px)!important;
  }
  .mobile-bottom-nav .mobile-center-action span{
    width:48px!important;height:48px!important;
    display:grid!important;place-items:center!important;
    border-radius:50%!important;
    background:linear-gradient(135deg,#632240,#ffbe3d)!important;
    color:#fff!important;
    font-size:30px!important;
    box-shadow:0 8px 20px rgba(0,0,0,.38)!important;
  }

  .mobile-more-panel{
    position:fixed!important;
    inset:0!important;
    z-index:940!important;
    background:rgba(0,0,0,.58)!important;
    backdrop-filter:blur(6px)!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:18px 12px calc(92px + env(safe-area-inset-bottom,0px))!important;
  }
  .mobile-more-panel.open{display:flex!important}
  .mobile-more-card{
    width:100%!important;
    max-height:70vh!important;
    overflow:auto!important;
    background:#07131d!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:24px!important;
    padding:14px!important;
    box-shadow:0 18px 40px rgba(0,0,0,.5)!important;
  }
  .mobile-more-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    margin-bottom:10px!important;
    color:#fff!important;
    font-size:1.1rem!important;
  }
  .mobile-more-card button{
    width:100%!important;
    margin:5px 0!important;
    background:rgba(255,255,255,.07)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.10)!important;
    text-align:left!important;
    box-shadow:none!important;
  }

  main,.container,.wrap,.app,.shell{
    padding:12px!important;
    background:#050c12!important;
  }

  section,.tab{
    padding-bottom:18px!important;
  }

  .mobile-dashboard-hero{
    display:block!important;
    margin:4px 0 14px!important;
    padding:16px!important;
    border-radius:24px!important;
    background:linear-gradient(145deg,rgba(99,34,64,.74),rgba(8,31,44,.92))!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.34)!important;
  }

  .mobile-status-main{
    color:#ffbe3d!important;
  }

  .mobile-quick-actions{
    display:block!important;
    margin:12px 0!important;
    padding:14px!important;
    border-radius:22px!important;
    background:linear-gradient(145deg,rgba(12,25,36,.98),rgba(8,31,44,.86))!important;
    border:1px solid rgba(255,255,255,.12)!important;
  }
  .mobile-quick-actions h3{
    margin:0 0 12px!important;
  }
  .mobile-action-grid{
    display:grid!important;
    grid-template-columns:repeat(2,1fr)!important;
    gap:10px!important;
  }
  .mobile-action-grid button{
    min-height:92px!important;
    display:grid!important;
    place-items:center!important;
    gap:5px!important;
    background:rgba(255,255,255,.07)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:none!important;
  }
  .mobile-action-grid button b{
    font-size:1.7rem!important;
    color:#ffbe3d!important;
  }
  .mobile-action-grid button span{
    font-size:.82rem!important;
    color:rgba(255,255,255,.76)!important;
  }

  /* prevent content from sliding under fixed nav */
  section:last-child{margin-bottom:90px!important}
}

/* Version 0 Rev 2.7 - Mobile usability / mockup alignment */
@media(max-width:760px){
  body{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important;background:#050c12!important;}
  body > .tabs, body > nav:not(.mobile-bottom-nav), body > .tabButtons,
  .tabs:not(.mobile-bottom-nav), nav:not(.mobile-bottom-nav), .tabButtons{
    display:none!important;visibility:hidden!important;height:0!important;max-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important;position:static!important;
  }
  .mobile-app-header{display:flex!important;position:sticky!important;top:0!important;z-index:900!important}
  .mobile-bottom-nav{
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:999!important;
    height:auto!important;padding:8px 8px calc(10px + env(safe-area-inset-bottom,0px))!important;background:rgba(5,12,18,.98)!important;backdrop-filter:blur(10px)!important;
  }
  .mobile-bottom-nav button{display:grid!important;place-items:center!important;gap:2px!important;min-height:56px!important;border-radius:16px!important;background:transparent!important;color:rgba(255,255,255,.65)!important;box-shadow:none!important}
  .mobile-bottom-nav button.active{color:#ffbe3d!important;background:rgba(255,190,61,.12)!important}
  .mobile-bottom-nav .mobile-center-action{transform:translateY(-12px)!important}
  .mobile-bottom-nav .mobile-center-action span{width:54px!important;height:54px!important;border-radius:999px!important;background:linear-gradient(135deg,#632240,#ffbe3d)!important;display:grid!important;place-items:center!important;color:white!important;font-size:32px!important;box-shadow:0 8px 22px rgba(0,0,0,.42)!important}
  .mobile-dashboard-hero.v27{display:block!important;margin:8px 0 14px!important;padding:18px!important;border-radius:28px!important;background:radial-gradient(circle at top right,rgba(255,190,61,.20),transparent 34%),linear-gradient(145deg,#632240,#081f2c 70%)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 16px 34px rgba(0,0,0,.4)!important}
  .mobile-hero-top{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:flex-start!important}
  .mobile-hero-top button{background:#ffbe3d!important;color:#081f2c!important;border-radius:999px!important;min-height:40px!important;padding:8px 16px!important;box-shadow:none!important}
  .mobile-status-main{font-size:1.75rem!important;color:#ffbe3d!important;font-weight:950!important}
  .mobile-command-card{display:block!important;margin:12px 0!important;padding:15px!important;border-radius:24px!important;background:linear-gradient(145deg,rgba(12,25,36,.98),rgba(8,31,44,.88))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 10px 28px rgba(0,0,0,.32)!important}
  .mobile-command-card h3{margin:0 0 12px!important;color:#fff!important}
  .mobile-action-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
  .mobile-action-grid button{min-height:96px!important;background:rgba(255,255,255,.07)!important;color:#fff!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:none!important}
  .mobile-action-grid b{font-size:1.8rem!important;color:#ffbe3d!important}
  .mobile-action-grid span{display:block!important;color:rgba(255,255,255,.8)!important;font-size:.84rem!important}
  section,.tab{padding-bottom:110px!important}
}

/* Version 0 Rev 2.8 - Compact Mobile UX */
.compact-mode-strip{display:none}

@media(max-width:760px){
  body.compact-mobile .compact-mode-strip,
  .compact-mode-strip{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    margin:6px 0 12px!important;
    padding:10px!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.07)!important;
    border:1px solid rgba(255,255,255,.10)!important;
  }
  .compact-mode-strip span{
    color:rgba(255,255,255,.78)!important;
    font-weight:900!important;
    font-size:.82rem!important;
  }
  .compact-mode-strip button{
    min-height:34px!important;
    padding:6px 10px!important;
    border-radius:999px!important;
    font-size:.78rem!important;
    background:rgba(255,255,255,.10)!important;
    color:#fff!important;
    box-shadow:none!important;
  }

  /* Default compact density on mobile */
  body.compact-mobile h2,
  body:not(.comfortable-mobile) h2{
    margin:6px 4px 8px!important;
    font-size:1.12rem!important;
  }
  body.compact-mobile h3,
  body:not(.comfortable-mobile) h3{
    margin:12px 4px 7px!important;
    font-size:.94rem!important;
  }

  body.compact-mobile .grid,
  body.compact-mobile .grid2,
  body.compact-mobile .summary,
  body.compact-mobile .chartGrid,
  body.compact-mobile .kpiRow,
  body:not(.comfortable-mobile) .grid,
  body:not(.comfortable-mobile) .grid2,
  body:not(.comfortable-mobile) .summary,
  body:not(.comfortable-mobile) .chartGrid,
  body:not(.comfortable-mobile) .kpiRow{
    gap:7px!important;
  }

  /* Compact field cards: keep touch size but remove wasted white space */
  body.compact-mobile label,
  body:not(.comfortable-mobile) label{
    font-size:.72rem!important;
    line-height:1.1!important;
    margin-bottom:2px!important;
  }
  body.compact-mobile input,
  body.compact-mobile select,
  body.compact-mobile textarea,
  body:not(.comfortable-mobile) input,
  body:not(.comfortable-mobile) select,
  body:not(.comfortable-mobile) textarea{
    min-height:40px!important;
    padding:7px 10px!important;
    border-radius:12px!important;
    font-size:16px!important;
  }
  body.compact-mobile textarea,
  body:not(.comfortable-mobile) textarea{
    min-height:58px!important;
  }

  body.compact-mobile .card,
  body.compact-mobile .reviewBox,
  body.compact-mobile .callout,
  body.compact-mobile .chartCard,
  body.compact-mobile .achievement,
  body.compact-mobile .panel,
  body.compact-mobile .kpiBox,
  body:not(.comfortable-mobile) .card,
  body:not(.comfortable-mobile) .reviewBox,
  body:not(.comfortable-mobile) .callout,
  body:not(.comfortable-mobile) .chartCard,
  body:not(.comfortable-mobile) .achievement,
  body:not(.comfortable-mobile) .panel,
  body:not(.comfortable-mobile) .kpiBox{
    padding:10px!important;
    border-radius:16px!important;
    margin-bottom:8px!important;
  }

  body.compact-mobile .btnrow,
  body:not(.comfortable-mobile) .btnrow{
    gap:7px!important;
  }
  body.compact-mobile button,
  body:not(.comfortable-mobile) button{
    min-height:40px!important;
    padding:8px 10px!important;
  }

  /* Profile page gets a tighter two-column rhythm where usable */
  #profile .grid{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  #profile .grid label:has(textarea),
  #profile textarea,
  #profile .reviewBox,
  #profile .callout,
  #profile .btnrow{
    grid-column:1/-1!important;
  }

  /* Long profile input sections become compact blocks */
  #profile h3{
    padding:8px 10px!important;
    margin:12px 0 6px!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.07)!important;
    border:1px solid rgba(255,255,255,.08)!important;
  }

  /* Dashboard / home denser but still visual */
  .mobile-dashboard-hero.v27{
    padding:14px!important;
    border-radius:22px!important;
    margin-bottom:10px!important;
  }
  .mobile-status-main{
    font-size:1.48rem!important;
  }
  .mobile-kpi-grid{
    margin-top:10px!important;
    gap:7px!important;
  }
  .mobile-kpi-grid div{
    padding:8px!important;
    border-radius:13px!important;
  }
  .mobile-command-card{
    padding:12px!important;
    border-radius:20px!important;
  }
  .mobile-action-grid{
    gap:8px!important;
  }
  .mobile-action-grid button{
    min-height:76px!important;
    border-radius:16px!important;
  }

  /* Tables/cards across pages less tall */
  tr{
    padding:6px!important;
    border-radius:14px!important;
    margin-bottom:6px!important;
  }
  td{
    padding:4px 6px!important;
    font-size:.82rem!important;
    line-height:1.2!important;
  }

  /* More panel compact list */
  .mobile-more-card{
    padding:12px!important;
    border-radius:22px!important;
  }
  .mobile-more-card button{
    min-height:40px!important;
    margin:4px 0!important;
    padding:8px 10px!important;
  }

  /* Comfortable override if user wants bigger spacing */
  body.comfortable-mobile h2{margin:10px 4px 12px!important;font-size:1.25rem!important}
  body.comfortable-mobile h3{margin:18px 4px 10px!important;font-size:1.02rem!important}
  body.comfortable-mobile .grid,
  body.comfortable-mobile .grid2,
  body.comfortable-mobile .summary{gap:10px!important}
  body.comfortable-mobile .card,
  body.comfortable-mobile .reviewBox,
  body.comfortable-mobile .callout,
  body.comfortable-mobile .chartCard,
  body.comfortable-mobile .achievement,
  body.comfortable-mobile .panel,
  body.comfortable-mobile .kpiBox{padding:14px!important;border-radius:20px!important}
  body.comfortable-mobile input,
  body.comfortable-mobile select,
  body.comfortable-mobile textarea{min-height:46px!important;padding:9px 12px!important}
  body.comfortable-mobile #profile .grid{grid-template-columns:1fr!important}
}

/* Version 0 Rev 2.8 - How To page */
.howto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.howto-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:var(--shadow)}
.howto-card h3{margin-top:0;color:var(--navy)}
.howto-card p,.howto-card li{line-height:1.42}
.howto-card ul,.howto-card ol{padding-left:20px}
.howto-card.important{border-color:var(--gold);background:#fff9e8}
.howto-card.warning{border-color:#c0392b;background:#fff1ef}
@media(max-width:760px){
  .howto-grid{grid-template-columns:1fr!important;gap:9px!important}
  .howto-card{background:linear-gradient(145deg,rgba(12,25,36,.98),rgba(8,31,44,.86))!important;color:#eef6ff!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:18px!important;padding:11px!important}
  .howto-card h3{color:#ffbe3d!important;margin:0 0 7px!important;background:transparent!important;border:none!important;padding:0!important}
  .howto-card p,.howto-card li{font-size:.86rem!important;line-height:1.32!important}
  .howto-card ul,.howto-card ol{padding-left:18px!important;margin-top:6px!important;margin-bottom:6px!important}
  .howto-card.important{border-color:rgba(255,190,61,.45)!important;background:linear-gradient(145deg,rgba(99,34,64,.50),rgba(8,31,44,.92))!important}
  .howto-card.warning{border-color:rgba(192,57,43,.55)!important;background:linear-gradient(145deg,rgba(90,20,16,.55),rgba(8,31,44,.92))!important}
}

/* Version 0 Rev 2.9 - Product Dashboard Layout */
.product-shell{
  background:#05080c!important;
  color:#eef6ff!important;
}
.product-desktop-header{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  max-width:1180px;margin:14px auto 0;padding:14px 20px;
  background:rgba(8,16,24,.92);border:1px solid rgba(255,255,255,.12);
  border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.35);
}
.product-brand{font-size:1.5rem;font-weight:950;letter-spacing:-.03em}
.product-brand span{color:#fff}.product-brand b{color:#2f8cff}
.product-nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.product-nav button{background:transparent;color:rgba(255,255,255,.72);border:none;box-shadow:none;padding:9px 12px;border-radius:12px;font-weight:800}
.product-nav button:hover{background:rgba(47,140,255,.14);color:#2f8cff}
.product-user{color:#fff;font-weight:800}

.product-dashboard-layout{
  display:grid;
  grid-template-columns:1.5fr repeat(4,1fr);
  gap:14px;
  margin:12px 0;
}
.product-status-card,.product-mini-card,.product-panel{
  background:linear-gradient(145deg,rgba(14,20,28,.98),rgba(7,13,20,.96));
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  padding:18px;
  box-shadow:0 16px 36px rgba(0,0,0,.32);
}
.product-status-card{grid-column:span 2}
.eyebrow{font-size:.8rem;text-transform:uppercase;color:rgba(255,255,255,.72);letter-spacing:.06em;font-weight:900}
.status-line{font-size:2rem;color:#36e06a;font-weight:950;margin:8px 0}
.focus-line{font-weight:800;color:#fff;margin-bottom:10px}
.status-metrics{display:flex;gap:14px;border-top:1px solid rgba(255,255,255,.10);border-bottom:1px solid rgba(255,255,255,.10);padding:10px 0;color:rgba(255,255,255,.75)}
.status-metrics b{color:#ffdf62}
.product-status-card p{color:rgba(255,255,255,.78);margin-bottom:0}

.product-mini-card div{font-size:.8rem;text-transform:uppercase;color:rgba(255,255,255,.72);font-weight:900}
.product-mini-card b{display:block;font-size:2rem;color:#fff;margin:8px 0 2px}
.product-mini-card small{color:rgba(255,255,255,.72)}
.product-mini-card a{display:block;margin-top:8px;color:#2f8cff;cursor:pointer}
.product-mini-card canvas{height:38px!important;width:100%;margin-top:8px}

.product-wide{grid-column:span 3}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.panel-head h3{margin:0!important;padding:0!important;background:transparent!important;border:none!important;color:#fff!important}
.panel-head a{color:#2f8cff;cursor:pointer}
.panel-head select{max-width:110px;min-height:32px}
.product-achievements .achievement{box-shadow:none!important;margin-bottom:8px!important}
.product-list{display:grid;gap:10px;color:rgba(255,255,255,.84)}
.product-list .pr-row{display:flex;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:9px}
.recovery-ring{
  width:150px;height:150px;border-radius:999px;margin:10px auto;
  display:grid;place-items:center;
  background:radial-gradient(circle at center,#08131d 54%,transparent 55%),conic-gradient(#7ed957 0 78%,rgba(255,255,255,.10) 78% 100%);
}
.recovery-ring span{font-size:1.8rem;font-weight:950;color:#fff}
.recovery-ring small{display:block;color:rgba(255,255,255,.68)}
.next-focus{text-align:center;color:rgba(255,255,255,.7)}.next-focus b{color:#fff}

#dashboard > h3:nth-of-type(1),
#dashboard > .summary,
#dashboard > h3:nth-of-type(2),
#dashboard > .chartGrid,
#dashboard > h3:nth-of-type(3),
#dashboard > #prTable,
#dashboard > h3:nth-of-type(4),
#dashboard > #achievementCards{
  display:none!important;
}

@media(max-width:760px){
  .product-desktop-header{display:none!important}
  .product-dashboard-layout{
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin:8px 0!important;
  }
  .product-status-card{grid-column:1/-1!important;padding:16px!important;border-radius:20px!important}
  .product-mini-card{padding:14px!important;border-radius:16px!important}
  .product-mini-card b{font-size:1.45rem!important}
  .product-wide,.product-panel{grid-column:1/-1!important}
  .product-panel{padding:14px!important;border-radius:18px!important}
  .status-line{font-size:1.65rem!important}
  .status-metrics{gap:8px;justify-content:space-between;font-size:.78rem}
  .recovery-ring{width:130px;height:130px}
  .mobile-dashboard-hero,.mobile-command-card{display:none!important}
}

/* Version 0 Rev 3.0 - Clean Product Experience / PrimeTrack mockup alignment */
:root{
  --pt-bg:#05070b;
  --pt-panel:#0b1117;
  --pt-panel2:#0f171f;
  --pt-line:rgba(255,255,255,.11);
  --pt-text:#f4f8ff;
  --pt-muted:rgba(244,248,255,.66);
  --pt-blue:#2388ff;
  --pt-purple:#8f4dff;
  --pt-green:#32e16c;
  --pt-orange:#ff8a2a;
  --pt-gold:#f7c84b;
}

/* Hide version/build-focus clutter on working pages */
body.product-shell > .callout:first-of-type,
body.product-shell > .mobile-install-card,
.version-card,
.build-focus,
#dashboard > .callout:first-of-type,
#profile > .callout:first-of-type,
#equipment > .callout:first-of-type,
#template > .callout:first-of-type,
#log > .callout:first-of-type,
#history > .callout:first-of-type,
#nutrition > .callout:first-of-type,
#goals > .callout:first-of-type,
#schedule > .callout:first-of-type,
#recovery > .callout:first-of-type,
#data > .callout:first-of-type,
#feedback > .callout:first-of-type{
  display:none!important;
}

/* Full app visual reset */
body.product-shell{
  background:
    radial-gradient(circle at 22% 0%,rgba(35,136,255,.16),transparent 35%),
    radial-gradient(circle at 80% 5%,rgba(143,77,255,.12),transparent 30%),
    var(--pt-bg)!important;
  color:var(--pt-text)!important;
}

.product-desktop-header{
  max-width:1240px!important;
  background:linear-gradient(180deg,rgba(16,22,30,.92),rgba(8,12,18,.96))!important;
  border:1px solid var(--pt-line)!important;
  border-radius:18px!important;
}

.product-brand{letter-spacing:-.04em!important}
.product-brand span{color:#fff!important}
.product-brand b{color:var(--pt-blue)!important}

.product-nav button{
  color:var(--pt-muted)!important;
}
.product-nav button:hover,
.product-nav button.active{
  color:var(--pt-blue)!important;
  background:rgba(35,136,255,.12)!important;
}

.product-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.product-actions button{
  background:linear-gradient(135deg,var(--pt-blue),var(--pt-purple))!important;
  color:white!important;
  border:none!important;
  border-radius:12px!important;
  padding:9px 12px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(35,136,255,.22)!important;
}
.product-user{color:#fff!important}

main,.container,.wrap,.app,.shell{
  max-width:1240px!important;
}

section,.tab{
  color:var(--pt-text)!important;
}

h2{
  color:#fff!important;
  letter-spacing:-.03em!important;
}
h3{
  color:#fff!important;
}

/* PrimeTrack dashboard exactly closer to reference */
.product-dashboard-layout{
  grid-template-columns:1.45fr repeat(4,1fr)!important;
  gap:14px!important;
}
.product-status-card,
.product-mini-card,
.product-panel{
  background:
    linear-gradient(145deg,rgba(16,24,32,.96),rgba(5,10,15,.98))!important;
  border:1px solid var(--pt-line)!important;
  box-shadow:0 20px 44px rgba(0,0,0,.42)!important;
}

.product-status-card{
  grid-column:span 2!important;
}
.product-status-card .eyebrow,
.product-mini-card div{
  color:var(--pt-muted)!important;
}
.status-line{
  color:var(--pt-green)!important;
  text-shadow:0 0 18px rgba(50,225,108,.28);
}
.status-metrics{
  border-color:var(--pt-line)!important;
}
.status-metrics b{
  color:#c8ff67!important;
}
.product-mini-card b{
  color:white!important;
}
.product-mini-card a,.panel-head a{
  color:var(--pt-blue)!important;
}
.product-mini-card canvas{
  background:transparent!important;
}
.product-wide{
  grid-column:span 3!important;
}

.recovery-ring{
  background:
    radial-gradient(circle at center,#08131d 54%,transparent 55%),
    conic-gradient(var(--pt-green) 0 78%,rgba(255,255,255,.10) 78% 100%)!important;
}

/* General page panels/cards */
.card,.reviewBox,.callout,.chartCard,.achievement,.panel,.kpiBox,.howto-card{
  background:linear-gradient(145deg,rgba(16,24,32,.96),rgba(5,10,15,.98))!important;
  color:var(--pt-text)!important;
  border:1px solid var(--pt-line)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.34)!important;
}

input,select,textarea{
  background:rgba(255,255,255,.94)!important;
  color:#07111b!important;
  border:1px solid rgba(255,255,255,.15)!important;
}
button{
  border-radius:12px!important;
}
button:not(.mobile-primary-action):not(.mobile-bottom-nav button){
  background:linear-gradient(135deg,var(--pt-blue),var(--pt-purple))!important;
  color:white!important;
  border:none!important;
}

/* Tables less legacy */
table{
  border-collapse:separate!important;
  border-spacing:0!important;
  overflow:hidden!important;
  border-radius:16px!important;
}
th{
  background:rgba(35,136,255,.12)!important;
  color:#fff!important;
}
td{
  background:rgba(255,255,255,.03)!important;
  color:var(--pt-text)!important;
  border-color:rgba(255,255,255,.07)!important;
}

/* Mobile mirrors uploaded reference more closely */
@media(max-width:760px){
  body.product-shell{
    background:
      radial-gradient(circle at 50% -8%,rgba(35,136,255,.18),transparent 34%),
      #05070b!important;
  }

  .mobile-app-header{
    background:rgba(5,9,14,.96)!important;
    border-bottom:1px solid rgba(255,255,255,.09)!important;
    box-shadow:none!important;
  }
  .mobile-logo{
    background:linear-gradient(135deg,var(--pt-blue),var(--pt-purple))!important;
  }
  .mobile-title{
    letter-spacing:-.03em!important;
  }
  .mobile-title::first-letter{
    color:#fff!important;
  }
  .mobile-primary-action{
    background:linear-gradient(135deg,var(--pt-blue),var(--pt-purple))!important;
    color:#fff!important;
  }

  .product-dashboard-layout{
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .product-status-card{
    grid-column:1/-1!important;
    border-radius:18px!important;
    padding:16px!important;
  }
  .product-mini-card{
    border-radius:14px!important;
    padding:14px!important;
  }
  .product-mini-card b{
    font-size:1.55rem!important;
  }
  .product-wide,.product-panel{
    grid-column:1/-1!important;
  }
  .product-panel{
    border-radius:16px!important;
  }
  .status-line{
    font-size:1.65rem!important;
  }

  .mobile-bottom-nav{
    background:rgba(5,9,14,.98)!important;
    border-top:1px solid rgba(255,255,255,.11)!important;
  }
  .mobile-bottom-nav button.active{
    color:var(--pt-blue)!important;
    background:rgba(35,136,255,.10)!important;
  }
  .mobile-bottom-nav .mobile-center-action span{
    background:linear-gradient(135deg,var(--pt-blue),var(--pt-purple))!important;
  }

  .mobile-more-card{
    background:#080d13!important;
  }

  #dashboard > h2{
    display:none!important;
  }
}

/* Keep How To available, but not visually noisy */
#howto .callout{
  display:block!important;
}

/* Version 0 Rev 3.1 - Aggressive clean working-page header removal */
body.product-shell .hero,
body.product-shell .hero-copy,
body.product-shell .intro,
body.product-shell .buildFocus,
body.product-shell .build-focus,
body.product-shell .version-details,
body.product-shell .versionDetails,
body.product-shell .version-banner,
body.product-shell .build-banner,
body.product-shell .status-banner,
body.product-shell .mobile-install-card{
  display:none!important;
}

/* Hide any old top banner/callout style areas that contain version/build language */
body.product-shell [class*="version" i],
body.product-shell [class*="build-focus" i],
body.product-shell [class*="buildFocus" i]{
  display:none!important;
}

/* Preserve Change Log content even though it has version words */
#changelog [class*="version" i],
#changelog [class*="build" i],
#howto [class*="version" i],
#howto [class*="build" i]{
  display:revert!important;
}

/* Create clean page spacing */
.tab > h2:first-child{
  margin-top:10px!important;
}
.product-shell section > .callout:first-of-type:not(#howto .callout){
  display:none!important;
}
.product-shell section > p:first-of-type,
.product-shell section > .sub:first-of-type,
.product-shell section > .subtitle:first-of-type{
  display:none!important;
}

/* Hide text blocks that were from old build header if still present */
.clean-hidden{
  display:none!important;
}

/* Version 0 Rev 3.2 - exact cleanup toward mockup */
body.product-shell{
  background:#030609!important;
}

/* Kill old HTML prototype header/banners everywhere except How To and Change Log */
body.product-shell > .callout,
body.product-shell > .reviewBox,
body.product-shell > .card:first-of-type,
body.product-shell section:not(#howto):not(#changelog) > .callout:first-of-type,
body.product-shell section:not(#howto):not(#changelog) > .reviewBox:first-of-type,
body.product-shell section:not(#howto):not(#changelog) > .card:first-of-type{
  display:none!important;
}

body.product-shell *:not(#howto *):not(#changelog *) {
  --maroon:#2388ff!important;
  --plum:#2388ff!important;
  --gold:#2388ff!important;
}

/* If any legacy build/version text remains, collapse its usual visual containers */
.clean-hidden,
[class*="build" i]:not(#template *):not(#changelog *):not(#howto *),
[class*="version" i]:not(#changelog *):not(#howto *){
  display:none!important;
}

/* App shell closer to reference */
.product-desktop-header{
  max-width:1260px!important;
  margin:10px auto 10px!important;
  padding:12px 18px!important;
  border-radius:16px!important;
  background:rgba(8,12,17,.94)!important;
  box-shadow:0 12px 36px rgba(0,0,0,.48)!important;
}
.product-brand{font-size:1.35rem!important}
.product-nav button{font-size:.78rem!important;padding:7px 10px!important}
.product-actions button{padding:8px 10px!important;font-size:.78rem!important}

/* Page content compact */
main,.container,.wrap,.app,.shell{
  max-width:1260px!important;
  padding-top:0!important;
}
.tab > h2:first-child{
  display:none!important;
}

/* Dashboard exact grid */
.product-dashboard-layout{
  display:grid!important;
  grid-template-columns:1.55fr repeat(4,1fr)!important;
  gap:12px!important;
  margin:0!important;
}
.product-status-card,.product-mini-card,.product-panel,.product-quote-panel{
  background:linear-gradient(145deg,rgba(18,24,31,.96),rgba(5,9,13,.98))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:13px!important;
  box-shadow:0 18px 42px rgba(0,0,0,.46)!important;
}
.product-status-card{grid-column:span 2!important;padding:16px!important}
.product-mini-card{padding:15px!important;min-height:135px!important}
.product-panel{padding:16px!important}
.product-wide{grid-column:span 2!important}
.product-frequency-panel{grid-column:span 2!important}
.product-panel .miniChart{height:210px!important;background:#060b10!important}
.product-achievements{display:grid!important;gap:8px!important}
.product-achievements .achievement{
  padding:8px!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.04)!important;
}
.product-muscle-panel{grid-column:span 2!important}
.muscle-focus-visual{display:flex;align-items:center;justify-content:space-around;min-height:175px}
.muscle-figure{font-size:5.5rem;filter:drop-shadow(0 0 12px rgba(35,136,255,.35))}
.muscle-legend{display:grid;gap:10px;color:rgba(255,255,255,.78)}
.muscle-legend span{display:flex;align-items:center;gap:8px}
.muscle-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.muscle-legend .high{background:#32e16c}.muscle-legend .moderate{background:#2388ff}.muscle-legend .low{background:#ff8a2a}.muscle-legend .minimal{background:#89939e}
.product-quote-panel{
  grid-column:1/-1!important;
  padding:18px!important;
  text-align:center!important;
  color:rgba(255,255,255,.68)!important;
  font-size:1.15rem!important;
  font-style:italic!important;
}

.status-line{font-size:1.7rem!important}
.product-mini-card b{font-size:1.75rem!important}

/* Mobile closer to uploaded reference */
@media(max-width:760px){
  body.product-shell{
    background:#030609!important;
    padding-top:0!important;
  }
  .mobile-app-header{
    padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px!important;
    background:#05090e!important;
  }
  .mobile-title{font-size:1.05rem!important}
  .mobile-subtitle{font-size:.68rem!important}
  .mobile-primary-action{
    min-height:38px!important;
    padding:8px 14px!important;
    background:linear-gradient(135deg,#2388ff,#8f4dff)!important;
  }
  main,.container,.wrap,.app,.shell{
    padding:10px!important;
  }
  .product-dashboard-layout{
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  .product-status-card{
    grid-column:1/-1!important;
    padding:14px!important;
    border-radius:12px!important;
  }
  .product-mini-card{
    padding:12px!important;
    min-height:116px!important;
    border-radius:12px!important;
  }
  .product-mini-card b{font-size:1.45rem!important}
  .product-wide,.product-frequency-panel,.product-panel,.product-muscle-panel,.product-quote-panel{
    grid-column:1/-1!important;
  }
  .product-frequency-panel,.product-muscle-panel{display:none!important}
  .product-panel{padding:13px!important;border-radius:12px!important}
  .product-panel .miniChart{height:170px!important}
  .status-line{font-size:1.45rem!important}
  .status-metrics{font-size:.74rem!important}
  .product-quote-panel{display:none!important}
  .recovery-ring{width:112px!important;height:112px!important}
  .mobile-bottom-nav{
    height:auto!important;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))!important;
  }
  .mobile-bottom-nav button{min-height:52px!important}
  .mobile-bottom-nav .mobile-center-action span{
    width:52px!important;height:52px!important;
  }
}

/* Version 0 Rev 3.3 - App-first layout */
body.product-shell{
  background:#030609!important;
  color:#f5f8ff!important;
  overflow-x:hidden!important;
}

/* Remove remaining legacy prototype banners */
body.product-shell .mobile-install-card,
body.product-shell > .callout,
body.product-shell > .reviewBox,
body.product-shell > .card,
body.product-shell .buildFocus,
body.product-shell .build-focus,
body.product-shell .version-details,
body.product-shell .version-banner{
  display:none!important;
}

#dashboard > h2{display:none!important}

/* Hide all old dashboard content except the new clean dashboard */
#dashboard > *:not(.app-dashboard-clean){
  display:none!important;
}
#dashboard .app-dashboard-clean,
#dashboard .app-dashboard-clean *{
  display:revert;
}

/* Clean dashboard inspired by reference mockup */
.app-dashboard-clean{
  display:grid!important;
  grid-template-columns:1.45fr repeat(4,1fr);
  gap:12px;
  max-width:1240px;
  margin:10px auto 0;
}
.app-status-card,.app-kpi-card,.app-chart-card,.app-list-card{
  background:linear-gradient(145deg,rgba(16,23,31,.96),rgba(5,9,14,.98));
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  box-shadow:0 18px 42px rgba(0,0,0,.42);
}
.app-status-card{
  grid-column:span 2;
  padding:18px;
}
.app-eyebrow,.app-kpi-card div{
  color:rgba(255,255,255,.68);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.05em;
}
.app-status{
  color:#31df68;
  font-size:1.9rem;
  font-weight:950;
  margin:8px 0;
}
.app-focus{font-weight:800;color:#fff;margin-bottom:10px}
.app-metrics-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.72);
}
.app-metrics-row b{display:block;color:#b9ff68;margin-top:4px}
.app-status-card p{color:rgba(255,255,255,.76);margin:10px 0 0}
.app-kpi-card{padding:16px;min-height:130px}
.app-kpi-card b{display:block;font-size:1.9rem;color:#fff;margin:8px 0 2px}
.app-kpi-card small{color:rgba(255,255,255,.68)}
.app-chart-card{grid-column:span 3;padding:16px}
.app-list-card{grid-column:span 2;padding:16px}
.app-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.app-card-head h3{margin:0!important;color:#fff!important;background:transparent!important;border:0!important;padding:0!important}
.app-card-head span{color:#2388ff;font-size:.82rem}
.clean-pr-row{display:grid;grid-template-columns:1fr auto;gap:4px;color:#fff}
.clean-pr-row span{color:rgba(255,255,255,.68);grid-column:1}
.clean-pr-row strong{color:#31df68;grid-column:2;grid-row:1/3;align-self:center}

/* Desktop nav look */
.product-desktop-header{
  max-width:1240px!important;
  background:rgba(8,12,17,.95)!important;
  border:1px solid rgba(255,255,255,.1)!important;
}
.product-brand b{color:#2388ff!important}
.product-nav button,.product-actions button,.mobile-primary-action{
  background:linear-gradient(135deg,#2388ff,#8f4dff)!important;
  color:#fff!important;
  border:0!important;
}

/* Mobile true app look */
@media(max-width:760px){
  body.product-shell{
    background:#030609!important;
    padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
  }
  .product-desktop-header{display:none!important}
  .mobile-app-header{
    display:flex!important;
    background:#05090e!important;
    border-bottom:1px solid rgba(255,255,255,.09)!important;
    box-shadow:none!important;
  }
  .mobile-logo,.mobile-primary-action,.mobile-bottom-nav .mobile-center-action span{
    background:linear-gradient(135deg,#2388ff,#8f4dff)!important;
  }
  main,.container,.wrap,.app,.shell{
    padding:10px!important;
    background:#030609!important;
  }
  .app-dashboard-clean{
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin:0!important;
  }
  .app-status-card{
    grid-column:1/-1!important;
    border-radius:14px!important;
    padding:14px!important;
  }
  .app-status{font-size:1.5rem!important}
  .app-metrics-row{font-size:.78rem}
  .app-kpi-card{
    min-height:112px!important;
    padding:13px!important;
    border-radius:14px!important;
  }
  .app-kpi-card b{font-size:1.45rem!important}
  .app-chart-card,.app-list-card{
    grid-column:1/-1!important;
    border-radius:14px!important;
    padding:13px!important;
  }
  .app-chart-card .miniChart{height:170px!important}
  .mobile-bottom-nav{
    background:#05090e!important;
    border-top:1px solid rgba(255,255,255,.10)!important;
  }
  .mobile-bottom-nav button.active{
    color:#2388ff!important;
    background:rgba(35,136,255,.10)!important;
  }
}
