[hidden]{display:none!important}
/* Shared Moonman language: landing, account, public progress and retained pages. */
:root{
  --paper:#f8fafc;
  --white:#ffffff;
  --ink:#0f172a;
  --forest:#244de8;
  --forest-hover:#173abf;
  --muted:#475569;
  --line:#e2e8f0;
  --soft:#f1f5f9;
  --mint:#eff4ff;
  --red:#dc2626;
  --radius:20px;
  --bg:#f8fafc;
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --green:#244de8;
  --amber:#8e452a;
  --mm-cal:#3b82f6;
  --mm-pro:#f43f5e;
  --mm-fat:#f59e0b;
  --mm-carb:#10b981;
  --mm-fresh:#10b981;
  --mm-recovering:#f59e0b;
  --mm-utilized:#244de8;
  --mm-fatigued:#ef4444;
  --mm-neutral-muscle:#cbd5e1;
  --mm-type-kpi:2rem;
  --mm-type-heading:1.25rem;
  --mm-type-body:1rem;
  --mm-type-label:0.8125rem;
  --sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  color-scheme:light;
  font-family:var(--sans);
}
:root[data-surface="public"]{
  --paper:#fafbf8;
  --white:#ffffff;
  --bg:#fafbf8;
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --ink:#202b38;
  --muted:#5c6570;
  --line:#dce0e2;
  --soft:#f0f3f8;
  --mint:#edf1ff;
  color-scheme:light;
}
:root[data-theme="dark"]:not([data-surface="public"]){
  --paper:#0b1120;
  --white:#111c33;
  --bg:#0b1120;
  --surface:#111c33;
  --surface-subtle:#16233f;
  --ink:#f8fafc;
  --forest:#244de8;
  --forest-hover:#173abf;
  --muted:#94a3b8;
  --line:#1e293b;
  --soft:#16233f;
  --mint:#1e293b;
  --mm-neutral-muscle:#334155;
  color-scheme:dark;
}
html,body{background:var(--paper);color:var(--ink)}body{font-family:var(--sans)}body:before,.noise{display:none}h1,h2,h3,h4,.brand{font-family:inherit;font-weight:650;letter-spacing:-.04em}.site-brand,.brand.site-brand{display:inline-flex;align-items:center;gap:9px;font-size:27px;font-weight:750;letter-spacing:-1.7px;white-space:nowrap;line-height:1.1;color:var(--ink)}.site-brand svg{width:31px;height:31px;flex:none;color:#244de8}.site-fit{font-weight:400}.site-brand span{color:inherit;display:inline}.site-header.site-unified{height:92px;max-width:1240px;margin:0 auto;padding:0 48px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.site-unified nav{display:flex;gap:20px;align-items:center}.site-unified nav a{font:550 14px/1.4 Arial,sans-serif;color:var(--ink);padding:8px 14px;border-radius:999px;text-decoration:none;transition:background .15s,color .15s}.site-unified nav a:hover{background:#eef2fb;color:#244de8;text-decoration:none}.site-unified nav a[aria-current=page]{color:#244de8;background:#edf1ff;font-weight:650}.site-coach-link,.nav-cta-pill{display:inline-flex;align-items:center;gap:8px;background:#edf1ff!important;color:#244de8!important;border:1px solid #c5d1f4;padding:8px 18px!important;border-radius:999px;font-weight:650!important;text-decoration:none!important}.site-coach-link:hover,.nav-cta-pill:hover{background:#244de8!important;color:#fff!important;border-color:#244de8!important}.site-main{width:min(1240px,100%);margin:auto;padding:0 48px 60px;min-height:calc(100vh - 250px)}.site-intro{padding:56px 0 44px;display:flex;align-items:flex-end;justify-content:space-between;gap:36px}.site-kicker{font-size:11px;font-weight:700;letter-spacing:.09em;color:var(--muted);margin-bottom:18px;text-transform:uppercase}.site-intro h1{font-size:clamp(44px,5.5vw,72px);line-height:1.02;margin:0 0 22px}.site-intro h1 span{color:#244de8}.site-lead{font-size:17px;line-height:1.65;color:var(--muted);margin:0;max-width:560px}.site-small{font-size:12px;color:var(--muted);line-height:1.6}.site-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:#244de8;color:#ffffff;border:1px solid #244de8;border-radius:12px;padding:15px 24px;font-size:14px;font-weight:650;min-height:52px;cursor:pointer;white-space:nowrap;box-shadow:0 6px 20px rgba(36,77,232,.18)}.site-button:hover,.site-button:focus-visible{background:#173abf;border-color:#173abf;color:#ffffff}.site-button.secondary{background:var(--white);color:#244de8;border-color:#c5d1f4;box-shadow:none}.site-text-link{display:inline-flex;gap:12px;align-items:center;min-height:44px;font-size:13px;color:#244de8;background:none;border:0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.community-members{display:contents}.community-card{border:1px solid #dce0e2;background:#fff;border-radius:18px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.community-card .site-kicker{font-size:9px;margin:23px 0 12px}.community-card h2{font-size:28px;line-height:1.12;overflow-wrap:anywhere}.community-card>p:not(.site-kicker){font-size:14px;color:#5c6570;line-height:1.6}.community-card .site-text-link{margin-top:auto}.founder-card{background:#edf1ff;border-color:#dce3fc}.person-avatar{width:47px;height:47px;border-radius:14px;display:grid;place-items:center;background:#244de8;color:white;font-size:22px;font-weight:700;flex:none}.community-totals{display:flex;gap:35px;margin:10px 0 12px}.community-totals dt{font-size:11px;color:#5c6570}.community-totals dd{font-size:36px;font-weight:600;margin:6px 0}.site-explainer{display:grid;grid-template-columns:1fr 1fr;gap:60px;border-top:1px solid #dce0e2;padding:55px 0 40px;margin-top:56px}.site-explainer h2{font-size:38px;line-height:1.1}.site-explainer ol{margin:0;padding-left:22px}.site-explainer li{padding:0 0 20px 8px}.site-explainer strong{font-size:16px}.site-explainer p{font-size:14px;color:#5c6570;margin:8px 0 0}.site-archive{padding:20px 0;border-top:1px solid #dce0e2;font-size:13px;color:#5c6570}.site-archive summary{cursor:pointer;min-height:32px;color:#202b38}.site-archive a{display:inline-block;margin-right:22px;color:#244de8;text-decoration:underline;padding:10px 0}.site-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;width:min(1144px,calc(100% - 96px));margin:0 auto;padding:25px 0;border-top:1px solid #dce0e2;font-size:11px;color:#5c6570}.site-footer nav{display:flex;flex-wrap:wrap;gap:18px}.site-footer nav a{min-height:40px;display:flex;align-items:center}.site-footer p{flex-basis:100%;margin:0;font-size:10px}.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}.site-main :focus-visible,.site-unified :focus-visible{outline:2px solid #244de8;outline-offset:4px}.mission-day{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;border-radius:24px;background:#edf1ff;width:230px;height:230px;color:#244de8;font-size:11px;letter-spacing:.1em}.mission-day strong{font-size:115px;line-height:1.2;letter-spacing:-.08em;font-weight:600}.site-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.site-stat-grid article{padding:25px;border:1px solid #dce0e2;border-radius:16px;background:white}.site-stat-grid p{font-size:13px;color:#5c6570}.site-stat-grid strong{font-size:40px;display:block;letter-spacing:-.04em}.site-stat-grid small{font-size:16px;font-weight:400}.site-stat-grid span{display:block;font-size:11px;color:#5c6570;margin-top:13px}.site-section{padding-top:58px}.site-section h2{font-size:35px}.site-muted{color:#5c6570}.site-empty{background:#f0f3f8;border-radius:12px;padding:24px;font-size:14px}.site-table{width:100%;overflow-x:auto;margin:20px 0}.site-table table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.site-table caption{text-align:left;padding:16px 0;font-weight:600}.site-table td,.site-table th{padding:15px 12px;border-bottom:1px solid #dce0e2;white-space:nowrap}.site-table th{font-weight:600}.site-table small{display:block;font-size:10px;color:#5c6570;font-weight:400}.site-journal-entry{max-width:750px;border-top:1px solid #dce0e2;padding:25px 0}.site-journal-entry h3{font-size:24px;text-transform:none}.site-journal-entry>p:last-child{color:#5c6570;line-height:1.7}.site-callout{background:#edf1ff;border-radius:20px;padding:36px;margin-top:45px}.site-callout h2{font-size:34px}.site-callout p{color:#5c6570}.site-callout a{margin-right:20px}.site-weight-chart{margin:20px 0;background:white;border:1px solid #dce0e2;border-radius:16px;padding:20px}.site-weight-chart svg{width:100%;height:auto}.site-weight-chart text{font:12px Arial;fill:#5c6570}
/* Account pages keep their behavior and optional dark setting, with the same design. */
.shell{max-width:1240px;padding-inline:48px}.header,.journal-nav{min-height:92px;border-color:var(--line)}.header .nav{gap:20px;font-size:14px;font-weight:550}.header .nav a:not(.nav-cta-pill){padding:8px 12px;border-radius:999px;transition:background .15s,color .15s}.header .nav a:not(.nav-cta-pill):hover{background:var(--soft);color:var(--forest)}.tabs{gap:6px;background:var(--soft);padding:5px;border-radius:999px;border:1px solid var(--line)}.tabs button{padding:9px 16px;border-radius:999px;border:0;font-size:13px;font-weight:600;color:var(--muted);transition:all .15s}.tabs button:hover{color:var(--forest)}.tabs button.active{background:#244de8;color:#ffffff;box-shadow:0 2px 8px rgba(36,77,232,.22)}.tabs button.active:hover,.tabs button.active:focus-visible{background:#173abf;color:#ffffff}.card,.settings .card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 4px 20px rgba(15,23,42,.03)}.btn{border-radius:11px;background:#244de8;color:#ffffff;border:1px solid #244de8;font-weight:650}.btn:hover,.btn:focus-visible{background:#173abf;border-color:#173abf;color:#ffffff}.btn>*{color:inherit}.btn.outline{background:var(--surface);color:#244de8;border:1px solid #c5d1f4}.btn.outline:hover,.btn.outline:focus-visible{background:var(--soft);border-color:#244de8;color:#173abf}:root[data-theme="dark"] .btn.outline{background:var(--surface);color:var(--ink);border-color:var(--line)}:root[data-theme="dark"] .btn.outline:hover,:root[data-theme="dark"] .btn.outline:focus-visible{background:var(--soft);color:#ffffff;border-color:#60a5fa}.btn.danger{background:#dc2626;border-color:#dc2626;color:#ffffff}.btn.danger:hover,.btn.danger:focus-visible{background:#b91c1c;border-color:#b91c1c;color:#ffffff}.field input,.field textarea,.field select{border-radius:10px;background:var(--surface);font-size:16px;color:var(--ink);border:1px solid var(--line)}.eyebrow,.edition{font-family:var(--sans);letter-spacing:.08em;color:var(--forest);font-weight:700}.progress-summary>div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}.progress-summary dd{font-family:var(--sans);font-weight:650}.settings-disclosure{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 20px;margin-bottom:14px}.settings-disclosure>summary{padding-block:20px}.chat-compose{border-radius:14px}.message.in{background:var(--mint);border-radius:15px 15px 4px 15px;padding:14px 17px}.message.out{background:var(--surface);border:1px solid var(--line);border-radius:15px 15px 15px 4px;padding:14px 17px}.message{max-width:92%;margin-bottom:14px}.chat-head h1{font-family:inherit}.footer{font-family:var(--sans)}
/* Retained manual records use a light, readable archive surface. */
body:has(#accountDialog){color:#202b38;background:#fafbf8}body:has(#accountDialog) .site-header{max-width:1144px;margin:auto;padding-inline:24px;height:96px}body:has(#accountDialog) .brand{font:650 21px Arial;letter-spacing:-.04em}body:has(#accountDialog) .brand span{color:#244de8}body:has(#accountDialog) .site-header nav a{font:12px Arial;color:#5c6570}body:has(#accountDialog) h1{font-weight:650}body:has(#accountDialog) .lead,body:has(#accountDialog) label{color:#5c6570}body:has(#accountDialog) .primary{background:#244de8;color:white;border-color:#244de8;border-radius:11px;font-family:Arial}body:has(#accountDialog) input,body:has(#accountDialog) select,body:has(#accountDialog) textarea,body:has(#accountDialog) dialog{background:#fff;color:#202b38;border-color:#dce0e2;border-radius:12px}body:has(#accountDialog) .checkin-card,body:has(#accountDialog) .progress-card,body:has(#accountDialog) .week-card,body:has(#accountDialog) .goal-choice,body:has(#accountDialog) .public-preview,body:has(#accountDialog) .notice,body:has(#accountDialog) .share-strip{background:#fff;border-color:#dce0e2;color:#202b38;border-radius:14px}body:has(#accountDialog) .rocket-art{filter:none;animation:none}body:has(#accountDialog) .rocket-art path[fill="#101c16"]{fill:#edf1ff}body:has(#accountDialog) .track-fill{background:#244de8;box-shadow:none}body:has(#accountDialog) .destination{background:#edf1ff;box-shadow:none;border-color:#244de8}body:has(#accountDialog) .flight-track:before{background:#dce0e2}body:has(#accountDialog) .map-intro{padding-top:50px}body:has(#accountDialog) dialog::backdrop{background:#202b3880}body:has(#accountDialog) .profile-gauge{background:#edf1ff;color:#244de8;box-shadow:none}body:has(#accountDialog) #toast{background:#edf1ff;color:#202b38;border-color:#dce0e2}
@media(max-width:800px){.site-header.site-unified{height:auto;min-height:84px;padding:16px 24px;flex-wrap:wrap;gap:10px 20px}.site-unified nav{flex-wrap:wrap;gap:8px 12px}.site-main{padding-inline:24px}.site-intro{padding:32px 0 36px;display:block}.site-intro>.site-button{margin-top:25px}.community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-explainer{gap:30px}.site-stat-grid{gap:12px}.site-stat-grid article{padding:18px}.site-stat-grid strong{font-size:32px}.mission-day{margin-top:30px;width:150px;height:150px}.mission-day strong{font-size:70px}.site-footer{width:calc(100% - 48px)}.shell{padding-inline:24px}.header{flex-wrap:wrap;gap:14px;padding:18px 0;min-height:84px}.header .nav{width:100%;flex-wrap:wrap;justify-content:flex-start;gap:8px 16px;padding-top:10px;border-top:1px solid var(--line)}.tabs{width:100%;justify-content:space-between}.header .tabs button{flex:1;padding:10px 6px}.brand.site-brand{font-size:25px}}
@media(max-width:520px){.site-header.site-unified{height:auto;min-height:88px;align-items:flex-start;flex-wrap:wrap;gap:10px;padding:16px 20px}.site-brand{font-size:24px}.site-unified nav{width:100%;flex-wrap:wrap;justify-content:flex-start;gap:6px 10px;padding-top:10px;border-top:1px solid var(--line)}.site-unified nav a{font-size:13px;padding:6px 12px}.site-intro h1{font-size:43px}.site-lead{font-size:15px}.community-grid{grid-template-columns:1fr}.community-card{padding:24px}.site-explainer{grid-template-columns:1fr;gap:15px;margin-top:38px;padding-top:35px}.site-explainer h2{font-size:33px}.site-stat-grid{grid-template-columns:1fr}.site-stat-grid article{padding:22px}.site-stat-grid strong{font-size:36px}.founder-intro{display:grid;grid-template-columns:1fr}.mission-day{margin:0;width:100%;height:auto;padding:18px;flex-direction:row;gap:20px;border-radius:14px}.mission-day strong{font-size:45px}.site-section{padding-top:38px}.site-section h2{font-size:29px}.site-callout{padding:25px}.site-callout h2{font-size:29px}.site-main{padding-bottom:35px}.site-footer nav{gap:6px 17px}.site-table{border:1px solid #dce0e2;border-radius:10px}.site-table table{min-width:530px}.site-table td,.site-table th{padding:12px}.header .nav{font-size:13px;gap:8px 14px}.card,.settings .card{padding:20px}.progress-summary>div{padding:16px}.settings-disclosure{padding-inline:15px}.message{max-width:96%}body:has(#accountDialog) .site-header{height:auto;min-height:96px;flex-wrap:wrap;gap:8px;padding:20px 23px}body:has(#accountDialog) .site-header nav{flex-wrap:wrap}body:has(#accountDialog) .brand span{display:inline}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.legacy-notice{max-width:1100px;margin:20px auto 0;padding:15px 23px;background:#edf1ff;border-radius:12px;color:#34445b;font:13px/1.6 Arial,sans-serif}.legacy-notice a{color:#244de8;text-decoration:underline}.legacy-notice strong{font-weight:600}body:has(#accountDialog) .shop-link{display:none}body:has(#accountDialog) footer{font-family:Arial,sans-serif;color:#5c6570}@media(max-width:760px){.legacy-notice{margin:15px 23px 0;font-size:12px}}
.skip-link{position:fixed;left:16px;top:-100px;z-index:200;padding:12px 18px;background:#244de8;color:#fff;border-radius:10px}.skip-link:focus{top:12px}
/* One aligned footer across public pages and the signed-in account. */
.footer.site-footer-v2{display:block;width:100%;max-width:1144px;margin:48px auto 0;padding:44px 0 32px;border-top:1px solid var(--line);font:14px/1.6 Arial,sans-serif;color:var(--muted)}
.footer.site-footer-v2 div{display:block;gap:0}
.footer.site-footer-v2 .footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px;padding-bottom:36px;align-items:start}
.footer.site-footer-v2 nav{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.footer.site-footer-v2 nav h2{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);margin:0 0 12px}
.footer.site-footer-v2 nav a{font-size:14px;font-weight:500;color:var(--muted);min-height:34px;padding:3px 0;display:inline-flex;align-items:center;text-decoration:none;transition:color .15s}
.footer.site-footer-v2 nav a:hover{color:#244de8;text-decoration:none}
.footer.site-footer-v2 .site-brand{font-size:27px;min-height:38px;text-decoration:none}
.footer.site-footer-v2 .footer-brand{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:14px}
.footer.site-footer-v2 .footer-brand p{font-size:15px;line-height:1.6;margin:0;color:var(--muted)}
.footer.site-footer-v2 .footer-brand .site-brand{min-height:0}
.footer.site-footer-v2 .footer-bottom{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;border-top:1px solid var(--line);padding-top:24px;font-size:12px}
.footer.site-footer-v2 .footer-bottom .footer-bottom-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;text-align:center}
.footer.site-footer-v2 .footer-bottom .footer-legal{margin:0;text-align:center;font-size:12px;line-height:1.55;color:var(--muted);max-width:720px}
.footer.site-footer-v2 .footer-bottom .footer-legal a{font-size:12px;min-height:auto;color:#244de8;text-decoration:underline;text-underline-offset:3px;display:inline}
.footer-bottom .logout-link{font-size:13px}#public-site>.footer.site-footer-v2{width:calc(100% - 96px)}
.account-logout{font:14px Arial,sans-serif;background:transparent;border:1px solid var(--line);border-radius:9px;padding:11px 15px;min-height:44px;color:var(--ink);cursor:pointer;white-space:nowrap}.header .tabs{margin-left:auto}.header .account-logout{margin-left:18px}.account-logout:disabled,.logout-link:disabled{opacity:.5;cursor:wait}
.policy-page{max-width:800px;margin-inline:auto;padding-top:50px;padding-bottom:40px}.policy-page h1{font-size:clamp(40px,6vw,62px);line-height:1.05}.policy-page h2{font-size:25px;margin-top:36px}.policy-page p,.policy-page li{font-size:17px;line-height:1.75}.policy-page .policy-date{font-size:14px;color:var(--muted);margin:15px 0 30px}.policy-page a{color:var(--forest);text-decoration:underline;text-underline-offset:3px}.policy-related{display:flex;flex-wrap:wrap;gap:20px;border-top:1px solid var(--line);padding-top:25px;margin-top:35px}.policy-page .check{font-size:16px;line-height:1.65;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}.policy-page .check input{flex:none}
.roadmap-v2{padding:55px 0 20px;max-width:none}.roadmap-v2>h1{font-size:clamp(45px,6vw,74px);line-height:1.02}.roadmap-v2>h1 span{color:#244de8}.roadmap-v2 .roadmap-intro{font-size:20px;line-height:1.6;max-width:670px;margin:25px 0 45px}.roadmap-board{display:grid;grid-template-columns:1fr 1fr;gap:24px}.roadmap-stage{border:1px solid #dce0e2;border-radius:20px;padding:32px;background:#fff}.roadmap-stage:first-child{background:#edf1ff}.roadmap-stage:nth-child(3){background:#f4eddf}.roadmap-stage:nth-child(4){background:#edf3ef}.roadmap-stage h2{font-size:32px;line-height:1.1;letter-spacing:-.04em;margin:22px 0}.roadmap-stage p,.roadmap-stage li{font-size:17px;line-height:1.65}.roadmap-stage ul{padding-left:20px}.roadmap-stage li{margin-bottom:9px}.roadmap-stage .roadmap-status{font-size:12px;font-weight:700;letter-spacing:.06em;margin:0;display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:#244de8;display:inline-block}.roadmap-stage .roadmap-note{font-size:14px;margin:22px 0 0;color:#5c6570}.roadmap-stage a{display:inline-flex;padding-top:15px;min-height:44px;color:#244de8;text-decoration:underline}.roadmap-invite{padding:45px 0 20px;max-width:700px}.roadmap-invite h2{font-size:34px;line-height:1.15}.roadmap-invite p{font-size:18px;line-height:1.65}
@media(max-width:760px){.footer.site-footer-v2{margin-top:28px;padding-top:30px}.footer.site-footer-v2 .footer-top{grid-template-columns:1fr 1fr;gap:28px 24px}.footer-brand{grid-column:1/-1}.footer-brand p{font-size:15px;margin-top:8px}.footer.site-footer-v2 .footer-bottom{align-items:center;flex-direction:column;gap:8px;text-align:center}.footer.site-footer-v2 nav a{min-height:38px}#public-site>.footer.site-footer-v2{width:calc(100% - 48px)}.header .account-logout{margin-left:auto;font-size:13px}.app-shell .header{flex-wrap:nowrap}.policy-page{padding-top:30px}.policy-page h2{font-size:24px}.roadmap-board{grid-template-columns:1fr}.roadmap-stage{padding:27px}.roadmap-v2{padding-top:30px}.roadmap-stage h2{font-size:30px}.roadmap-v2 .roadmap-intro{font-size:18px}.roadmap-invite h2{font-size:30px}}
.community-featured{display:grid;grid-template-columns:210px 1fr 120px;align-items:center;gap:24px;background:#edf1ff;border:1px solid #d8e0fb;border-radius:24px;padding:32px;margin-bottom:55px}.featured-orbit{color:#244de8}.featured-orbit svg{width:100%;display:block}.community-featured h2{font-size:39px;line-height:1.1;margin:0 0 18px}.community-featured .site-kicker{margin-bottom:15px;font-size:11px}.community-featured p{font-size:16px;line-height:1.6;color:#5c6570}.community-featured .site-small{font-size:13px}.featured-number{font-size:76px;color:#244de8;letter-spacing:-.07em;line-height:1}.featured-number>span{display:block;font-size:11px;letter-spacing:.2em;margin-top:12px;margin-left:5px}.directory-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px}.directory-heading .site-kicker{margin-bottom:13px}.directory-heading h2{font-size:36px;line-height:1.1;margin-bottom:0}.directory-tools{display:flex;gap:18px;align-items:flex-end;margin:28px 0}.directory-tools label{display:grid;gap:8px;font-size:13px;color:#5c6570}.directory-tools label:first-child{flex:1}.directory-tools input,.directory-tools select{font:16px Arial,sans-serif;background:#fff;border:1px solid #cbd1d8;border-radius:11px;padding:14px;color:#202b38;min-width:0;width:100%}.community-directory #community-status{font-size:15px;color:#5c6570;padding:22px 0;line-height:1.6}.community-directory #community-members:empty{display:none}.community-card .site-small{font-size:13px}
.mission-orbit{position:relative;width:260px;height:260px;background:transparent;isolation:isolate}.mission-orbit-art{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.mission-orbit strong{font-size:110px}.mission-orbit>span{font-size:12px;letter-spacing:.13em}.mission-calendar{margin-top:54px;border:1px solid #dce0e2;background:#fff;border-radius:20px;padding:32px}.mission-calendar-heading{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin-bottom:28px}.mission-calendar-heading h2{font-size:35px;line-height:1.1;margin-bottom:0}.mission-calendar-heading .site-kicker{margin-bottom:14px}.mission-calendar-heading>p{font-size:15px;line-height:1.6;color:#5c6570}.mission-cells{display:grid;grid-template-columns:repeat(28,1fr);gap:7px}.mission-cell{aspect-ratio:1;border-radius:4px;background:#edf0f4;min-width:0}.mission-cell.recorded,.mission-legend i.recorded{background:#244de8}.mission-cell.today,.mission-legend i.today{box-shadow:inset 0 0 0 2px #244de8;background:#fff}.mission-cell.ahead{opacity:.6}.mission-legend{display:flex;flex-wrap:wrap;gap:18px;margin-top:22px;font-size:12px;color:#5c6570}.mission-legend>span{display:flex;align-items:center;gap:7px}.mission-legend i{display:block;width:12px;height:12px;border-radius:3px;background:#edf0f4}.mission-targets{margin-top:44px}.mission-targets h2{font-size:32px}.mission-targets .site-kicker{margin-bottom:13px}.mission-anchor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.mission-anchor-grid article{border-left:2px solid #244de8;padding:10px 20px;background:#edf1ff;border-radius:0 12px 12px 0}.mission-anchor-grid strong{display:block;font-size:32px;letter-spacing:-.04em;color:#244de8}.mission-anchor-grid span{font-size:10px;letter-spacing:.05em;color:#5c6570}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:800px){.community-featured{grid-template-columns:125px 1fr;padding:25px;gap:20px}.featured-number{display:none}.community-featured h2{font-size:32px}.mission-cells{grid-template-columns:repeat(16,1fr)}.mission-calendar-heading{display:block}.mission-calendar-heading>p{margin-top:18px}.mission-orbit{margin-top:20px}.mission-anchor-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.community-featured{grid-template-columns:1fr;margin-bottom:40px}.featured-orbit{max-width:140px;margin-bottom:-15px}.community-featured h2{font-size:34px}.directory-heading{align-items:flex-start;flex-direction:column;gap:12px}.directory-heading h2{font-size:31px}.directory-tools{flex-direction:column;align-items:stretch}.mission-calendar{padding:23px;margin-top:35px}.mission-calendar-heading h2{font-size:29px}.mission-cells{grid-template-columns:repeat(14,1fr);gap:5px}.mission-orbit{width:220px;height:220px;padding:0;flex-direction:column;gap:0;justify-self:center}.mission-orbit strong{font-size:83px}.mission-targets h2{font-size:28px}.mission-anchor-grid{gap:12px}.mission-anchor-grid article{padding:13px 16px}.mission-anchor-grid strong{font-size:29px}.mission-legend{gap:11px;font-size:11px}}

/* The full marketing footer must not consume the fixed-height conversation viewport. */
.app-shell.conversation-shell>.footer.site-footer-v2{display:none}

/* Account pages: crisp White & Moonman Blue dashboard matching the front page. */
.account-overview{max-width:1120px;margin:0 auto;padding:28px 0 56px}.account-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.account-page-head h1,.settings>div>h1{font-family:inherit;font-size:38px;line-height:1.1;letter-spacing:-.04em;margin:0 0 8px}.account-page-head p{margin:0;max-width:580px;line-height:1.55;font-size:15px}.account-page-head .edition{font-size:11px;margin-bottom:8px;color:#244de8;font-weight:700;letter-spacing:.09em}.account-page-head>.btn,.mm-head-actions{flex-shrink:0;display:flex;align-items:center;gap:10px}.today-records{display:grid;grid-template-columns:1fr;gap:20px;margin-top:16px}.today-records>section{min-width:0}.today-records h2,.account-overview .accountability-card h2{font-family:inherit;font-size:20px;letter-spacing:-.025em;margin:0}.today-records .entry{gap:16px}.today-records .entry>div:first-child{min-width:0;overflow-wrap:anywhere}.today-records .entry-numbers{flex-shrink:0}.record-empty{padding:14px 0 4px;margin:0}.record-total{margin:4px 0 12px;font-size:14px}.record-total strong{font-size:22px;letter-spacing:-.03em}.record-total span{color:var(--muted)}.overview-history{margin-top:24px}.account-overview .action-details{margin-top:18px}.account-overview .progress-ledger,.weight-progress{margin-top:32px}.account-overview .progress-ledger h2,.weight-progress h2{font-family:inherit;font-size:22px;letter-spacing:-.02em}.progress-start{padding:32px!important}.progress-start h2{font-family:inherit;font-size:26px}.progress-start .btn{margin-top:8px}.account-overview .nutrition-details{margin-top:28px}.account-overview .activity-list li{gap:16px}.account-overview .activity-list li>span{min-width:0;overflow-wrap:anywhere}.conversation-settings{margin-block:22px}.conversation-settings h3{font-family:inherit;font-size:23px}.preference-choice{border:0;margin:22px 0;padding:0;min-width:0}.preference-choice legend{font-size:15px;font-weight:600;margin-bottom:10px}.segmented-options{display:flex;gap:8px;flex-wrap:wrap}.segmented-options label{position:relative;cursor:pointer}.segmented-options input{position:absolute;width:1px;height:1px;opacity:0;margin:0}.segmented-options span{display:block;min-height:44px;padding:11px 18px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--white);font-size:15px;line-height:1.4}.segmented-options input:checked+span{background:#244de8;border-color:#244de8;box-shadow:none;color:#ffffff;font-weight:650}.segmented-options input:checked+span:hover{background:#173abf;border-color:#173abf;color:#ffffff}.segmented-options input:focus-visible+span{outline:3px solid var(--forest);outline-offset:3px}#conversation-settings-status{margin:0}.conversation-settings .settings-actions{align-items:center;min-height:44px}.app-shell:not(.conversation-shell)>.footer.site-footer-v2 .footer-top{display:block;padding-top:18px}.app-shell:not(.conversation-shell)>.footer.site-footer-v2 .footer-top>.footer-brand,.app-shell:not(.conversation-shell)>.footer.site-footer-v2 .footer-top>nav[aria-label="Explore Moonman"],.app-shell:not(.conversation-shell)>.footer.site-footer-v2 .footer-top h2{display:none}.app-shell:not(.conversation-shell)>.footer.site-footer-v2 .footer-top>nav[aria-label="Help and policies"]{display:flex;flex-wrap:wrap;gap:12px 24px}.app-shell:not(.conversation-shell)>.footer.site-footer-v2{margin-top:10px;padding-top:0}.app-shell:not(.conversation-shell)>.footer.site-footer-v2 .footer-bottom{margin-top:0;padding-block:22px}.account-overview .activity-list strong{overflow-wrap:anywhere}
@media(max-width:650px){.account-overview{padding-top:20px}.account-page-head{align-items:flex-start;flex-direction:column;gap:14px}.account-page-head h1,.settings>div>h1{font-size:32px}.mm-head-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.today-records{grid-template-columns:1fr;gap:14px}.account-overview .progress-summary{grid-template-columns:1fr;gap:10px}.account-overview .progress-summary>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 14px}.account-overview .progress-summary dd{grid-column:2;grid-row:1 / 3;font-size:30px;margin:0}.account-overview .progress-summary span{grid-column:1}.account-overview .panel-head{gap:12px}.account-overview .accountability-card .panel-head{align-items:flex-start;flex-wrap:wrap}.segmented-options{gap:7px}.segmented-options span{padding:11px 14px}.progress-start{padding:22px!important}}

/* A single export, shown at the same proportions as the saved PNG. */
.progress-share-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);overflow:auto;box-shadow:0 30px 100px #14274730}.progress-share-dialog::backdrop{background:#101a2b8c;backdrop-filter:blur(5px)}.share-card-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.share-card-heading h2{font-family:inherit;font-size:24px;letter-spacing:-.04em;margin:0}.share-card-heading button{flex-shrink:0;min-height:44px}.share-card-preview{margin:0 auto;max-width:340px}.share-card-preview img{display:block;width:100%;height:auto;aspect-ratio:4/5;border-radius:10px;box-shadow:0 5px 25px #202b3812}.share-card-preview>p{font-size:13px;line-height:1.45;color:var(--muted);text-align:center;margin:12px 0}.share-card-actions{justify-content:center;gap:12px;margin-top:18px}.share-card-actions .btn{min-height:46px}.share-card-privacy{font-size:12px;line-height:1.5;color:var(--muted);text-align:center;max-width:330px;margin:16px auto 0}@media(max-width:520px){.progress-share-dialog{padding:16px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.share-card-heading{gap:10px;margin-bottom:12px}.share-card-heading h2{font-size:21px}.share-card-preview{max-width:280px}.share-card-actions .btn{flex:1;padding-inline:14px}.share-card-privacy{font-size:12px}}

/* Consistent native community controls, independent of browser select metrics. */
.directory-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,270px);align-items:end;gap:16px}.directory-field{min-width:0;display:grid;gap:9px}.directory-tools label{display:block;font-size:14px;line-height:20px;margin:0}.directory-tools input,.directory-tools select{box-sizing:border-box;width:100%;height:48px;min-height:48px;max-height:48px;margin:0;padding:0 14px;font:16px/1.25 Arial,sans-serif;border-radius:10px}.directory-tools select{appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23202b38' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.directory-tools input:focus-visible,.directory-tools select:focus-visible{outline:3px solid #244de8;outline-offset:3px}
.mission-cells{grid-template-columns:repeat(21,minmax(28px,1fr));gap:8px}.mission-cell{appearance:none;border:1px solid #dce0e2;box-shadow:none;margin:0;padding:0;min-height:28px;color:#727b86;font:11px/1 Arial,sans-serif;display:flex;align-items:center;justify-content:center;cursor:pointer}.mission-cell.ahead{background:#f7f8fa;opacity:1;color:#7c8590}.mission-cell.met,.mission-legend i.met{background:#d7eee2;color:#17633e;border-color:#98cdb0}.mission-cell.missed,.mission-legend i.missed{background:#fce3df;color:#a43930;border-color:#ebb0a8}.mission-cell.partial,.mission-legend i.partial{background:#e2e9ff;color:#244de8;border-color:#a8baf4}.mission-cell.met,.mission-cell.missed,.mission-cell.partial{font-size:19px;font-weight:700}.mission-cell.today{box-shadow:inset 0 0 0 2px #244de8}.mission-cell[aria-pressed="true"]{outline:2px solid #202b38;outline-offset:2px}.mission-cell:focus-visible{outline:3px solid #244de8;outline-offset:3px}.mission-legend i{display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:13px;font-weight:700;font-style:normal}.mission-day-detail{border-top:1px solid #dce0e2;margin-top:24px;padding-top:24px}.day-detail-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.day-detail-heading .site-kicker{font-size:11px;margin:0 0 10px}.day-detail-heading h3{font-size:24px;margin:0;line-height:1.2;letter-spacing:-.04em}.day-weight{font-size:13px;color:#5c6570;white-space:nowrap}.day-weight strong{display:block;margin-top:7px;font-size:22px;color:#202b38}.mission-day-detail>p{font-size:15px;line-height:1.6;color:#5c6570}.day-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.day-metrics>div{border-left:2px solid #dce0e2;padding-left:14px;min-width:0}.day-metrics dt,.day-metrics span,.day-metrics em{font-size:12px;display:block;line-height:1.5;color:#5c6570;font-style:normal}.day-metrics dd{margin:5px 0;font-size:27px;letter-spacing:-.04em;color:#202b38}.day-metrics small{font-size:13px;letter-spacing:0}.day-metrics em{margin-top:7px}.day-metrics .target-met{color:#17633e}.day-metrics .target-missed{color:#a43930}.calendar-rules{margin-top:20px;border-top:1px solid #dce0e2;padding-top:18px}.calendar-rules summary{font-size:13px;cursor:pointer}.calendar-rules p{max-width:72ch;font-size:14px;line-height:1.65;color:#5c6570}.coach-recap{background:#edf1ff;border-radius:16px;padding:24px!important;border:0!important}.coach-recap .site-kicker{font-size:11px;letter-spacing:.08em}.coach-recap>p:last-child{margin-bottom:0}
@media(max-width:900px){.mission-cells{grid-template-columns:repeat(14,minmax(28px,1fr))}}@media(max-width:600px){.directory-tools{grid-template-columns:minmax(0,1fr)}.mission-cells{grid-template-columns:repeat(7,minmax(28px,1fr));gap:7px}.mission-calendar{padding:20px}.day-metrics{gap:10px}.day-metrics>div{padding-left:8px}.day-metrics dd{font-size:23px}.day-metrics span,.day-metrics em{font-size:11px}.day-detail-heading h3{font-size:21px}.day-weight strong{font-size:20px}.mission-legend{gap:12px;font-size:11px}.mission-cell{font-size:10px}.mission-cell.met,.mission-cell.missed,.mission-cell.partial{font-size:19px}}

.mission-detail-modal{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #dce0e2;border-radius:20px;padding:28px;background:#fafbf8;color:#202b38;box-shadow:0 24px 80px #202b3829}.mission-detail-modal::backdrop{background:#202b3866}.mission-detail-modal form{margin-top:24px;display:flex;justify-content:flex-end}.mission-detail-modal .site-button{min-height:44px;cursor:pointer}.mission-detail-modal .site-small{color:#5c6570;line-height:1.6}.mission-detail-modal .day-detail-heading{padding-top:4px}@media(max-width:400px){.mission-detail-modal{padding:20px}.mission-detail-modal .day-metrics{grid-template-columns:1fr}.mission-detail-modal .day-metrics>div{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;padding-left:12px}.mission-detail-modal .day-metrics dd{grid-column:2;grid-row:1 / 3;text-align:right;margin:0}.mission-detail-modal .day-metrics em{margin:0}}

/* Public registration evidence uses real UI captures with synthetic details. */
.consent-proof { margin: 2rem 0; }
.consent-proof figure { margin: 1rem 0; }
.consent-proof img { display: block; width: 100%; height: auto; border: 1px solid var(--line, #e1e4e8); border-radius: 12px; }
.consent-proof figcaption { margin-top: .65rem; font-size: .95rem; }

/* Moonman White & Royal Blue Member Dashboard */
.mm-dash-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}
.mm-goal-chart-card,
.mm-daily-summary-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.mm-goal-chart-card {
  background: var(--surface, #ffffff);
  border-color: var(--line, #e2e8f0);
}
.mm-goal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mm-goal-pill {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #244de8;
  border: 0;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.mm-goal-title {
  font-size: var(--mm-type-heading, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.mm-delta-badge,
.mm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  border-radius: 0;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  border: 0;
  white-space: nowrap;
}
.mm-status-pill.complete {
  background: transparent;
  color: #059669;
  border: 0;
}
.mm-goal-chart-box {
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 4px 0 2px;
  overflow: hidden;
}
.mm-goal-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 142px;
}
.mm-svg-val {
  font-size: 10px;
  font-weight: 700;
  fill: var(--ink);
}
.mm-svg-axis {
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--muted);
}
.mm-svg-goal {
  font-size: 9.5px;
  font-weight: 700;
  fill: #244de8;
}
.mm-goal-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mm-goal-metrics-row > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}
.mm-goal-metrics-row dt {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}
.mm-goal-metrics-row dd {
  margin: 0;
  font-size: var(--mm-type-body, 1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mm-goal-metrics-row dd small {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 500;
  color: var(--muted);
}
.mm-goal-metrics-row dd.mm-delta-val {
  color: #244de8;
}

/* Daily Totals & Delta 4-Tile Grid */
.mm-daily-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mm-daily-kpi {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mm-daily-kpi .mm-macro-track {
  height: 5px;
  margin: 3px 0 1px;
}
.mm-kpi-label {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mm-kpi-num {
  font-size: var(--mm-type-kpi, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.mm-kpi-num small {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.mm-kpi-sub {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

/* MacroFactor-style Ledger Shell, Date Flipper & Sub-Tabs */
.account-overview .mm-ledger-shell {
  border-radius: 20px;
  border: 1px solid var(--line, #dfe5f0);
  background: var(--white, #fff);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(24, 34, 48, 0.04);
}
.mm-ledger-top-bar {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, #dfe5f0);
  margin-bottom: 20px;
}
.mm-ledger-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.account-overview .mm-food-day-nav {
  display: grid;
  gap: 10px;
  margin: 0;
}
.mm-day-switcher,
.account-overview .mm-day-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f0f4fc;
  border: 1px solid #d5e0f5;
  border-radius: 999px;
  padding: 5px 8px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
#personal-journal .mm-day-switcher {
  display: flex;
  width: 100%;
  margin: 12px 0 14px;
}
.mm-day-step,
.account-overview .mm-day-step {
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dce5f7;
  background: #ffffff;
  color: #182230;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mm-day-step:hover:not(:disabled),
.account-overview .mm-day-step:hover:not(:disabled) {
  background: #244de8;
  border-color: #244de8;
  color: #fff;
}
.mm-day-step:disabled,
.account-overview .mm-day-step:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.mm-day-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.account-overview .mm-day-current {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 700;
  color: var(--ink);
  padding: 0 10px;
}
.account-overview .mm-day-iso {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 500;
  color: var(--muted);
}
.account-overview .mm-jump-today {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 700;
  padding: 4px 10px;
  min-height: 28px;
  color: #244de8;
}
.account-overview .mm-day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 0;
}
.account-overview .mm-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.account-overview .mm-day-pill:hover {
  border-color: #244de8;
  background: var(--mint);
  color: var(--ink);
}
.account-overview .mm-day-pill.active,
.account-overview .mm-day-pill.is-selected {
  background: #244de8;
  border-color: #244de8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(36, 77, 232, 0.24);
}
.account-overview .mm-day-pill.active:hover,
.account-overview .mm-day-pill.active:focus-visible,
.account-overview .mm-day-pill.is-selected:hover,
.account-overview .mm-day-pill.is-selected:focus-visible {
  background: #173abf;
  border-color: #173abf;
  color: #ffffff;
}
.account-overview .mm-day-dow,
.account-overview .mm-day-pill-dow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 1;
  color: inherit;
}
.account-overview .mm-day-num,
.account-overview .mm-day-pill-num {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}
.account-overview .mm-day-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: transparent;
}
.account-overview .mm-day-pill.has-log .mm-day-dot {
  background: #244de8;
}
.account-overview .mm-day-pill.active.has-log .mm-day-dot,
.account-overview .mm-day-pill.is-selected.has-log .mm-day-dot {
  background: #fff;
}

/* Sub-Tab Bar (All / What I Ate / Exercise & Gym) */
.mm-subtab-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.mm-subtab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 650;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mm-subtab-btn:hover {
  color: #244de8;
  background: rgba(36, 77, 232, 0.06);
}
.mm-subtab-btn.active {
  background: #244de8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(36, 77, 232, 0.22);
}
.mm-subtab-btn.active:hover,
.mm-subtab-btn.active:focus-visible {
  background: #173abf;
  color: #ffffff;
}
.mm-ledger-panels[data-active-subtab="food"] .mm-movement-panel {
  display: none;
}
.mm-ledger-panels[data-active-subtab="exercise"] .mm-food-panel {
  display: none;
}

/* Macro Progress Bars in Crisp Blue */
.account-overview .mm-macro-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.account-overview .mm-macro-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: var(--mm-type-label, 0.8125rem);
  color: var(--muted);
  margin-bottom: 6px;
}
.account-overview .mm-macro-meter-top strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.account-overview .mm-macro-track {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.account-overview .mm-macro-fill {
  height: 100%;
  border-radius: 999px;
  background: #244de8;
  transition: width 0.25s ease;
}
.account-overview .mm-fill-pro,
.account-overview .mm-macro-fill-protein,
.account-overview .mm-macro-fill.protein {
  background: #0ea5e9;
}
.account-overview .mm-macro-fill.carbs {
  background: #38bdf8;
}
.account-overview .mm-macro-fill.over {
  background: #f59e0b;
}
.account-overview .mm-macro-sub,
.account-overview .mm-macro-meter-sub {
  display: block;
  margin-top: 5px;
  font-size: var(--mm-type-label, 0.8125rem);
  color: var(--muted);
}

/* Food & Exercise Panels + Thin-Row Tables (MacroFactor Style) */
.account-overview .mm-food-panel,
.account-overview .mm-movement-panel {
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.account-overview .mm-ledger-panels[data-active-subtab="all"] .mm-food-panel + .mm-movement-panel {
  border-top: 1px solid var(--line, #e2e8f4);
  padding-top: 22px;
  margin-top: 6px;
}
.account-overview .mm-section-tag,
.profile-setup-page .mm-section-tag {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #244de8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.account-overview .mm-food-panel .panel-head,
.account-overview .mm-movement-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.account-overview .mm-food-panel .panel-head h2,
.account-overview .mm-movement-panel .panel-head h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
.account-overview .mm-stat-display {
  display: none;
}

/* Thin-Row Table Styling — Minimalist & Clean */
.mm-thin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mm-thin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: left;
}
.mm-thin-table thead th {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mm-thin-table thead th.col-num,
.mm-thin-table thead th.col-action {
  padding-right: 0;
  padding-left: 10px;
}
.mm-thin-table tbody tr.mm-thin-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}
.mm-thin-table tbody tr.mm-thin-row:last-child {
  border-bottom: 0;
}
.mm-thin-table tbody tr.mm-thin-row:hover {
  background: var(--surface-subtle);
}
.mm-thin-table td,
.mm-thin-table th {
  padding: 10px 10px 10px 0;
  vertical-align: middle;
}
.mm-thin-table td.col-num,
.mm-thin-table td.col-action {
  padding-right: 0;
  padding-left: 10px;
}
.mm-thin-table .col-time {
  width: 88px;
  white-space: nowrap;
}
.mm-thin-table .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 90px;
  color: var(--ink);
  font-weight: 600;
}
.mm-thin-table .col-action {
  text-align: right;
  white-space: nowrap;
  width: 100px;
}
.mm-thin-table tfoot tr.mm-thin-foot-row {
  background: transparent;
  border-top: 1px solid var(--line);
}
.mm-thin-table tfoot th,
.mm-thin-table tfoot td {
  padding: 10px 10px 4px 0;
  font-size: var(--mm-type-label, 0.8125rem);
  color: var(--ink);
}
.mm-thin-table tfoot td.col-num {
  padding-right: 0;
  padding-left: 10px;
}
.account-overview .mm-timeline-hour {
  display: block;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.account-overview .mm-meal-badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.mm-thin-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mm-thin-item-head .entry-title,
.mm-thin-table .entry-title {
  font-size: var(--mm-type-body, 1rem);
  font-weight: 650;
  color: var(--ink);
  margin: 0;
}
.account-overview .mm-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  border: 0;
}
.account-overview .mm-tag-workout {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.account-overview .mm-status-badge {
  display: inline-flex;
  font-size: var(--mm-type-label, 0.8125rem);
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 0;
  font-weight: 500;
}
.account-overview .mm-food-items-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.account-overview .mm-food-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
}
.account-overview .mm-food-item-macros {
  color: var(--muted);
  font-weight: 600;
}
.account-overview .mm-food-items-detail,
.mm-thin-inline-meta {
  font-size: var(--mm-type-label, 0.8125rem);
  color: var(--muted);
  margin-top: 2px;
}
.account-overview .mm-adjust-meal,
.account-overview .mm-food-adjust {
  padding: 3px 10px;
  min-height: 26px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #edf1ff;
  color: #244de8;
  border: 1px solid #cad6fa;
  text-decoration: none;
  cursor: pointer;
}
.account-overview .mm-adjust-meal:hover {
  background: #244de8;
  color: #fff;
  border-color: #244de8;
}
.account-overview .mm-food-status-line {
  margin: 10px 0 0;
  font-size: 12px;
}

/* Secondary Plan & Check-in Cards + Progress Hero in White & Royal Blue */
.mm-secondary-cards {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}
.account-overview .mm-plan-card.mm-plan-preview {
  background: #edf1ff;
  color: #1c2b52;
  border: 1px solid #c9d6fb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(36, 77, 232, 0.05);
  margin-bottom: 0;
}
.account-overview .mm-plan-card .mm-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #244de8;
  margin-bottom: 10px;
}
.account-overview .mm-plan-card .mm-orbit svg {
  width: 20px;
  height: 20px;
  color: #244de8;
}
.account-overview .mm-plan-card .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.account-overview .mm-plan-card .panel-head h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #244de8;
  text-transform: uppercase;
  margin: 0;
}
.account-overview .mm-plan-card .mm-plan-title {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #182230;
  margin: 8px 0 12px;
}
.account-overview .mm-plan-card .action-status {
  display: inline-block;
  background: #d8e3fe;
  color: #173abf;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.account-overview .mm-plan-card .mm-checkin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #c9d6fb;
  padding-top: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: #1c2b52;
}
.account-overview .mm-plan-card .mm-checkin strong {
  font-weight: 650;
  color: #182230;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-overview .mm-plan-card.mm-plan-preview,
.account-overview .mm-progress-hero {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.account-overview .mm-progress-hero {
  background: linear-gradient(135deg, #edf1ff 0%, #f5f8ff 100%);
  border: 1px solid #c9d6fb;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 8px 28px rgba(36, 77, 232, 0.06);
  margin-bottom: 24px;
  color: #182230;
}
.account-overview .mm-progress-hero .mm-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #244de8;
}
.account-overview .mm-progress-hero .mm-progress-value {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.account-overview .mm-progress-hero .mm-progress-value strong {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #244de8;
}
.account-overview .mm-progress-hero .mm-progress-value span {
  font-size: 14px;
  line-height: 1.45;
  color: #4b5668;
}
.account-overview .mm-progress-hero .mm-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
  gap: 8px;
  margin: 12px 0;
  flex: 1 1 260px;
  max-width: 340px;
}
.account-overview .mm-progress-hero .mm-week > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #5a6577;
}
.account-overview .mm-progress-hero .mm-week i {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #dce5f9;
  font-style: normal;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.account-overview .mm-progress-hero .mm-week i.mm-completed {
  background: #244de8;
  color: #fff;
}
.account-overview .mm-progress-hero .mm-progress-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid #c9d6fb;
  margin-top: 20px;
  padding-top: 16px;
  color: #4b5668;
}
.account-overview .mm-progress-hero .mm-progress-note strong {
  font-weight: 650;
  color: #182230;
}
.table-date-link {
  padding: 4px 10px;
  min-height: 28px;
  font-size: 12px;
  border-radius: 999px;
}

/* Redesigned Starting Point (#profile-form) & Settings */
.auth.profile-setup-page,
.profile-setup-card {
  max-width: 780px;
  margin-inline: auto;
}
.profile-setup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mm-calibration-inline-banner {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #dbe4ff;
  background: #f5f8ff;
  margin-bottom: 16px;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  line-height: 1.45;
}
.mm-calib-inline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.mm-calib-inline-head .mm-section-tag {
  display: inline-block;
  margin-bottom: 0;
}
.mm-calib-inline-sub {
  color: var(--muted, #475569);
}
.form-section {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: grid;
  gap: 14px;
}
.form-section-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.form-section-head h2 {
  font-size: 1.08rem;
  margin: 0;
}
.field .field-label,
.field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.input-group-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-unit input {
  padding-right: 42px;
}
.field .input-with-unit span,
.input-with-unit span {
  position: absolute;
  right: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.input-group-row.input-unit-select,
.input-unit-select {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
}
.profile-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.settings-shell {
  display: grid;
  gap: 20px;
}
.settings-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.settings-profile-card {
  border-color: color-mix(in oklab, var(--forest) 32%, var(--line));
}
.settings-contact-summary {
  margin: 8px 0 12px;
}
.settings-section-group {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.settings-group-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}

/* Theme-aware surfaces & Royal Blue primary controls across light and dark modes */
:root[data-theme="dark"] .mm-goal-chart-card,
:root[data-theme="dark"] .mm-daily-summary-card,
:root[data-theme="dark"] .mm-calibration-card,
:root[data-theme="dark"] .mm-settings-hero-card,
:root[data-theme="dark"] .account-overview .mm-ledger-shell {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
:root[data-theme="dark"] .mm-thin-table-wrap,
:root[data-theme="dark"] .account-overview .mm-food-panel,
:root[data-theme="dark"] .account-overview .mm-movement-panel,
:root[data-theme="dark"] .mm-goal-chart-box,
:root[data-theme="dark"] .mm-goal-metrics-row > div {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
}
:root[data-theme="dark"] .mm-goal-metrics-row,
:root[data-theme="dark"] .mm-fitbod-card > .panel-head,
:root[data-theme="dark"] .mm-calib-edit-drawer,
:root[data-theme="dark"] .mm-settings-calib-box {
  border-color: var(--line);
}
:root[data-theme="dark"] .mm-daily-kpi,
:root[data-theme="dark"] .mm-calib-tile,
:root[data-theme="dark"] .mm-fitbod-lhs-box,
:root[data-theme="dark"] .mm-calib-quick-anchors,
:root[data-theme="dark"] .mm-day-switcher,
:root[data-theme="dark"] .mm-subtab-bar,
:root[data-theme="dark"] .account-overview .mm-day-pill,
:root[data-theme="dark"] .account-overview .mm-macro-bars {
  background: var(--surface-subtle);
  border-color: var(--line);
  color: var(--ink);
}
:root[data-theme="dark"] .mm-thin-table thead th,
:root[data-theme="dark"] .mm-thin-table tfoot tr.mm-thin-foot-row {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
:root[data-theme="dark"] .mm-thin-table tbody tr.mm-thin-row {
  border-bottom-color: var(--line);
}
:root[data-theme="dark"] .mm-thin-table tbody tr.mm-thin-row:hover {
  background: var(--surface-subtle);
}
:root[data-theme="dark"] .account-overview .mm-day-current,
:root[data-theme="dark"] .account-overview .mm-macro-meter-top strong,
:root[data-theme="dark"] .mm-thin-table .entry-title,
:root[data-theme="dark"] .mm-meal-title-wrap .entry-title,
:root[data-theme="dark"] .mm-thin-table .col-num,
:root[data-theme="dark"] .mm-goal-title,
:root[data-theme="dark"] .mm-kpi-num,
:root[data-theme="dark"] .mm-calib-val,
:root[data-theme="dark"] .mm-fitbod-card > .panel-head h2,
:root[data-theme="dark"] .mm-next-split-heading,
:root[data-theme="dark"] .mm-progress-goal-headline h2,
:root[data-theme="dark"] .mm-settings-hero-card h3,
:root[data-theme="dark"] .mm-goal-metrics-row dd {
  color: var(--ink);
}
:root[data-theme="dark"] .account-overview .mm-day-pill.active,
:root[data-theme="dark"] .account-overview .mm-day-pill.is-selected,
:root[data-theme="dark"] .mm-subtab-btn.active {
  background: #244de8;
  border-color: #244de8;
  color: #ffffff;
}
:root[data-theme="dark"] .account-overview .mm-day-pill.active:hover,
:root[data-theme="dark"] .account-overview .mm-day-pill.active:focus-visible,
:root[data-theme="dark"] .account-overview .mm-day-pill.is-selected:hover,
:root[data-theme="dark"] .account-overview .mm-day-pill.is-selected:focus-visible,
:root[data-theme="dark"] .mm-subtab-btn.active:hover,
:root[data-theme="dark"] .mm-subtab-btn.active:focus-visible {
  background: #173abf;
  border-color: #173abf;
  color: #ffffff;
}
:root[data-theme="dark"] .account-overview .mm-food-item-chip,
:root[data-theme="dark"] .account-overview .mm-adjust-meal {
  background: var(--surface-subtle);
  border-color: var(--line);
  color: #93c5fd;
}
:root[data-theme="dark"] .account-overview .mm-adjust-meal:hover {
  background: #244de8;
  border-color: #244de8;
  color: #ffffff;
}
:root[data-theme="dark"] .mm-svg-val {
  fill: var(--ink);
}
:root[data-theme="dark"] .mm-svg-goal {
  fill: #60a5fa;
}
:root[data-theme="dark"] .mm-svg-axis {
  fill: var(--muted);
}
:root[data-theme="dark"] .account-overview .mm-plan-card.mm-plan-preview,
:root[data-theme="dark"] .account-overview .mm-progress-hero {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
:root[data-theme="dark"] .account-overview .mm-plan-card .mm-plan-title,
:root[data-theme="dark"] .account-overview .mm-plan-card .mm-checkin strong,
:root[data-theme="dark"] .account-overview .mm-progress-hero .mm-progress-note strong {
  color: var(--ink);
}
:root[data-theme="dark"] .account-overview .mm-plan-card .mm-checkin,
:root[data-theme="dark"] .account-overview .mm-progress-hero .mm-progress-value span,
:root[data-theme="dark"] .account-overview .mm-progress-hero .mm-week > div,
:root[data-theme="dark"] .account-overview .mm-progress-hero .mm-progress-note {
  color: var(--muted);
  border-top-color: var(--line);
}

@media(max-width:900px) {
  .mm-dash-hero-grid {
    grid-template-columns: 1fr;
  }
}
@media(max-width:768px) {
  .account-overview {
    padding-inline: 16px;
  }
  .mm-goal-chart-card,
  .mm-daily-summary-card,
  .account-overview .mm-ledger-shell,
  .account-overview .mm-plan-card.mm-plan-preview,
  .account-overview .mm-progress-hero,
  .account-overview .mm-food-panel,
  .account-overview .mm-movement-panel {
    padding: 18px;
    border-radius: 16px;
  }
  .mm-goal-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-overview .mm-macro-bars {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .account-overview .mm-day-strip {
    gap: 4px;
  }
  .account-overview .mm-day-pill {
    padding: 6px 2px;
    min-height: 52px;
    border-radius: 10px;
  }
  .account-overview .mm-day-num,
  .account-overview .mm-day-pill-num {
    font-size: 13px;
  }
  .mm-thin-table td,
  .mm-thin-table th {
    padding: 7px 8px;
    font-size: 12px;
  }
  .mm-thin-table .col-time,
  .mm-thin-table .col-num,
  .mm-thin-table .col-action {
    width: auto;
    white-space: nowrap;
  }
  .mm-thin-table .col-item {
    min-width: 150px;
  }
  .form-section {
    padding: 16px;
  }
}

/* Admin Operations & Cost Dashboard */
.admin-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #244de8;
  background: #edf1ff;
  border: 1px solid #c5d1f4;
  text-decoration: none;
}
.admin-overview-panel {
  display: grid;
  gap: 18px;
}
.admin-overview-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.admin-overview-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}
.admin-cost-pill {
  background: #edf1ff;
  color: #1e3a8a;
  border: 1px solid #c7d2fe;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.admin-kpi-card {
  background: var(--soft, #f6f8fb);
  border: 1px solid var(--line, #dce0e2);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 6px;
}
.admin-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5c6570);
}
.admin-kpi-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.admin-kpi-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #5c6570);
}
.admin-cost-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-cost-box {
  border: 1px solid var(--line, #dce0e2);
  border-radius: 14px;
  padding: 16px;
  background: var(--paper, #fff);
  display: grid;
  gap: 12px;
}
.admin-cost-box-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #dce0e2);
  font-size: 13px;
}
.admin-cost-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.admin-cost-dl > div {
  display: grid;
  gap: 3px;
}
.admin-cost-dl dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #5c6570);
}
.admin-cost-dl dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.admin-users-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-users-head h3 {
  margin: 0;
}
.community-card-founder {
  border-color: #244de8;
  box-shadow: 0 10px 30px rgba(36, 77, 232, 0.08);
}
@media (max-width: 900px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-cost-breakdown {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Common Journey Switcher & Embedded 111-Day Stage */
.journey-switcher-section {
  margin: 0 0 36px;
}
.journey-switcher-head {
  margin-bottom: 12px;
}
.journey-switcher-head .site-kicker {
  margin-bottom: 0;
}
.journey-switcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.journey-pill-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid #d5dce6;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.journey-pill-card:hover {
  border-color: #244de8;
  box-shadow: 0 8px 24px rgba(36, 77, 232, 0.08);
  text-decoration: none;
}
.journey-pill-card.active {
  background: #edf1ff;
  border: 1.5px solid #244de8;
  box-shadow: 0 10px 28px rgba(36, 77, 232, 0.1);
}
.journey-pill-card .invite-avatar {
  background: #e6ebf5;
  color: #244de8;
}
.journey-pill-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.journey-pill-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #244de8;
}
.journey-pill-invite .journey-pill-kicker {
  color: var(--muted);
}
.journey-pill-body strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.journey-pill-body > span:last-child {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.journey-pill-badge,
.journey-pill-cta {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.journey-pill-badge {
  background: #244de8;
  color: #fff;
}
.journey-pill-cta {
  background: #f0f3f8;
  color: #244de8;
  border: 1px solid #d5dce6;
}
.journey-stage-wrap {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.founder-journey-stage .founder-intro {
  padding: 40px 0 36px;
}
.founder-stage-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
.founder-stage-title span {
  color: #244de8;
}
.community-directory {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) {
  .journey-switcher-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .journey-pill-card {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .journey-pill-badge,
  .journey-pill-cta {
    margin-left: auto;
  }
}

/* Auth Mode Switcher & Email/Password Sub-tabs */
.mm-auth-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #f0f4fa;
  border: 1px solid #d5dce6;
  border-radius: 12px;
  margin-bottom: 16px;
}
.mm-auth-switch-btn {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  color: #4a5568;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.mm-auth-switch-btn.active {
  background: #fff;
  color: #16191f;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.mm-auth-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.mm-auth-subtab {
  border: 1px solid #d5dce6;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafd;
  color: #4a5568;
  cursor: pointer;
}
.mm-auth-subtab.active {
  background: #244de8;
  border-color: #244de8;
  color: #ffffff;
}
.mm-auth-subtab.active:hover,
.mm-auth-subtab.active:focus-visible {
  background: #173abf;
  border-color: #173abf;
  color: #ffffff;
}

/* Universal Clean Select Dropdowns (Light & Dark Mode) */
.field select,
.input-unit-select select,
.admin-table-controls select,
.mm-anchor-field select,
.admin-feature-add-bar select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 36px 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line, #cbd5e1);
  background-color: var(--paper, #ffffff);
  color: var(--ink, #14171c);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' stroke='%23475569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-unit-select select {
  padding-right: 28px;
  background-position: right 8px center;
}
.field select:focus,
.input-unit-select select:focus,
.admin-table-controls select:focus,
.mm-anchor-field select:focus,
.admin-feature-add-bar select:focus {
  outline: none;
  border-color: #244de8;
  box-shadow: 0 0 0 3px rgba(36, 77, 232, 0.15);
}
html[data-theme="dark"]:not([data-surface="public"]) .field select,
html[data-theme="dark"]:not([data-surface="public"]) .input-unit-select select,
html[data-theme="dark"]:not([data-surface="public"]) .admin-table-controls select,
html[data-theme="dark"]:not([data-surface="public"]) .mm-anchor-field select,
html[data-theme="dark"]:not([data-surface="public"]) .admin-feature-add-bar select,
html[data-theme="dark"]:not([data-surface="public"]) .mm-anchor-field input,
html[data-theme="dark"]:not([data-surface="public"]) .mm-inline-lift-input {
  background-color: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-switcher {
  background: var(--surface-subtle);
  border-color: var(--line);
}
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-switch-btn {
  color: var(--muted);
}
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-switch-btn.active {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-subtab {
  background: var(--surface-subtle);
  border-color: var(--line);
  color: var(--muted);
}
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-subtab.active {
  background: #244de8;
  border-color: #244de8;
  color: #ffffff;
}
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-subtab.active:hover,
html[data-theme="dark"]:not([data-surface="public"]) .mm-auth-subtab.active:focus-visible {
  background: #173abf;
  border-color: #173abf;
  color: #ffffff;
}

/* MacroFactor-Style 4-Macro Bars (Consistent Nutrient Colors) */
.mm-macro-bars.mm-macrofactor-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.account-overview .mm-fill-cal {
  background: var(--mm-cal, #3b82f6);
}
.account-overview .mm-fill-pro,
.account-overview .mm-macro-fill-protein,
.account-overview .mm-macro-fill.protein {
  background: var(--mm-pro, #f43f5e);
}
.account-overview .mm-fill-fat,
.mm-fill-fat {
  background: var(--mm-fat, #f59e0b);
}
.account-overview .mm-fill-carb,
.account-overview .mm-macro-fill.carbs,
.mm-fill-carb {
  background: var(--mm-carb, #10b981);
}
@media (max-width: 560px) {
  .mm-macro-bars.mm-macrofactor-bars {
    grid-template-columns: 1fr;
  }
}

/* Admin Console Data Tables */
.admin-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-table-controls input[type="search"] {
  min-width: 240px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, #cbd5e1);
  background: var(--paper, #fff);
  color: var(--ink, #14171c);
  font: inherit;
  font-size: 13px;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.admin-data-table th,
.admin-data-table td {
  padding: 11px 12px 11px 0;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.admin-data-table th.col-num,
.admin-data-table th.col-action,
.admin-data-table td.col-num,
.admin-data-table td.col-action {
  padding-right: 0;
  padding-left: 12px;
}
.admin-data-table thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.admin-data-table .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-data-table .col-action {
  text-align: right;
  white-space: nowrap;
}
.admin-table-row {
  cursor: pointer;
  transition: background-color 0.12s;
}
.admin-table-row:hover {
  background-color: #f8fafc;
}
.admin-cell-primary {
  font-weight: 500;
  color: var(--ink, #14171c);
}
.admin-cell-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.admin-subrow {
  padding-left: 12px;
  color: #475569;
  font-size: 12.5px;
}
.admin-table-foot th,
.admin-table-foot td {
  background: transparent;
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
  border-bottom: 0;
}
.admin-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.admin-status-dot.status-active {
  background: #10b981;
}
.admin-status-dot.status-pending {
  background: #f59e0b;
}
.admin-status-dot.status-team {
  background: #244de8;
}
.admin-status-dot.status-stopped {
  background: #ef4444;
}
.admin-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.admin-badge.warn {
  background: #fef3c7;
  color: #92400e;
}
.admin-badge.bad {
  background: #fee2e2;
  color: #991b1b;
}

/* ==========================================================================
   Signed-in mobile polish (Messages, Today, Progress, Settings, Profile).
   Reviewed at 390px and 360px. On phones, wide tables become stacked rows
   so no data sits off-screen, nested cards are flattened to recover width,
   and the tab bar is an inset, always-visible bar.
   ========================================================================== */
.mm-mobile-only { display: none; }
.mm-danger-link { color: #b42318; }
:root[data-theme="dark"] .mm-danger-link { color: #ff8a80; }

/* Accountability card: one heading and a settings link (desktop and mobile). */
.account-overview .mm-plan-card .mm-preview-top { align-items: center; gap: 12px; }
.account-overview .mm-plan-card .mm-card-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #244de8;
}
:root[data-theme="dark"] .account-overview .mm-plan-card .mm-card-eyebrow { color: #7b9aff; }
.account-overview .mm-plan-card .mm-checkin-settings { font-size: 13px; white-space: nowrap; }

/* Panel "+ Log meal" / "+ Add activity" actions never wrap. */
.account-overview .panel-head .mm-panel-add { white-space: nowrap; flex-shrink: 0; }

/* Messages: compact SMS callout (previously relied on a CSP-blocked inline style). */
.mm-sms-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mm-sms-callout > span { min-width: 0; }
.mm-sms-callout .mm-sms-sub { display: block; margin-top: 2px; opacity: 0.85; }
.mm-sms-callout .plain-link { text-underline-offset: 2px; }
.mm-sms-callout .btn { flex-shrink: 0; }

/* Progress: native weight chart (shown on phones). */
.mm-weight-inline { margin-top: 12px; }
.mm-weight-inline .plain-link { display: inline-block; margin-top: 8px; font-size: 14px; }
.mm-wchart { display: block; width: 100%; height: auto; overflow: visible; }
.mm-wchart-grid { stroke: var(--line); stroke-width: 1; }
.mm-wchart-line { fill: none; stroke: #244de8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mm-wchart-dot { fill: var(--white); stroke: #244de8; stroke-width: 2.5; }
.mm-wchart-val { font: 700 13px Arial, sans-serif; fill: var(--ink); }
.mm-wchart-axis { font: 600 11px Arial, sans-serif; fill: var(--muted); }
:root[data-theme="dark"] .mm-wchart-line,
:root[data-theme="dark"] .mm-wchart-dot { stroke: #7b9aff; }

@media (max-width: 760px) {
  /* Never let one wide element push the whole page sideways. */
  html, body { overflow-x: clip; }
  .app-shell main, .account-overview, .account-overview > *, .mm-ledger-panels > section { min-width: 0; }

  /* Inset, always-visible tab bar that no longer clips at the screen edge. */
  .app-shell .header .tabs {
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(24, 34, 48, 0.12);
  }
  .app-shell .tabs button { min-width: 0; padding: 11px 4px; font-size: 13px; border-radius: 12px; }
  .app-shell .tabs button.active { background: #244de8; color: #ffffff; }
  .app-shell .tabs button.active:hover,
  .app-shell .tabs button.active:focus-visible { background: #173abf; color: #ffffff; }
  .app-shell .tabs .admin-nav-pill { display: none; }
  .app-shell { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* Log out lives in Settings › Your account and data on phones. */
  .app-shell .header .account-logout { display: none; }
  .app-shell .header { min-height: 60px; padding: 12px 0; }

  /* Compact legal footer inside the signed-in app shell. */
  .app-shell:not(.conversation-shell) > .footer.site-footer-v2 { margin-top: 20px; padding: 14px 0 8px; }
  .app-shell:not(.conversation-shell) > .footer.site-footer-v2 .footer-top { padding: 0 0 10px; }
  .app-shell:not(.conversation-shell) > .footer.site-footer-v2 .footer-top > nav[aria-label="Help and policies"] {
    flex-direction: row;
    justify-content: center;
    gap: 4px 16px;
  }
  .app-shell:not(.conversation-shell) > .footer.site-footer-v2 .footer-top > nav[aria-label="Help and policies"] a {
    min-height: 30px;
    font-size: 12px;
  }
  .app-shell:not(.conversation-shell) > .footer.site-footer-v2 .footer-bottom {
    padding-block: 10px 4px;
  }
}

@media (max-width: 600px) {
  .mm-mobile-only { display: block; }
  .mm-desktop-only { display: none !important; }

  /* Gutters: 16px page edge, no extra inset from the overview wrapper. */
  .shell.app-shell { padding-inline: 16px; }
  .app-shell .account-overview { padding-inline: 0; padding-top: 12px; }
  .app-shell .account-page-head { gap: 12px; margin-bottom: 16px; }
  .app-shell .account-page-head h1 { font-size: 34px; margin: 2px 0 4px; }
  .app-shell .account-page-head .muted { display: none; }
  .app-shell .mm-head-actions { display: flex; gap: 10px; width: 100%; }
  .app-shell .mm-head-actions > * { flex: 1; justify-content: center; text-align: center; }
  .app-shell .account-overview .card,
  .app-shell .mm-goal-chart-card,
  .app-shell .mm-daily-summary-card,
  .app-shell .account-overview .mm-ledger-shell,
  .app-shell .account-overview .mm-plan-card.mm-plan-preview { padding: 16px; border-radius: 16px; }

  /* Today: preserve strict DOM order (Nutrition -> Body -> Goal -> Detail/Secondary). */
  .app-shell .today-page { display: flex; flex-direction: column; gap: 14px; }
  .app-shell .today-page > .account-page-head { margin-bottom: 0; }

  .app-shell .mm-goal-card-top { gap: 8px; }
  .app-shell .mm-goal-title { font-size: 20px; line-height: 1.2; }
  .app-shell .mm-goal-chart-box { padding: 6px 0; }
  .app-shell .mm-goal-svg .mm-svg-val,
  .app-shell .mm-goal-svg .mm-svg-goal { font-size: 13px; }
  .app-shell .mm-goal-svg .mm-svg-axis { font-size: 11px; }

  /* Show all 4 KPI tiles in a clean 2x2 grid on mobile. */
  .app-shell .mm-daily-kpi-grid,
  .app-shell .mm-has-bars .mm-daily-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-shell .mm-has-bars .mm-daily-kpi:not(.mm-kpi-gym) { display: flex; }
  .app-shell .account-overview .mm-macro-bars { padding: 14px; gap: 14px; }
  .app-shell .account-overview .mm-macro-meter-top { font-size: 14px; }
  .app-shell .account-overview .mm-macro-sub { font-size: 12px; }

  /* Day strip, sub-tabs. */
  .app-shell .mm-ledger-top-bar { gap: 12px; }
  .app-shell .mm-food-day-nav { width: 100%; }
  .app-shell .account-overview .mm-day-switcher { width: 100%; justify-content: space-between; }
  .app-shell .account-overview .mm-day-strip { width: 100%; gap: 5px; }
  .app-shell .account-overview .mm-day-pill { min-width: 0; padding: 6px 0; min-height: 54px; }
  .app-shell .account-overview .mm-day-dow { font-size: 9.5px; letter-spacing: 0.02em; }
  .app-shell .mm-subtab-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .app-shell .mm-subtab-btn { padding: 9px 4px; font-size: 13px; white-space: nowrap; }

  /* Flatten the food/exercise panels: the ledger card is the only container. */
  .app-shell .account-overview .mm-food-panel,
  .app-shell .account-overview .mm-movement-panel,
  :root[data-theme="dark"] .app-shell .account-overview .mm-food-panel,
  :root[data-theme="dark"] .app-shell .account-overview .mm-movement-panel { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .app-shell .account-overview .mm-ledger-panels { gap: 22px; }
  .app-shell .account-overview .mm-food-panel .panel-head,
  .app-shell .account-overview .mm-movement-panel .panel-head { gap: 12px; margin-bottom: 6px; }
  .app-shell .account-overview .mm-food-panel .panel-head h2,
  .app-shell .account-overview .mm-movement-panel .panel-head h2 { font-size: 19px; }
  .app-shell .account-overview .mm-panel-add { min-height: 36px; padding: 6px 12px; font-size: 13px; }

  /* Food & Exercise tables become stacked rows on mobile; 3-4 column calibration/progress tables stay clean tables. */
  .app-shell .mm-food-timeline,
  :root[data-theme="dark"] .app-shell .mm-food-timeline { overflow: visible; border: 0; border-radius: 0; background: none; }
  .app-shell .mm-food-thin-table,
  .app-shell .mm-food-thin-table tbody,
  .app-shell .mm-exercise-thin-table,
  .app-shell .mm-exercise-thin-table tbody { display: block; width: 100%; }
  .app-shell .mm-food-thin-table thead,
  .app-shell .mm-food-thin-table tfoot,
  .app-shell .mm-food-thin-table .col-time,
  .app-shell .mm-food-thin-table .col-num,
  .app-shell .mm-exercise-thin-table thead,
  .app-shell .mm-exercise-thin-table .col-num,
  .app-shell .mm-exercise-thin-table .col-action { display: none; }
  .app-shell .mm-food-thin-table tbody tr.mm-thin-row,
  .app-shell .mm-exercise-thin-table tbody tr.mm-thin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .app-shell .mm-food-thin-table tbody tr.mm-thin-row:first-child,
  .app-shell .mm-exercise-thin-table tbody tr.mm-thin-row:first-child { padding-top: 6px; }
  .app-shell .mm-food-thin-table tbody tr.mm-thin-row:last-child,
  .app-shell .mm-exercise-thin-table tbody tr.mm-thin-row:last-child { border-bottom: 0; }
  .app-shell .mm-food-thin-table tbody tr.mm-thin-row:hover,
  .app-shell .mm-exercise-thin-table tbody tr.mm-thin-row:hover { background: none; }
  .app-shell .mm-food-thin-table td,
  .app-shell .mm-exercise-thin-table td { display: block; padding: 0; border: 0; }
  .app-shell .mm-food-thin-table td.col-item,
  .app-shell .mm-exercise-thin-table td.col-item { grid-column: 1; min-width: 0; width: auto; }
  .app-shell .mm-food-thin-table td.col-action { grid-column: 2; grid-row: 1; width: auto; padding-top: 1px; }
  .app-shell .account-overview .mm-adjust-meal { min-height: 32px; padding: 5px 12px; font-size: 12px; }
  .app-shell .mm-food-thin-table .entry-title,
  .app-shell .mm-exercise-thin-table .entry-title { font-size: 15px; }
  .app-shell .mm-activity-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .app-shell .mm-activity-item small { display: none; }
  .app-shell .mm-row-mobile-meta { margin-top: 3px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .app-shell .mm-row-mobile-meta strong { color: var(--ink); font-weight: 700; }
  .app-shell .account-overview .mm-stat-display { display: none !important; }
  .app-shell .account-overview .mm-food-status-line { margin-top: 8px; }

  /* Secondary cards: compact, no marketing-size headlines or fixed heights. */
  .app-shell .account-overview .mm-plan-card.mm-plan-preview { height: auto; min-height: 0; }
  .app-shell .account-overview .mm-plan-card h2:not(.mm-card-eyebrow),
  .app-shell .account-overview .mm-plan-card .mm-plan-title { font-size: 21px; line-height: 1.25; margin: 10px 0 6px; }
  .app-shell .account-overview .mm-plan-card .btn { margin-top: 10px; }

  /* Progress. */
  .app-shell .account-overview .mm-progress-hero { height: auto; min-height: 0; gap: 14px; padding: 18px 16px; }
  .app-shell .account-overview .mm-progress-hero .mm-week { width: 100%; max-width: none; flex: 1 1 100%; margin: 4px 0; }
  .app-shell .account-overview .mm-progress-hero .mm-progress-value { margin: 8px 0 4px; }
  .app-shell .account-overview .mm-progress-hero .mm-progress-value strong { font-size: 48px; }
  .app-shell .progress-summary { grid-template-columns: 1fr; gap: 10px; }
  .app-shell .progress-ledger h2,
  .app-shell .weight-progress h2 { font-size: 21px; margin-bottom: 6px; }
  .app-shell .progress-ledger .activity-list li { flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; }
  .app-shell .mm-strength-ledger .activity-list li > span { flex: 1 1 100%; min-width: 0; }
  .app-shell .mm-strength-ledger .activity-list li > strong { flex: 1 1 100%; white-space: normal; text-align: left; font-weight: 600; font-variant-numeric: tabular-nums; }
  .app-shell .weight-progress .muted { font-size: 15px; line-height: 1.5; }
  .app-shell .ledger-scroll table { font-size: 14px; }
  .app-shell .ledger-scroll th,
  .app-shell .ledger-scroll td { padding-inline: 6px; }

  /* Messages. */
  .app-shell .chat-head h1 { font-size: 28px; }
  .app-shell .mm-sms-callout { padding: 12px 14px; font-size: 13px; line-height: 1.45; }
  .app-shell .mm-sms-callout .mm-sms-sub { font-size: 12px; }

  /* Settings. */
  .app-shell .settings h2.settings-group-title {
    margin: 26px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    color: var(--muted);
  }
  .app-shell .settings .theme-toggle { font: 600 14px Arial, sans-serif; letter-spacing: 0; }
  .app-shell .settings .settings-page-head { align-items: flex-start; }
  .app-shell .settings-profile-card .setting-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .app-shell .settings-profile-card #edit-profile { width: 100%; justify-content: center; }
  .app-shell #withdraw-sms-form { margin-bottom: 8px; }
  .app-shell #withdraw-sms-form .text-btn { align-self: flex-start; padding-left: 0; }
  .app-shell .settings-password-box { margin-top: 18px; }

  /* Edit profile: a single card instead of card-in-card, with stacked full-width fields on mobile. */
  .shell.profile-focused-shell { padding-inline: 16px; }
  .profile-focused-header { min-height: 56px; padding: 12px 0; justify-content: space-between; }
  .profile-setup-page,
  .app-shell .profile-setup-page { padding-top: 12px; margin: 16px auto 48px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .profile-setup-head,
  .app-shell .profile-setup-head { gap: 10px; }
  .profile-setup-head h1,
  .app-shell .profile-setup-head h1 { font-size: 30px; line-height: 1.15; }
  .profile-setup-head .muted,
  .app-shell .profile-setup-head .muted { font-size: 15px; line-height: 1.5; }
  .profile-form-structured.card,
  .app-shell .profile-form-structured.card { padding: 18px 16px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .profile-form-structured .form-section,
  .app-shell .profile-form-structured .form-section { padding: 0; border: 0; background: none; box-shadow: none; min-width: 0; max-width: 100%; }
  .profile-form-structured .columns:not([hidden]),
  .app-shell .profile-form-structured .columns:not([hidden]) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .profile-form-structured .field,
  .profile-form-structured input,
  .profile-form-structured select,
  .profile-form-structured textarea,
  .profile-form-structured .input-group-row { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .profile-form-structured select,
  .app-shell .profile-form-structured select { text-overflow: ellipsis; }
}

/* ==========================================================================
   Calibration Card, Fitbod Readiness & Minimalist SaaS Components
   ========================================================================== */
.mm-calibration-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  display: grid;
  gap: 18px;
}
.mm-fitbod-card > .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mm-fitbod-card > .panel-head h2 {
  font-size: var(--mm-type-heading, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 2px 0 0;
}
.mm-fitbod-split-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
  gap: 24px;
  align-items: start;
}
.mm-fitbod-lhs-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.mm-fitbod-rhs-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mm-fitbod-rhs-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mm-fitbod-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mm-next-split-heading {
  display: block;
  font-size: var(--mm-type-heading, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2px 0 0;
}
.mm-next-split-heading .muted.small {
  font-weight: 500;
  font-size: var(--mm-type-label, 0.8125rem);
  color: var(--muted);
}
.mm-body-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 600;
  color: var(--muted);
}
.mm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.mm-legend-dot.fresh { background: #10b981; }
.mm-legend-dot.recovering { background: #f59e0b; }
.mm-legend-dot.fatigued { background: #ef4444; }
.mm-body-svg-stage {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-body-map-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
.mm-body-svg-label {
  font: 700 9px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.12em;
  fill: var(--muted);
}
.mm-calib-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mm-calib-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mm-calib-tile {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mm-calib-val {
  font-size: var(--mm-type-body, 1rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.mm-next-muscles-summary {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: var(--mm-type-label, 0.8125rem);
  line-height: 1.5;
}
.mm-next-muscles-line {
  margin: 0;
  color: var(--muted);
}
.mm-next-muscles-line strong {
  color: var(--ink);
  font-weight: 650;
}
.mm-calib-lifts-wrap {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}
.mm-next-target-pill {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 650;
  background: transparent;
  border: 0;
  color: #244de8 !important;
  white-space: nowrap;
}
.mm-calib-edit-drawer {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.mm-calib-edit-drawer > summary {
  cursor: pointer;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 600;
  color: #244de8;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm-calib-edit-drawer > summary::-webkit-details-marker {
  display: none;
}
.mm-calib-edit-drawer > summary::after {
  content: "▾";
  font-size: 11px;
}
.mm-calib-edit-drawer[open] > summary {
  margin-bottom: 10px;
}
.mm-calib-edit-drawer[open] > summary::after {
  content: "▴";
}

/* Meal row: Food icon + simple bold title + thinner inline description */
.mm-meal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mm-meal-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.mm-meal-title-wrap {
  display: inline;
  line-height: 1.4;
}
.mm-meal-title-wrap .entry-title {
  font-size: var(--mm-type-body, 1rem);
  font-weight: 650;
  color: var(--ink);
}
.mm-meal-desc {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

/* Exercise 4-Column Table (Exercise | Sets × Reps | Weight | Target) */
.mm-sets-breakdown {
  font-size: var(--mm-type-label, 0.8125rem);
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.mm-exercise-thin-table .col-sets,
.mm-exercise-thin-table .col-weight,
.mm-exercise-thin-table .col-target {
  width: 125px;
}

/* Progress Goal Headline & Settings Hero Card */
.mm-progress-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.mm-progress-goal-headline,
.mm-progress-goal-headline h2 {
  font-size: var(--mm-type-heading, 1.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 4px;
}
.mm-progress-goal-headline p {
  margin: 0;
  font-size: var(--mm-type-body, 1rem);
  color: var(--muted);
}
.mm-settings-hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}
.mm-settings-hero-card h3 {
  margin: 2px 0 0;
  font-size: var(--mm-type-heading, 1.25rem);
  color: var(--ink);
}
.mm-settings-plan-row {
  margin-top: 10px;
}
.mm-settings-calib-box {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 14px;
}
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.admin-section-objective {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  max-width: 72ch;
}
.admin-section-objective strong {
  color: #0f172a;
  font-weight: 650;
}
.admin-collapsible > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.admin-collapsible[open] > summary {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.admin-sub-disclosure {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 16px;
}
.admin-sub-summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-size: 13.5px;
}
.admin-sub-disclosure[open] > .admin-sub-summary {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* ==========================================================================
   2-Pane Live Conversations & Participant Inspector (#admin-conversations)
   ========================================================================== */
.admin-conv-workspace {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}
.admin-conv-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.admin-conv-header h3 {
  margin: 2px 0 0;
  font-size: 21px;
  color: #0f172a;
}
.admin-conv-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.admin-conv-split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 660px;
}
.admin-conv-sidebar {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-conv-filters {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  display: grid;
  gap: 10px;
}
.admin-conv-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.admin-conv-search-row input[type="search"] {
  flex: 1;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
}
.admin-conv-search-row input[type="search"]:focus {
  outline: 2px solid rgba(36, 77, 232, 0.2);
  border-color: #244de8;
  background: #ffffff;
}
.admin-conv-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-filter-pill {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.admin-filter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.admin-filter-pill.active {
  background: #eff4ff;
  border-color: #c7d7fe;
  color: #244de8;
}
.admin-conv-list {
  flex: 1;
  overflow-y: auto;
  max-height: 760px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-conv-empty-list {
  padding: 18px 12px;
  text-align: center;
}
.admin-conv-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s ease;
}
.admin-conv-item:hover {
  background: #ffffff;
  border-color: #e2e8f0;
}
.admin-conv-item.is-active {
  border-color: #c7d7fe;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.admin-conv-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-conv-item.is-active .admin-conv-avatar {
  background: #244de8;
  color: #ffffff;
}
.admin-conv-item-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.admin-conv-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.admin-conv-item-name {
  font-size: 13.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-conv-stage-pill {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  padding: 0;
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.admin-conv-item-mid {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-conv-item-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}
.admin-conv-msg-count {
  font-weight: 600;
  color: #475569;
}
.admin-conv-main {
  min-width: 0;
  background: #ffffff;
  padding: 20px 24px;
}
.admin-conv-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}
.admin-inspector-content {
  display: grid;
  gap: 16px;
}
.admin-inspector-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
}
.admin-inspector-identity {
  display: grid;
  gap: 4px;
}
.admin-inspector-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.admin-inspector-title-row h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}
.admin-inspector-contact {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.admin-inspector-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}
.admin-inspector-subtitle strong {
  color: #334155;
  font-weight: 600;
}
.admin-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-more-menu {
  position: relative;
}
.admin-more-menu > summary {
  list-style: none;
  cursor: pointer;
}
.admin-more-menu > summary::-webkit-details-marker {
  display: none;
}
.admin-more-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-more-menu-list .text-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  text-decoration: none;
}
.admin-more-menu-list .text-btn:hover {
  background: #f1f5f9;
}
.admin-chat-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
}
.admin-chat-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
}
.admin-chat-date-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-chat-date-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.admin-chat-date-filters input[type="search"],
.admin-chat-date-filters select {
  width: auto;
  min-width: 150px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12.5px;
}
.admin-chat-date-filters input[type="date"] {
  width: auto;
  max-width: 100%;
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
}
.admin-chat-feed {
  max-height: 440px;
  overflow-y: auto;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-chat-feed .message {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.48;
  white-space: normal;
  margin-bottom: 0;
}
.admin-chat-feed .message.in {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.admin-chat-feed .message.out {
  align-self: flex-end;
  background: #eff4ff;
  border: 1px solid #dbe6fe;
  color: #0f172a;
}
.admin-msg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.admin-msg-photo-pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
}
.admin-msg-body {
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-composer-wrap {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.admin-chat-empty {
  padding: 28px 16px;
  text-align: center;
}

@media (max-width: 920px) {
  .admin-conv-split {
    grid-template-columns: 1fr;
  }
  .admin-conv-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
  .admin-conv-list {
    max-height: 280px;
  }
  .mm-fitbod-split-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .mm-calib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .admin-top-bar .settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-top-bar .settings-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 34px;
  }
  .admin-users-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-table-controls {
    width: 100%;
  }
  .admin-table-controls input[type="search"],
  .admin-table-controls select {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .mm-calibration-card,
  .admin-calibration-panel {
    padding: 14px;
    border-radius: 14px;
  }
  .mm-calib-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .mm-calib-grid-3 > .mm-calib-tile:nth-child(3) {
    grid-column: 1 / -1;
  }
  .mm-calib-grid-3 .mm-calib-tile {
    padding: 10px 8px;
  }
  .mm-calib-grid-3 .mm-calib-val {
    font-size: 14px;
  }
  .mm-body-map-svg {
    max-width: 240px;
  }
  .admin-conv-header,
  .admin-conv-main {
    padding: 14px 16px;
  }
  .admin-conv-list {
    max-height: 240px;
  }
  .admin-inspector-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-inspector-actions {
    width: 100%;
    justify-content: space-between;
  }
  .admin-chat-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin-chat-feed {
    padding: 12px;
  }
  .admin-chat-feed .message {
    max-width: 92%;
  }
  .admin-feature-add-bar {
    grid-template-columns: 1fr !important;
  }
}

.mm-strength-calib-inline-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.mm-calib-quick-anchors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mm-anchor-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.mm-anchor-field input,
.mm-anchor-field select {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}
.mm-anchor-field select {
  padding-right: 28px;
  background-position: right 8px center;
}
.mm-inline-lift-edit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.mm-inline-lift-input {
  width: 72px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.mm-calib-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.admin-features-panel {
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.admin-feature-add-bar {
  display: grid;
  grid-template-columns: 150px 1.2fr 150px 1.5fr 1.2fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.admin-feature-add-bar input,
.admin-feature-add-bar select {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  font-size: 13px;
}
.admin-feature-add-bar select {
  padding-right: 28px;
  background-position: right 8px center;
}
.admin-feature-tables-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}
.admin-sub-table-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: #0f172a;
}
.admin-rag-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-rag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  cursor: pointer;
}
.admin-rag-pill:hover {
  background: #f1f5f9;
}
.admin-rag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.admin-rag-pill.rag-green .admin-rag-dot {
  background: #10b981;
}
.admin-rag-pill.rag-yellow .admin-rag-dot {
  background: #f59e0b;
}
.admin-rag-pill.rag-red .admin-rag-dot {
  background: #ef4444;
}
.admin-feature-detail-drawer {
  margin: 10px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.admin-feature-detail-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.admin-feature-detail-inner h4 {
  margin: 4px 0 6px;
  font-size: 15px;
  color: #0f172a;
}
@media (max-width: 860px) {
  .mm-calib-quick-anchors,
  .admin-feature-add-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .mm-calib-quick-anchors {
    grid-template-columns: 1fr;
  }
}

/* Flatten nested cards inside Settings disclosures & 3-field columns */
.settings-disclosure > .card,
.settings-disclosure > form.card,
.settings-disclosure > section.card {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 6px 0 18px;
  margin: 0;
}
.settings-disclosure > .card + .card {
  border-top: 1px solid var(--line, #e2e8f0);
  padding-top: 16px;
}
.columns > .field:nth-child(3):last-child {
  grid-column: 1 / -1;
}

/* Mobile Keyboard Ergonomics & Zero iOS Safari Auto-Zoom */
input,
select,
textarea,
.field {
  scroll-margin-top: 24px;
  scroll-margin-bottom: 120px;
}

@media (max-width: 760px) {
  .field input,
  .field select,
  .field textarea,
  .input-unit-select select,
  .admin-table-controls select,
  .admin-table-controls input[type="search"],
  .admin-conv-search-row input[type="search"],
  .admin-chat-date-filters input[type="date"],
  .mm-anchor-field input,
  .mm-anchor-field select,
  .mm-inline-lift-input,
  .admin-feature-add-bar input,
  .admin-feature-add-bar select,
  .moment-choice textarea {
    font-size: 16px;
  }
  .app-shell:has(input:focus, textarea:focus) .header .tabs,
  html.keyboard-open .app-shell .header .tabs {
    display: none;
  }
  .app-shell:has(input:focus, textarea:focus),
  html.keyboard-open .app-shell {
    padding-bottom: 20px;
  }
  body:has(.app-shell) #toast {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  html.keyboard-open #toast,
  body:has(.app-shell input:focus, .app-shell textarea:focus) #toast {
    bottom: 20px;
  }
}

/* ==========================================================================
   Simplified Light SaaS Admin Console (5-Tab Architecture)
   ========================================================================== */
html:has(.admin-workspace),
body:has(.admin-workspace),
.shell:has(.admin-workspace) {
  --paper: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  background-color: #f8fafc;
  color: #0f172a;
}

.shell:has(.admin-workspace) {
  max-width: 1360px;
}

.settings.admin-workspace {
  max-width: 1320px;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 16px;
}

.settings.admin-workspace > [hidden],
.admin-tab-panel[hidden] {
  display: none !important;
}

.settings.admin-workspace > *,
.admin-conv-split > *,
.admin-conv-main,
.admin-inspector-content,
.admin-chat-panel {
  min-width: 0;
  max-width: 100%;
}

.admin-workspace .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.settings .card.admin-conv-workspace {
  padding: 0;
}

.admin-signin-card {
  max-width: 560px;
}

/* Override legacy journal.css (.admin-person strong 23px Georgia serif) & styles.css (.admin-person span/strong block) */
.admin-workspace tr.admin-person {
  padding: 0;
  border-radius: 0;
}

.admin-workspace .admin-conv-item.admin-person {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.admin-workspace .admin-conv-item.admin-person:hover {
  background: #ffffff;
  border-color: #e2e8f0;
}

.admin-workspace .admin-conv-item.admin-person.is-active {
  background: #ffffff;
  border-color: #c7d7fe;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.admin-workspace .admin-person strong {
  display: inline;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.admin-workspace .admin-person span {
  display: inline;
  margin-top: 0;
}

.admin-workspace tr.admin-person span:not(.admin-badge):not(.admin-status-dot):not(.muted) {
  font-size: 13px;
  color: #0f172a;
}

.admin-workspace tr.admin-person span.muted {
  font-size: 12px;
  color: #64748b;
}

.admin-workspace .admin-person .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-workspace .admin-person .admin-status-dot {
  display: inline-block;
}

.admin-workspace .admin-person .admin-badge,
.admin-workspace .admin-person .admin-conv-stage-pill {
  display: inline-flex;
}

.shell:has(.admin-workspace) > .footer.site-footer-v2,
.shell:has(.admin-workspace) .header .nav {
  display: none;
}

.shell:has(.admin-workspace) .header {
  min-height: 52px;
  padding: 10px 0;
  margin-bottom: 8px;
}

.admin-workspace .admin-top-bar-compact {
  align-items: center;
  margin-bottom: 2px;
  padding-bottom: 10px;
}

.admin-top-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-workspace .admin-top-title-group h1 {
  margin: 0;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.admin-users-head .admin-table-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.admin-users-head .admin-table-controls input[type="search"],
.admin-users-head .admin-table-controls select {
  width: auto;
  min-width: 210px;
}

.admin-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-outbound-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.admin-outbound-pill.is-paused {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* Segmented Light SaaS Tab Bar (Replaces Black #0f172a Pill) */
.admin-pillar-nav {
  position: sticky;
  top: 8px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  margin-bottom: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.admin-pillar-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
}

.admin-pillar-link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.admin-pillar-link.active {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #2563eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-pillar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.admin-pillar-link.active .admin-pillar-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-mobile-back-btn {
  display: none;
}

.admin-view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-view-head h3 {
  margin: 0;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.admin-view-head p {
  margin: 2px 0 0;
}

.admin-overview-funnel-strip {
  margin: 14px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.admin-overview-funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-winback-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  text-align: center;
}

/* Tab 1: 2-Column Visual Pulse Grid */
.admin-pulse-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin: 14px 0 0;
}

.admin-pulse-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-pulse-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-pulse-card-head h4 {
  margin: 0;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.admin-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.admin-legend-swatch.swatch-in {
  background: #2563eb;
}

.admin-legend-swatch.swatch-out {
  background: #93c5fd;
}

.admin-legend-tag {
  font-weight: 600;
  color: #0f766e;
}

.admin-svg-chart-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px 4px;
}

.admin-daily-svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-compact-table-wrap {
  margin-top: 2px;
}

.admin-compact-table th,
.admin-compact-table td {
  padding: 6px 10px;
  font-size: 12px;
}

.admin-util-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.admin-util-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-util-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #1e293b;
}

.admin-util-progress {
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.admin-util-progress::-webkit-progress-bar {
  background-color: #e2e8f0;
  border-radius: 999px;
}

.admin-util-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 999px;
}

.admin-util-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 999px;
}

/* Activation Funnel Strip */
.admin-milestone-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-milestone-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #2563eb;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.admin-milestone-step:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.admin-milestone-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.admin-milestone-pct {
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.admin-milestone-val {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* Tab 2: Follow-ups Queue & Composer Drawer */
.admin-queue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-queue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-winback-drawer {
  margin: 0 0 16px;
  background: #f8fafc;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.admin-winback-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-winback-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-winback-drawer-head h4 {
  margin: 2px 0 0;
  font-size: 16px;
  color: #0f172a;
}

.admin-winback-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-winback-context-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-winback-context-card p {
  margin: 4px 0;
}

.admin-winback-templates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-winback-editor-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-winback-editor-label textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #0f172a;
}

.admin-winback-drawer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-winback-row {
  cursor: pointer;
}

.admin-winback-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-personal-hook-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 11.5px;
  color: #166534;
}

.admin-strike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.admin-strike-card {
  padding: 12px;
}

.admin-strike-card.strike-ok {
  border-left: 4px solid #16a34a;
}

.admin-strike-card.strike-warn {
  border-left: 4px solid #d97706;
}

.admin-strike-card.strike-bad {
  border-left: 4px solid #dc2626;
}

.admin-strike-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.admin-strike-card-title {
  margin-top: 6px;
  font-weight: 700;
  color: #0f172a;
}

.admin-strike-card-foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

/* Tab 3: Inbox 2-Line Thread List & Collapsible Context Drawer */
.admin-conv-header-compact {
  padding: 14px 20px;
  align-items: center;
}

.admin-conv-header-compact h3 {
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.admin-workspace .admin-conv-item-top,
.admin-workspace .admin-conv-item-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.admin-workspace .admin-conv-time,
.admin-workspace .admin-conv-item-time {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-workspace .admin-conv-item-preview {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-workspace .admin-conv-stage-pill {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-notes-memory-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.admin-notes-memory-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-note-inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 280px;
  max-width: 440px;
}

.admin-note-inline-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 5px 10px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.admin-chat-date-filters input[type="search"],
.admin-chat-date-filters select {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
}

/* Tab 5: System Stack */
.admin-system-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-system-drawers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1024px) {
  .admin-pulse-grid {
    grid-template-columns: 1fr;
  }
  .admin-milestone-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-mobile-back-btn {
    display: inline-flex;
  }
  #admin-conversations[data-mobile-pane="list"] .admin-conv-main {
    display: none;
  }
  #admin-conversations[data-mobile-pane="detail"] .admin-conv-sidebar {
    display: none;
  }
  .admin-conv-list {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .admin-pillar-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 4px;
  }
  .admin-pillar-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 11px;
    font-size: 12.5px;
  }
  .admin-milestone-strip,
  .admin-winback-context-grid {
    grid-template-columns: 1fr;
  }
  .admin-queue-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-users-head .admin-table-controls {
    flex-wrap: wrap;
    width: 100%;
  }
  .admin-users-head .admin-table-controls input[type="search"],
  .admin-users-head .admin-table-controls select {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  #admin-winback-search,
  #admin-winback-textarea,
  .admin-winback-editor-label textarea,
  .admin-note-inline-form input[type="text"],
  .admin-chat-date-filters input[type="search"],
  .admin-chat-date-filters input[type="date"],
  .admin-chat-date-filters select {
    font-size: 16px;
  }
  .admin-note-inline-form {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .admin-winback-table,
  .admin-winback-table tbody,
  .admin-users-table,
  .admin-users-table tbody {
    display: block;
    width: 100%;
  }
  .admin-winback-table thead,
  .admin-users-table thead {
    display: none;
  }
  .admin-winback-table tr.admin-winback-row,
  .admin-users-table tr.admin-table-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
  }
  .admin-winback-table tr.admin-winback-row[hidden],
  .admin-users-table tr.admin-table-row[hidden] {
    display: none !important;
  }
  .admin-winback-table tr.admin-winback-row td,
  .admin-users-table tr.admin-table-row td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    text-align: left;
  }
  .admin-winback-table tr.admin-winback-row td[data-label]::before,
  .admin-users-table tr.admin-table-row td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
  }
  .admin-winback-row-actions {
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
  }
}

/* ==========================================================================
   Light SaaS Member Views: 3-Card Dashboard, Nutrition, Body, Progress, Settings
   ========================================================================== */
.account-overview h1,
.account-overview h2,
.account-overview h3,
.account-overview h4,
.settings h1,
.settings h2,
.settings h3,
.settings h4 {
  font-family: var(--sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.account-overview .card,
.settings .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.mm-dashboard-3cards,
.mm-dashboard-3box-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}

.mm-dash-card,
.mm-dash-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mm-dash-card:hover,
.mm-dash-box:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(36, 77, 232, 0.08);
  text-decoration: none;
}

.mm-dash-card:focus-visible,
.mm-dash-box:focus-visible {
  outline: 2px solid #244de8;
  outline-offset: 2px;
}

.mm-dash-card-head,
.mm-dash-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-dash-card-head .mm-goal-title,
.mm-dash-box-title {
  margin: 2px 0 0;
  font-size: var(--mm-type-heading, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.mm-dash-card-foot,
.mm-dash-box-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 650;
  color: #244de8;
}

:root[data-theme="dark"] .mm-dash-card-foot,
:root[data-theme="dark"] .mm-dash-box-foot {
  color: #7b9aff;
}

.mm-dash-cta-arrow {
  font-weight: 700;
  transition: transform 0.15s ease;
}

.mm-dash-card:hover .mm-dash-cta-arrow {
  transform: translateX(3px);
}

/* Card 1: Calories & Macros */
.mm-dash-cal-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-dash-cal-primary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-dash-big-num {
  font-size: var(--mm-type-kpi, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mm-dash-big-unit {
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 500;
  color: var(--muted);
}

.mm-dash-macro-strip,
.mm-macro-bars-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mm-dash-macro-cell,
.mm-macro-mini-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.mm-dash-macro-cell strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mm-dash-macro-cell strong small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.mm-card-week-section,
.mm-week-summary-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.mm-card-week-head,
.mm-week-summary-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.mm-card-week-title {
  font-weight: 650;
  color: var(--ink);
}

.mm-card-week-avg {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mm-week-cal-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  padding-top: 2px;
}

.mm-week-cal-col,
.mm-week-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mm-week-cal-bar-track,
.mm-week-day-bar-wrap {
  width: 100%;
  height: 30px;
  border-radius: 6px;
  background: var(--line);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.mm-week-cal-col.is-future .mm-week-cal-bar-track,
.mm-week-day-col.is-future .mm-week-day-bar-wrap {
  opacity: 0.45;
}

.mm-week-cal-bar-fill,
.mm-week-day-bar-fill {
  width: 100%;
  background: #cbd5e1;
  border-radius: 6px;
  min-height: 4px;
}

.mm-week-cal-bar-fill.logged {
  background: #244de8;
}

.mm-week-cal-bar-fill.over {
  background: #f59e0b;
}

.mm-week-cal-dow,
.mm-week-day-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.mm-week-cal-col.is-today .mm-week-cal-dow,
.mm-week-day-col.is-today .mm-week-day-lbl {
  color: #244de8;
  font-weight: 700;
}

/* Card 2: Body Utilization */
.mm-dash-body-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.mm-dash-body-stage .mm-body-map-svg {
  max-width: 240px;
}

.mm-dash-body-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mm-dash-body-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  min-width: 0;
}

.mm-dash-body-stat strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* Card 3: Goal Progress */
.mm-goal-metrics-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.mm-goal-metrics-3 > div {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

/* Subpage Top Navigation Bar & Segmented Switch */
.mm-subpage-topbar,
.mm-drilldown-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mm-segmented-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.mm-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 7px;
  font-size: var(--mm-type-label, 0.8125rem);
  font-weight: 650;
  cursor: pointer;
  min-height: 36px;
}

.mm-seg-btn:hover {
  color: var(--ink);
}

.mm-seg-btn.active {
  background: #244de8;
  color: #ffffff;
}

.mm-seg-btn.active:hover,
.mm-seg-btn.active:focus-visible {
  background: #173abf;
  color: #ffffff;
}

/* Body Subpage Top KPIs */
.mm-body-top-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mm-body-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mm-body-stat-pill strong {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mm-body-stat-pill span {
  font-size: 12px;
  color: var(--muted);
}

/* Weekly Nutrition 4x7 Matrix */
.mm-weekly-matrix-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mm-weekly-matrix-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mm-weekly-matrix-summary strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}

.mm-weekly-matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.mm-weekly-matrix-table th,
.mm-weekly-matrix-table td {
  text-align: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.mm-weekly-matrix-table th:first-child,
.mm-weekly-matrix-table td:first-child {
  text-align: left;
  font-weight: 650;
  min-width: 96px;
}

.mm-weekly-matrix-table th:first-child small,
.mm-weekly-matrix-table tbody th small {
  display: block;
  font-weight: 500;
  font-size: 11px;
}

.mm-matrix-day-btn {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.mm-matrix-day-btn small {
  font-size: 11px;
  color: var(--muted);
}

.mm-matrix-day-btn:hover:not(:disabled) {
  background: var(--soft);
  color: #244de8;
}

.mm-weekly-matrix-table th.is-today .mm-matrix-day-btn {
  border-color: #244de8;
  color: #244de8;
}

.mm-matrix-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mm-matrix-vbar {
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: var(--line);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  flex-shrink: 0;
}

.mm-matrix-vfill {
  width: 100%;
  background: #244de8;
  border-radius: 999px;
}

.mm-matrix-nums {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.mm-matrix-nums strong {
  font-size: 12.5px;
  color: var(--ink);
}

.mm-matrix-nums small {
  font-size: 10.5px;
  color: var(--muted);
}

/* Clean Disclosure Cards */
details.card.mm-disclosure-card {
  padding: 0 24px;
}

details.card.mm-disclosure-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

details.card.mm-disclosure-card > summary::-webkit-details-marker {
  display: none;
}

details.card.mm-disclosure-card[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

details.card.mm-disclosure-card > :not(summary) {
  padding-bottom: 18px;
}

details.card.mm-disclosure-card > .card {
  border: 0;
  box-shadow: none;
  padding: 0 0 18px;
  background: transparent;
}

@media (max-width: 1060px) {
  .mm-dashboard-3cards,
  .mm-dashboard-3box-grid {
    grid-template-columns: 1fr;
  }
}

/* Crisp App Shell Chrome & Overflow Prevention across Mobile + Desktop */
.app-shell > .footer.site-footer-v2,
.app-shell .site-footer-v2 {
  display: none !important;
}

.app-shell .header {
  min-height: 58px;
  height: 58px;
}

.app-shell .app-header {
  margin-bottom: 14px;
}

.app-shell .account-overview .account-page-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.app-shell .account-overview .account-page-head .mm-head-actions,
.app-shell .account-overview .mm-subpage-topbar .mm-head-actions,
.mm-subpage-topbar .mm-head-actions {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  gap: 6px;
  flex-shrink: 0;
}

.app-shell .account-overview .account-page-head h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.18;
}

.app-shell .account-overview .account-page-head .edition,
.app-shell .account-overview .account-page-head p.muted {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mm-subpage-topbar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mm-dash-card-goal .mm-dash-card-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.mm-nutrition-kpi-strip .mm-kpi-num {
  font-size: clamp(1.2rem, 3.6vw, 1.65rem) !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mm-nutrition-kpi-strip .mm-kpi-num small {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 600px) {
  .mm-dash-card,
  .mm-dash-box,
  .account-overview .card,
  .settings .card {
    padding: 16px;
  }
  .mm-dash-body-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mm-dash-body-meta .mm-dash-body-stat:nth-child(3) {
    grid-column: 1 / -1;
  }
  .mm-subpage-topbar .btn.small,
  .mm-subpage-topbar .mm-seg-btn {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .mm-nutrition-kpi-strip .mm-daily-kpi {
    padding: 12px;
    min-width: 0;
  }
}




