@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', sans-serif; color: #192b2b; background: #f4f7f6;
  font-synthesis: none; text-rendering: optimizeLegibility;
  --primary: #00897b; --secondary: #26a69a; --ink: #192b2b; --muted: #748381;
  --line: #e5ece9; --paper: #fff; --soft: #eaf5f2;
  --shadow: 0 16px 50px rgba(22, 56, 50, .07);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% -10%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent 32rem), #f4f7f6; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar { height: 76px; padding: 0 max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(224,234,230,.8); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 18px Manrope,sans-serif; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; }
.topnav,.button-row { display: flex; align-items: center; gap: 14px; }
.topnav a { font-size: 13px; color: #657370; }
.topnav a:hover { color: var(--primary); }
.page-shell { width: min(1180px,92vw); margin: 46px auto 64px; min-height: calc(100vh - 190px); }
.footer { border-top: 1px solid var(--line); padding: 22px max(5vw,24px); display: flex; justify-content: space-between; color: #8a9794; font-size: 12px; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 20px; }
.welcome-row h1,.login-story h1 { font: 800 clamp(30px,4vw,46px)/1.1 Manrope,sans-serif; letter-spacing: -.055em; margin: 8px 0; }
.welcome-row h1 em,.login-story h1 em { font-style: normal; color: var(--primary); }
.eyebrow { font-size: 10px; letter-spacing: .17em; font-weight: 700; color: var(--primary); margin: 0 0 9px; }
.muted { color: var(--muted); font-size: 14px; margin: 8px 0; }
.small { font-size: 12px; } .center { text-align: center; }
.live-pill { display: flex; align-items: center; gap: 8px; background: #e5f6ed; color: #278350; border-radius: 99px; padding: 9px 13px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.live-pill i { width: 7px; height: 7px; background: #35b66c; border-radius: 50%; box-shadow: 0 0 0 4px #c9f1d9; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 22px 0; }
.compact-stats { grid-template-columns: repeat(3,1fr); }
.stat-card,.panel { background: var(--paper); border: 1px solid rgba(220,232,227,.9); border-radius: 18px; box-shadow: var(--shadow); }
.stat-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 7px; animation: rise .45s both; }
.stat-card:nth-child(2) { animation-delay: .04s; } .stat-card:nth-child(3) { animation-delay: .08s; } .stat-card:nth-child(4) { animation-delay: .12s; }
.stat-card span { font-size: 12px; color: #72817d; }
.stat-card strong { font: 800 27px Manrope,sans-serif; letter-spacing: -.05em; }
.stat-card small { font-size: 11px; color: #9aa6a2; }
.gym-banner { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; margin: 22px 0; background: linear-gradient(115deg,#fff,#f0f8f5); }
.gym-banner h2,.panel h2 { font: 750 21px Manrope,sans-serif; letter-spacing: -.035em; margin: 0; }
.gym-icon { width: 52px; height: 52px; border-radius: 17px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 29px; }
.section-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 28px 0 18px; overflow: auto; }
.tab { border: 0; background: transparent; color: #71807c; padding: 13px 16px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-size: 13px; }
.tab.active { color: var(--primary); border-color: var(--primary); font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel { padding: 24px; } .data-panel { display: none; } .data-panel.active { display: block; animation: rise .3s ease both; }
.panel-heading,.dialog-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; }
.table-wrap { overflow: auto; } table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; text-transform: uppercase; font-size: 9px; letter-spacing: .12em; color: #94a19e; padding: 12px; border-bottom: 1px solid var(--line); }
td { font-size: 12px; padding: 14px 12px; border-bottom: 1px solid #eef2f0; color: #4a5a56; } tr:last-child td { border-bottom: 0; }
.empty-cell { text-align: center !important; padding: 28px; color: #9aa6a2; }
.status-pill { display: inline-flex; border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 700; }
.status-good { background: #e5f6ed; color: #23834e; } .status-muted { background: #f1f3f3; color: #7d8986; }
.button { border: 0; border-radius: 11px; padding: 11px 15px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .16s,box-shadow .16s,background .16s; }
.button:hover { transform: translateY(-1px); } .button:disabled { opacity: .6; cursor: wait; }
.button-primary { background: var(--primary); color: white; box-shadow: 0 7px 16px color-mix(in srgb,var(--primary) 22%,transparent); }
.button-primary:hover { background: color-mix(in srgb,var(--primary) 90%,#000); }
.button-secondary { background: var(--soft); color: var(--primary); } .button-quiet { background: transparent; color: #73817d; }
.button-wide { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.button-row { justify-content: flex-end; flex-wrap: wrap; }
.table-action { color: var(--primary); background: none; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.form-dialog { border: 0; padding: 0; border-radius: 20px; width: min(560px,94vw); box-shadow: 0 30px 100px #173d3240; }
.form-dialog[open] { animation: slide-in .22s ease-out both; }
.form-dialog::backdrop { background: #10282480; backdrop-filter: blur(4px); }
.dialog-form { padding: 28px; display: grid; gap: 18px; }
.dialog-title { margin-bottom: 0; } .icon-button { border: 0; background: #f2f5f4; border-radius: 10px; width: 34px; height: 34px; font-size: 22px; color: #63736f; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label,.login-card label,.inline-form label,.select-label { display: grid; gap: 7px; font-size: 11px; font-weight: 600; color: #586964; }
.form-grid .span-2,.inline-form .span-2 { grid-column: span 2; }
input,select { min-width: 0; width: 100%; padding: 11px 12px; background: #fbfcfc; border: 1px solid #dce6e2; border-radius: 10px; outline: none; color: var(--ink); font-size: 13px; }
input:focus,select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--secondary) 15%,transparent); }
.selection-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.select-label { min-width: min(360px,55%); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-column h3 { font: 700 14px Manrope,sans-serif; }
.stack-list { display: grid; gap: 10px; }
.stack-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; }
.stack-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack-card-heading strong { font-size: 13px; } .stack-card-heading span { font-size: 11px; color: var(--primary); font-weight: 600; }
.stack-card p { font-size: 12px; color: #788681; line-height: 1.5; margin: 9px 0 0; }
.share-code { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font: 700 12px ui-monospace,monospace; background: var(--soft); border-radius: 8px; padding: 7px 10px; }
.join-request-list { display: grid; gap: 10px; }
.request-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.child-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: #71807c; }
.child-row span { flex: 1 1 150px; }
.progress-thumb { display: block; margin-top: 12px; max-width: 180px; max-height: 160px; border-radius: 12px; object-fit: cover; }
.progress-chart { display: block; width: 100%; height: 240px; margin: 4px 0 16px; }
.status-message { min-height: 0; margin: 0; color: #a73831; font-size: 12px; line-height: 1.5; }
.status-message:not(:empty) { padding: 10px 12px; border-radius: 10px; background: #fff0ee; }
.client-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 20px 0; background: linear-gradient(120deg,#fff,#f1f8f5); }
.inline-form { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 22px; padding: 16px; background: #f7faf9; border-radius: 14px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 0 18px; }
.filter-control { display: grid; gap: 6px; min-width: 150px; color: #586964; font-size: 11px; font-weight: 600; }
.check-filter { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 14px; color: #586964; font-size: 11px; }
.check-filter input { width: auto; }
.report-chart { display: block; width: 100%; max-width: 100%; height: 220px; }
.login-layout { min-height: 66vh; display: grid; grid-template-columns: minmax(0, 480px); justify-content: center; align-items: center; max-width: 720px; margin: 4vh auto; }
.login-story { display: none; }
.login-story h1 { font-size: clamp(42px,6vw,68px); }
.login-story>p:not(.eyebrow) { max-width: 390px; line-height: 1.7; color: var(--muted); }
.story-stat { display: flex; align-items: center; gap: 13px; margin-top: 40px; color: #75837f; font-size: 12px; line-height: 1.6; }
.story-stat strong { color: #293b37; } .stat-orb { width: 38px; height: 38px; border-radius: 13px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 20px; }
.login-card { padding: 36px; display: grid; gap: 18px; max-width: 480px; width: 100%; justify-self: center; }
.login-logo { width: 46px; height: 46px; margin-bottom: 4px; }
.login-card h2 { font: 800 27px Manrope,sans-serif; letter-spacing: -.04em; margin: 0; }
.login-card .muted { margin: -10px 0 5px; } .form-message { min-height: 17px; color: #bd4435; font-size: 12px; margin: 0; }
.form-message-success { color: #23834e; background: #e5f6ed; padding: 10px 12px; border-radius: 10px; line-height: 1.5; }
.login-step { display: grid; gap: 13px; }
.otp-input { text-align: center; font: 700 25px Manrope,sans-serif; letter-spacing: .28em; padding: 15px; }
.otp-actions { display: flex; justify-content: space-between; gap: 14px; }
.text-link-button { border: 0; padding: 7px 2px; color: var(--primary); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-link-button:disabled { color: var(--muted); cursor: wait; }
.device-switch-block { display: grid; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb,var(--primary) 28%,white); border-radius: 13px; background: var(--soft); }
.device-switch-block p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.device-switch-block .button-row { justify-content: flex-start; }
.profile-onboarding { max-width: 880px; margin: 0 auto; }
.profile-panel { margin: 18px 0; }
.profile-panel>h2 { margin: 0 0 18px; }
.role-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 16px 0 26px; }
.role-card { min-height: 145px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .16s,background .16s,transform .16s; }
.role-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--primary) 55%,white); }
.role-card.active { border-color: var(--primary); background: color-mix(in srgb,var(--primary) 7%,white); box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 10%,transparent); }
.role-card:disabled { cursor: not-allowed; opacity: .72; transform: none; }
.role-card strong { font: 750 14px Manrope,sans-serif; }
.role-card>span:last-child { color: var(--muted); font-size: 11px; line-height: 1.4; }
.role-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); color: var(--primary); font-size: 20px; }
.profile-form,.role-fields { display: grid; gap: 16px; }
.profile-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.profile-completion-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 18px; border-color: color-mix(in srgb,var(--primary) 28%,white); background: linear-gradient(110deg,#fff,var(--soft)); }
.profile-completion-banner p { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.role-fields { padding-top: 14px; border-top: 1px solid var(--line); }
.role-fields h3 { margin: 0; font: 700 15px Manrope,sans-serif; }
.profile-form textarea { min-width: 0; width: 100%; resize: vertical; padding: 11px 12px; background: #fbfcfc; border: 1px solid #dce6e2; border-radius: 10px; outline: none; color: var(--ink); font: inherit; font-size: 13px; }
.profile-form textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--secondary) 15%,transparent); }
.status-badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 8px 13px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-joined { color: #23834e; background: #e5f6ed; }
.status-pending { color: #8a6100; background: #fff4d5; }
.status-none { color: #64736f; background: #edf1ef; }
.gym-onboarding-panel { margin-top: 16px; }
.created-gym-success { margin: 16px 0; border-color: color-mix(in srgb,var(--primary) 28%,white); background: linear-gradient(120deg,#fff,var(--soft)); }
.created-gym-success h2 { margin: 0; font: 750 20px Manrope,sans-serif; }
.created-gym-success .share-code { margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
.gym-action-form { align-items: end; }
.profile-continue-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0 20px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 10; display: grid; gap: 9px; }
.toast { max-width: min(380px,90vw); padding: 13px 16px; border-radius: 12px; background: #203430; color: white; font-size: 13px; box-shadow: 0 12px 28px #183a332c; animation: slide-in .25s both; }
.toast-error { background: #a73831; } .toast-success { background: #247e51; } .toast-info { background: #315c8b; }
.hidden,[hidden] { display: none !important; }
.loading-panel { min-height: 260px; display: grid; align-content: center; justify-items: center; text-align: center; }
.quick-log-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; }
.log-shell { width: min(720px,100%); margin: 0 auto; padding-bottom: 40px; }
.log-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.log-heading h1 { margin: 0; font: 800 26px Manrope,sans-serif; }
.log-heading .eyebrow { margin-bottom: 3px; }
.log-back { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--paper); color: var(--primary); font-size: 30px; }
.log-date-label { display: grid; gap: 5px; margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 700; }
.log-date-label input { min-height: 44px; }
.log-total-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 15px; border-radius: 16px; background: #183f38; color: white; }
.log-total-strip div { display: grid; gap: 5px; }
.log-total-strip span { color: #b8d7ce; font-size: 10px; text-transform: uppercase; }
.log-total-strip strong { font: 750 17px Manrope,sans-serif; }
.log-tabs { display: flex; gap: 8px; margin: 18px 0; padding: 5px; border-radius: 14px; background: #e8efed; }
.log-tab { flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: #53645e; font-weight: 700; cursor: pointer; }
.log-tab.active { background: white; color: var(--primary); box-shadow: 0 3px 12px #153c3214; }
.log-panel { display: none; animation: rise .25s ease both; }
.log-panel.active { display: block; }
.log-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 22px 0 12px; }
.log-section-heading h2,.log-entry h2 { margin: 0; font: 750 18px Manrope,sans-serif; }
.log-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; }
.log-chip { flex: 0 0 auto; min-height: 44px; max-width: 85vw; border: 1px solid #cfe2dc; border-radius: 12px; padding: 10px 14px; background: #fff; color: #31544b; font-size: 12px; font-weight: 650; cursor: pointer; }
.log-chip:hover { border-color: var(--primary); }
.log-search-label { display: block; margin: 16px 0 7px; color: #586964; font-size: 11px; font-weight: 700; }
.log-shell input,.log-shell select { min-height: 48px; font-size: 15px; }
.log-results { display: grid; gap: 8px; margin-top: 10px; }
.log-result-row { min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.log-entry { margin-top: 16px; padding: 18px; border: 1px solid #cde2db; border-radius: 16px; background: linear-gradient(145deg,#fff,#f1f8f5); box-shadow: var(--shadow); }
.log-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.log-entry-heading .muted { margin-bottom: 0; }
.stepper-grid,.food-entry-fields,.optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stepper { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.stepper>div { display: grid; grid-template-columns: 44px minmax(40px,1fr) 44px; gap: 5px; }
.stepper button { min-height: 48px; border: 0; border-radius: 11px; background: var(--soft); color: var(--primary); font-size: 23px; font-weight: 700; }
.stepper input { min-width: 0; text-align: center; font: 750 20px Manrope,sans-serif; }
.optional-fields { margin-top: 16px; color: var(--muted); font-size: 12px; }
.optional-fields summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.optional-grid label,.food-entry-fields label { display: grid; gap: 6px; color: #586964; font-size: 11px; font-weight: 700; }
.log-submit { min-height: 54px; margin-top: 16px; font-size: 15px; }
.log-submit span { opacity: .8; }
.saved-set-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.saved-set-chip { padding: 7px 9px; border-radius: 8px; background: #e8f5ee; color: #24704a; font-size: 11px; font-weight: 700; }
.food-live-totals { margin: 14px 0 0; font-size: 13px; font-weight: 700; line-height: 1.5; color: #31544b; }
.quantity-control { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.quantity-stepper { display: grid; grid-template-columns: 48px minmax(50px,1fr) 48px; gap: 6px; }
.quantity-stepper button { min-height: 50px; border: 0; border-radius: 11px; background: var(--soft); color: var(--primary); font-size: 23px; font-weight: 700; }
.quantity-stepper input { text-align: center; font: 750 18px Manrope,sans-serif; }
.serving-shortcut { min-height: 40px; border: 1px solid #cfe2dc; border-radius: 10px; background: #fff; color: #31544b; font-size: 11px; font-weight: 700; }
.today-log-title { margin-top: 28px; }
.log-record { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.log-record strong { font-size: 13px; }
.log-record span { color: var(--muted); font-size: 11px; text-align: right; }
.log-filters { margin-top: 10px; }
.log-bottom-tabs { display: none; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 15px; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@media(max-width:800px) {
  .page-shell { margin-top: 30px; } .stats-grid { grid-template-columns: repeat(2,1fr); }
  .login-layout { grid-template-columns: 1fr; gap: 25px; max-width: 440px; }
  .login-story { text-align: center; } .login-story>p:not(.eyebrow) { margin-inline: auto; }
  .story-stat { justify-content: center; margin-top: 18px; } .login-card { justify-self: center; }
  .footer { gap: 8px; flex-direction: column; } .two-column { grid-template-columns: 1fr; }
  .selection-panel { align-items: stretch; flex-direction: column; } .select-label { min-width: 100%; }
}
@media(max-width:520px) {
  .topbar { height: auto; min-height: 64px; padding: 8px 12px; flex-wrap: wrap; gap: 4px 12px; }
  .brand { flex: 1 1 100%; min-width: 0; font-size: 15px; } .brand span { overflow-wrap: anywhere; } .brand-mark { width: 32px; height: 32px; }
  .topnav { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 4px 12px; }
  .topnav a { font-size: 12px; } .topnav .button { padding: 8px 10px; white-space: nowrap; }
  .page-shell { width: calc(100% - 28px); margin: 25px auto 44px; }
  .welcome-row { align-items: flex-start; flex-direction: column; } .welcome-row h1 { font-size: 31px; }
  .stats-grid,.compact-stats { gap: 9px; } .stat-card { padding: 15px; } .stat-card strong { font-size: 23px; }
  .panel { padding: 17px; border-radius: 15px; } .gym-banner { padding: 18px; }
  .panel-heading { align-items: flex-start; flex-direction: column; } .panel-heading .button-row { justify-content: flex-start; }
  .form-grid,.inline-form { grid-template-columns: 1fr; } .form-grid .span-2,.inline-form .span-2 { grid-column: auto; }
  .client-actions { align-items: flex-start; flex-direction: column; } .client-actions .button-row { width: 100%; } .client-actions .button { flex: 1; }
  .section-tabs { margin-top: 18px; } .login-layout { margin: 20px auto; }
  .login-story h1 { font-size: 44px; } .login-card { padding: 24px; } .footer { padding: 18px; }
  body:has(.log-shell) { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .log-shell { padding-bottom: 16px; }
  .log-heading { gap: 10px; }
  .log-heading h1 { font-size: 22px; }
  .log-date-label { max-width: 145px; }
  .log-date-label input { padding: 9px 6px; font-size: 12px; }
  .log-total-strip { padding: 13px 11px; }
  .log-total-strip strong { font-size: 15px; }
  .log-bottom-tabs { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(14px); }
  .log-bottom-tabs button { min-height: 52px; display: grid; justify-items: center; gap: 2px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
  .log-bottom-tabs button span { font-size: 19px; line-height: 1; }
  .log-bottom-tabs button.active { color: var(--primary); background: var(--soft); }
  .log-tabs { display: none; }
  .stepper-grid,.food-entry-fields,.optional-grid { grid-template-columns: 1fr; }
  .log-record { align-items: flex-start; flex-direction: column; gap: 5px; }
  .log-record span { text-align: left; }
}
@media(prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
