/* Demo-only framing; copied app navigation remains untouched. */
.demo-banner {position:sticky;top:0;z-index:100;padding:9px 18px;background:#f5f5f7;color:#111113;border-bottom:1px solid #d9d9df;font:12px/1.45 Archivo,sans-serif;display:flex;gap:8px 24px;justify-content:space-between;align-items:center;}
.demo-banner div {display:flex;align-items:center;gap:18px;flex-shrink:0;}
.demo-banner a {color:#111113;font-weight:560;text-decoration:underline;text-underline-offset:3px;}
.demo-banner button {font:inherit;border:0;padding:7px 0;background:transparent;color:#111113;text-decoration:underline;text-underline-offset:3px;border-radius:0;min-height:30px;width:auto;}
.demo-notice {position:fixed;z-index:10000;top:90px;left:50%;transform:translateX(-50%);padding:12px 18px;max-width:90vw;background:#111113;color:white;border-radius:8px;box-shadow:0 3px 18px #0003;font:14px/1.4 Archivo,sans-serif;}
.demo-noscript {padding:24px;font:16px/1.6 Archivo,sans-serif;}
#cnf-search-results,#usda-fallback,#scan-fallback-usda {display:none!important;}
#label-photo-input,#plate-photo-input {pointer-events:none;}
.demo-banner :focus-visible {outline:2px solid #0b57d0;outline-offset:4px;}
@media(max-width:600px){.demo-banner{flex-direction:column;align-items:flex-start;gap:0;padding:7px 16px;}.demo-banner div{gap:24px;}.demo-banner button{padding:4px 0;}.demo-banner span{font-size:11px;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important;}}

body:not(.signed-in) .hero {display:none;}
/* Desktop: app sidebar is fixed full-height; start it below the sticky demo banner. */
@media(min-width:1024px){.demo-banner{box-sizing:border-box;height:48px;padding-block:0;}#app-card:not(.hidden)>.tab-nav{top:48px;height:calc(100dvh - 48px);}}
/* Desktop Workouts: the template column is ~200px wide, and the nowrap "✓ Selected ›" trail left the
   template name ~30px. In the demo the trail sits under the name and exercises instead. */
@media(min-width:1024px){#workouts-panel #template-strip>.template-row{grid-template-columns:36px minmax(0,1fr);row-gap:2px;}#workouts-panel #template-strip>.template-row>.ledger-trail{grid-column:2;justify-self:start;}}
@media(min-width:1024px) and (max-width:1279px){#workouts-panel #template-strip>.template-row{grid-template-columns:minmax(0,1fr);}#workouts-panel #template-strip>.template-row>.ico{display:none;}#workouts-panel #template-strip>.template-row>.ledger-trail{grid-column:1;}}
/* Phone: the Duplicate sheet's header "Add" link wrapped to "Ad / d" next to its long title. */
#confirm-repeat-review{white-space:nowrap;}
/* Dark theme: the banner follows the app. theme.js retargets this media block with the app's own when Light/Dark is forced. */
@media (prefers-color-scheme: dark){.demo-banner{background:#111113;color:#f2f2f5;border-bottom-color:#2a2a30}.demo-banner a,.demo-banner button{color:#f2f2f5}.demo-banner :focus-visible{outline-color:#8ab4f8}.demo-notice{background:#f2f2f5;color:#111113}}
