:root {
    color-scheme: dark;
    --bg: #101010;
    --bg-deep: #090909;
    --panel: #171717;
    --panel-raised: #222222;
    --line: #343434;
    --line-soft: #262626;
    --orange: #ff6a00;
    --orange-strong: #ff7a1a;
    --orange-soft: #3a2418;
    --text: #f5f5f5;
    --muted: #b9b9b9;
    --success: #72c785;
    --error: #ff8a80;
    --sidebar-width: 250px;
    font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--bg-deep); }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.noscript { padding: 16px; background: #7f1d1d; color: white; text-align: center; font-weight: 700; }
.eyebrow { margin: 0; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Sign in */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 1.03fr) minmax(440px, .97fr); }
.auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 5vw, 72px);
    background:
        linear-gradient(150deg, rgba(6, 6, 6, .93) 4%, rgba(12, 12, 12, .78) 55%, rgba(31, 18, 9, .86) 100%),
        url("/brand-header-background.jpg") center / cover no-repeat;
    border-right: 1px solid var(--line-soft);
}
.auth-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -190px;
    top: 19%;
    border-radius: 50%;
    border: 80px solid rgba(255, 106, 0, .045);
    box-shadow: 0 0 100px rgba(255, 106, 0, .09);
}
.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .09;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; width: fit-content; color: white; text-decoration: none; }
.brand img { width: 66px; height: 66px; border-radius: 16px; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { margin-bottom: 4px; color: var(--muted); font-size: 10px; letter-spacing: .28em; }
.brand b { font-size: 20px; letter-spacing: .02em; }
.brand em { color: var(--orange); font-style: normal; }
.dev-badge { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: 34px; padding: 8px 12px; border: 1px solid rgba(255, 106, 0, .38); border-radius: 999px; background: rgba(58, 36, 24, .54); color: #ffd4b5; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dev-badge span, .environment-pill span, .connection-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.13); }
.auth-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0 34px; }
.auth-copy h1 { margin: 16px 0 20px; font-size: clamp(46px, 5.2vw, 78px); line-height: .99; letter-spacing: -.055em; }
.auth-copy h1 span { color: var(--orange); }
.auth-copy > p:last-child { max-width: 570px; margin: 0; color: #cdcdcd; font-size: 17px; line-height: 1.7; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 13px; max-width: 550px; margin: 0 0 28px; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: #dedede; font-size: 14px; }
.auth-points li > span { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: rgba(114, 199, 133, .13); color: var(--success); font-size: 9px; font-weight: 800; }
.auth-points svg { width: 14px; height: 14px; stroke-width: 2.4; }
.auth-points .muted-check { border: 1px solid #555; background: #222; color: var(--muted); }
.auth-visual-foot { position: relative; z-index: 1; margin: auto 0 0; color: #777; font-size: 9px; font-weight: 800; letter-spacing: .25em; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; overflow-y: auto; padding: 48px clamp(28px, 6vw, 88px); background: radial-gradient(circle at 80% 12%, rgba(255,106,0,.08), transparent 27%), var(--bg); }
.auth-panel-inner { width: min(100%, 470px); }
.auth-top-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: clamp(48px, 8vh, 92px); }
.back-link { display: inline-flex; gap: 8px; color: #969696; font-size: 13px; text-decoration: none; transition: color .2s; }
.back-link:hover { color: var(--orange); }
.language-switcher { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 4px; border: 1px solid #343434; border-radius: 10px; background: rgba(19,19,19,.92); }
.language-switch-button { width: 31px; height: 27px; display: inline-grid; place-items: center; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; opacity: .58; transition: opacity .18s, border-color .18s, background .18s, transform .18s; }
.language-switch-button:hover, .language-switch-button:focus-visible { opacity: 1; border-color: #555; transform: translateY(-1px); }
.language-switch-button.active, .language-switch-button[aria-pressed="true"] { opacity: 1; border-color: rgba(255,106,0,.82); background: rgba(255,106,0,.14); box-shadow: 0 0 0 1px rgba(255,106,0,.1) inset; }
.language-switch-button svg { display: block; width: 23px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.language-switcher-header { border-radius: 9px; }
.mobile-brand { display: none; }
.auth-heading h2 { margin: 10px 0 9px; font-size: clamp(34px, 4vw, 45px); line-height: 1.05; letter-spacing: -.04em; }
.auth-heading > p:last-child { margin: 0 0 34px; color: var(--muted); line-height: 1.6; }
.login-form { display: grid; }
.auth-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid #303030; border-radius: 10px; background: #131313; }
.auth-mode-tabs button { min-height: 42px; border: 0; border-radius: 7px; background: transparent; color: #8f8f8f; cursor: pointer; font-size: 13px; font-weight: 800; transition: background .2s, color .2s, box-shadow .2s; }
.auth-mode-tabs button:hover:not(:disabled) { color: #fff; }
.auth-mode-tabs button.active { background: var(--orange); color: #090909; box-shadow: 0 5px 16px rgba(255,106,0,.18); }
.auth-mode-tabs button:disabled { cursor: wait; opacity: .65; }
.form-field { display: grid; gap: 8px; margin-top: 20px; }
.form-field > label { color: #ddd; font-size: 13px; font-weight: 700; }
.input-wrap { display: flex; align-items: center; min-height: 56px; border: 1px solid #414141; border-radius: 9px; background: #151515; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.input-wrap > span, .input-wrap > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 16px; color: #888; text-align: center; }
.input-wrap > span { line-height: 20px; font-weight: 700; }
.input-wrap input { min-width: 0; flex: 1; height: 54px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: white; }
.input-wrap input::placeholder { color: #666; }
.input-wrap input:disabled { opacity: .6; }
.password-toggle { align-self: stretch; border: 0; padding: 0 15px; background: transparent; color: var(--orange); cursor: pointer; font-size: 12px; font-weight: 700; }
.primary-button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; border: 0; border-radius: 9px; background: var(--orange); color: #090909; cursor: pointer; font-weight: 900; transition: transform .2s, background .2s, opacity .2s; }
.primary-button:hover:not(:disabled) { background: var(--orange-strong); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .7; }
.primary-button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.primary-button.loading svg { animation: nudge 1s infinite alternate; }
@keyframes nudge { to { transform: translateX(4px); } }
.signup-note { margin: 15px 2px -7px; color: #9a9a9a; font-size: 11px; line-height: 1.55; }
.auth-status { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; padding: 10px 12px; border: 1px solid #303030; border-radius: 8px; background: #131313; color: #929292; font-size: 12px; text-align: center; }
.auth-status .status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--orange); }
.auth-status.error { border-color: rgba(255,138,128,.35); color: var(--error); background: rgba(127,29,29,.12); }
.auth-status.error .status-dot { background: var(--error); }
.auth-status.success { border-color: rgba(114,199,133,.35); color: var(--success); }
.auth-status.success .status-dot { background: var(--success); }
.privacy-note { margin: 18px 0 0; color: #777; font-size: 11px; line-height: 1.65; text-align: center; }
.privacy-note a { color: #aaa; }
.alert { margin-bottom: 20px; padding: 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.alert-error { border: 1px solid rgba(255,138,128,.35); background: rgba(127,29,29,.16); color: var(--error); }

/* Signed-in shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); background: #111; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px 18px; border-right: 1px solid var(--line-soft); background: #0b0b0b; z-index: 10; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; }
.sidebar-brand img { width: 45px; height: 45px; border-radius: 11px; object-fit: cover; }
.sidebar-brand > span { display: flex; flex-direction: column; line-height: 1; }
.sidebar-brand small { margin-bottom: 4px; color: #777; font-size: 7px; letter-spacing: .26em; }
.sidebar-brand strong { font-size: 14px; letter-spacing: .02em; }
.sidebar-brand em { color: var(--orange); font-style: normal; }
.environment-pill { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 24px 7px 20px; padding: 7px 10px; border: 1px solid rgba(255,106,0,.32); border-radius: 999px; background: rgba(58,36,24,.45); color: #f4b98f; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.environment-pill span { width: 6px; height: 6px; box-shadow: none; }
.main-nav { display: grid; gap: 5px; overflow-y: auto; padding: 2px 0; }
.nav-item { position: relative; min-height: 48px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 0 12px; background: transparent; color: #a9a9a9; cursor: pointer; text-align: left; transition: background .18s, color .18s; }
.nav-item:hover { background: #171717; color: white; }
.nav-item.active { background: var(--orange-soft); color: var(--orange); }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: var(--orange); }
.nav-item svg { width: 21px; height: 21px; }
.nav-item span { font-size: 13px; font-weight: 700; }
.nav-item small { color: #636363; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-item.active small { color: #b96b33; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 16px 6px 0; border-top: 1px solid var(--line-soft); }
.mini-user { min-width: 0; display: flex; align-items: center; gap: 9px; flex: 1; }
.mini-user > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255,106,0,.5); border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 13px; font-weight: 900; }
.mini-user div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-user strong, .mini-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-user strong { font-size: 11px; }
.mini-user small { color: #777; font-size: 8px; }
.logout-button { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #333; border-radius: 7px; background: #151515; color: #929292; cursor: pointer; }
.logout-button:hover { border-color: var(--orange); color: var(--orange); }
.logout-button svg { width: 17px; height: 17px; }
.app-workspace { min-width: 0; height: 100vh; overflow-y: auto; background: radial-gradient(circle at 80% 0, rgba(255,106,0,.065), transparent 28%), #111; }
.app-header { position: sticky; top: 0; z-index: 8; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line-soft); background: rgba(17,17,17,.9); backdrop-filter: blur(14px); }
.app-kicker { margin: 0 0 3px; color: #656565; font-size: 8px; font-weight: 800; letter-spacing: .22em; }
.app-header h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.website-home-link { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid #393939; border-radius: 9px; background: rgba(30,30,30,.88); color: #eee; text-decoration: none; transition: border-color .18s, color .18s, background .18s; }
.website-home-link:hover, .website-home-link:focus-visible { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.website-home-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.connection-status { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 12px; border: 1px solid #333; border-radius: 999px; background: #171717; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.connection-status i { width: 6px; height: 6px; background: var(--success); box-shadow: 0 0 0 4px rgba(114,199,133,.1); }
.header-logout { display: flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid rgba(255,106,0,.45); border-radius: 8px; padding: 0 12px; background: rgba(255,106,0,.08); color: var(--orange); cursor: pointer; font-size: 11px; font-weight: 800; transition: border-color .2s, background .2s, color .2s, opacity .2s; }
.header-logout:hover:not(:disabled) { border-color: var(--orange); background: rgba(255,106,0,.16); color: #fff; }
.header-logout:disabled { cursor: wait; opacity: .6; }
.header-logout svg { width: 16px; height: 16px; }
.route-content { width: min(1320px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 54px); }
.route-page { display: none; animation: page-in .24s ease-out; }
.route-page.active { display: block; }
.route-page.meals-screen { display: none; }
.route-page.active.meals-screen { display: grid; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.welcome-card { min-height: 210px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; padding: clamp(28px, 4vw, 48px); border: 1px solid #373737; border-radius: 16px; background: linear-gradient(115deg, rgba(10,10,10,.96), rgba(30,19,12,.92)), url("/brand-header-background.jpg") right center / 500px auto no-repeat; box-shadow: 0 28px 70px rgba(0,0,0,.2); }
.welcome-card h2 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; }
.welcome-card h2 span { color: var(--orange); }
.welcome-card > div:first-child > p:last-child { max-width: 690px; margin: 0; color: var(--muted); line-height: 1.65; }
.phase-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #aaa; font-size: 11px; }
.phase-chip span { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.status-card { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: rgba(25,25,25,.88); }
.status-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 8px; background: #272727; color: #8b8b8b; }
.status-icon svg { width: 18px; height: 18px; }
.status-card.ready .status-icon { background: rgba(114,199,133,.12); color: var(--success); }
.status-card.error .status-icon { background: rgba(255,96,73,.12); color: #ff7664; }
.status-card p { margin: 0 0 4px; color: #777; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-card h3 { margin: 0 0 8px; font-size: 19px; }
.status-card small { color: var(--muted); line-height: 1.5; }
.module-overview { margin-top: 42px; }
.dashboard-overview { margin-top: 42px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.dashboard-card { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, #1b1b1b, #171717); }
.dashboard-card.featured { border-color: rgba(255,106,0,.45); background: linear-gradient(145deg, #24170f, #181818); }
.dashboard-card > p, .weight-progress-card p, .macro-grid p { margin: 0; color: #858585; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-card h3 { margin: 9px 0 10px; font-size: clamp(27px, 3vw, 38px); line-height: 1; }
.dashboard-card h3 small { color: #aaa; font-size: 13px; font-weight: 700; }
.dashboard-card > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.dashboard-card > span b { color: #eee; }
.progress-track { width: 100%; height: 6px; overflow: hidden; margin: 2px 0 10px; border-radius: 99px; background: #313131; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .45s ease; }
.macro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.macro-grid article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #191919; }
.macro-grid article > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.macro-grid strong { font-size: 13px; }
.macro-grid .progress-track { margin: 0; }
.progress-track.protein i { background: #2c91ff; }
.progress-track.fat i { background: #ffb329; }
.progress-track.carbs i { background: #52bc6d; }
.weight-progress-card { display: grid; grid-template-columns: minmax(180px, .7fr) 1.4fr minmax(170px, .8fr); align-items: center; gap: 24px; margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #191919; }
.weight-progress-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weight-progress-card > div:first-child strong { color: var(--orange); }
.weight-progress-card .progress-track { margin: 0; }
.weight-progress-card > span { color: var(--muted); font-size: 11px; text-align: right; }
.home-health-section, .home-safety-section { margin-top: 42px; }
.home-tool-grid, .safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-tool-card, .safety-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #191919; }
.home-tool-card[open], .safety-card[open] { border-color: rgba(255,106,0,.42); }
.home-tool-card summary, .safety-card summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; cursor: pointer; list-style: none; background: linear-gradient(135deg, #1a1a1a, #1e1814); }
.home-tool-card summary::-webkit-details-marker, .safety-card summary::-webkit-details-marker { display: none; }
.home-tool-card summary span, .safety-card summary span { display: flex; flex-direction: column; gap: 4px; }
.home-tool-card summary b, .safety-card summary b { font-size: 15px; }
.home-tool-card summary small, .safety-card summary small { color: #858585; font-size: 10px; }
.home-tool-card summary > i, .safety-card summary > i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #3b3b3b; border-radius: 50%; color: var(--orange); font-size: 18px; font-style: normal; transition: transform .2s; }
.home-tool-card[open] summary > i, .safety-card[open] summary > i { transform: rotate(45deg); }

/* Home — układ zgodny z aplikacją Android */
.route-page[data-page="home"] { width: min(100%, 820px); margin: 0 auto; }
.app-shell.home-route-active .app-workspace { background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.78)), url("/brand-header-background.jpg") center top / cover fixed no-repeat; }
.app-shell.meals-route-active .app-workspace { background: linear-gradient(rgba(0,0,0,.84), rgba(0,0,0,.91)), url("/tlo-hero-keto.jpg") center top / cover fixed no-repeat; }
.home-brand-header { min-height: 92px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 10px 4px 14px; }
.home-brand-lockup { min-width: 0; }
.home-brand-lockup img { display: block; width: min(300px, 58vw); height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: left top; }
.home-brand-meta { flex: 0 0 auto; display: grid; justify-items: end; gap: 7px; color: rgba(255,255,255,.68); text-align: right; }
.home-language-switcher { display: none !important; }
.home-brand-meta > span { font-size: 10px; font-style: italic; line-height: 1.25; }
.home-brand-meta > div { display: flex; align-items: center; gap: 5px; }
.home-brand-meta time { color: rgba(255,255,255,.86); font-size: 11px; font-weight: 700; }
.home-brand-meta .website-home-link { width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--orange); }
.home-brand-meta .website-home-link:hover, .home-brand-meta .website-home-link:focus-visible { background: rgba(255,106,0,.12); }
.home-brand-meta button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: var(--orange); cursor: pointer; }
.home-brand-meta button:disabled { cursor: wait; opacity: .5; }
.home-brand-meta svg { width: 22px; height: 22px; stroke-width: 2.3; }
.home-runtime-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dashboard-overview { margin-top: 0; }
.home-today-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 2px 0 9px; }
.home-today-heading h2 { width: 100%; margin: 0; color: white; font-size: 29px; letter-spacing: -.035em; }
.home-today-heading > i { width: 28px; height: 3px; border-radius: 2px; background: var(--orange); }
.home-today-heading > p { flex: 1; margin: 0; color: #8f8f8f; font-size: 9px; text-align: right; }
.today-summary-card { padding: 10px; border: 1px solid rgba(255,106,0,.5); border-radius: 9px; background: rgba(29,29,29,.95); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.today-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today-summary-top > div { display: flex; align-items: center; gap: 7px; }
.today-summary-top svg { width: 19px; height: 19px; color: var(--orange); }
.today-summary-top strong { font-size: 14px; }
.today-summary-top > span { display: grid; justify-items: end; gap: 2px; padding: 5px 8px; border: 1px solid #484848; border-radius: 7px; background: rgba(16,16,16,.72); color: #aaa; font-size: 8px; }
.today-summary-top > span b { color: #fff; font-size: 10px; }
.today-summary-top > span i, .calorie-scale i, .home-inline-metrics i { font-style: normal; }
.today-calories { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin: 7px 0 6px; }
.today-calories strong { color: var(--orange); font-size: clamp(34px, 6vw, 48px); line-height: 1; }
.today-calories span { color: #fff; font-size: 19px; font-weight: 850; }
.progress-track.calorie-progress { height: 4px; margin: 0 0 4px; }
.calorie-scale { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: #979797; font-size: 9px; }
.calorie-scale b { color: var(--orange); }
.calorie-scale span:last-child { text-align: right; }
.home-macro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.home-macro-grid article { min-width: 0; padding: 7px; border: 1px solid #484848; border-radius: 8px; background: rgba(20,20,20,.78); }
.home-macro-grid article > div:first-child, .home-macro-grid article > div:nth-child(2) { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.home-macro-grid article > div:first-child { justify-content: flex-start; }
.home-macro-grid p { overflow: hidden; margin: 0; color: #b9b9b9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-macro-grid strong { overflow: hidden; margin-top: 5px; color: white; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-macro-grid small { margin-top: 5px; color: #979797; font-size: 8px; }
.home-macro-grid .progress-track { height: 3px; margin: 5px 0 0; }
.home-macro-grid .protein .progress-track i { background: #2f8dff; }
.home-macro-grid .fat .progress-track i { background: #ffc247; }
.home-macro-grid .carbs .progress-track i { background: #72c785; }
.macro-dot { width: 12px; height: 12px; border-radius: 50%; background: #2f8dff; }
.macro-drop { color: #ffc247; font-size: 13px; }
.macro-leaf { color: #72c785; font-size: 11px; }
.home-inline-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.home-inline-metrics button { min-width: 0; min-height: 46px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; border: 1px solid #484848; border-radius: 8px; padding: 6px 9px; background: rgba(20,20,20,.78); color: white; cursor: pointer; text-align: left; }
.home-inline-metrics button:hover { border-color: var(--orange); }
.home-inline-metrics svg { width: 19px; height: 19px; color: var(--orange); }
.home-inline-metrics button:first-child svg { color: #20b8d4; }
.home-inline-metrics span { min-width: 0; display: grid; gap: 2px; }
.home-inline-metrics small { color: #aaa; font-size: 9px; }
.home-inline-metrics strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-inline-metrics button > b { color: #ddd; font-size: 19px; font-weight: 400; }
.home-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.home-quick-actions button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--orange); border-radius: 8px; background: rgba(16,16,16,.88); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.home-quick-actions button.primary { background: var(--orange); color: #111; }
.home-quick-actions button:hover { background: var(--orange-soft); }
.home-quick-actions button.primary:hover { background: var(--orange-strong); }
.home-quick-actions svg { width: 18px; height: 18px; color: var(--orange); }
.home-quick-actions button.primary svg { color: #111; }
.home-weight-card { margin-top: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(24,24,24,.96); }
.home-weight-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-weight-heading > div { display: flex; align-items: center; gap: 7px; }
.home-weight-heading svg { width: 18px; height: 18px; color: var(--orange); }
.home-weight-heading strong { font-size: 14px; }
.home-weight-heading button { border: 0; padding: 5px 0; background: transparent; color: rgba(255,255,255,.78); cursor: pointer; font-size: 9px; }
.home-weight-heading button span { font-size: 16px; vertical-align: -1px; }
.home-weight-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.home-weight-main > div:first-child { display: grid; gap: 3px; }
.home-weight-main > div:first-child > strong { font-size: 26px; }
.home-weight-main small { color: #aaa; font-size: 8px; }
.home-weight-main small b { color: #ddd; }
.home-weight-main > div:last-child { display: flex; align-items: center; gap: 6px; text-align: right; }
.home-weight-main > div:last-child svg { width: 20px; height: 20px; color: var(--orange); }
.home-weight-main > div:last-child span { display: grid; color: white; font-size: 10px; }
.home-weight-main > div:last-child span > strong { color: var(--orange); font-size: 10px; }
.home-weight-card > .progress-track { height: 3px; margin: 7px 0; }
.home-weight-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-weight-metrics > div { display: grid; gap: 2px; padding: 1px 8px; text-align: center; }
.home-weight-metrics > div + div { border-left: 1px solid #3a3a3a; }
.home-weight-metrics span { color: #aaa; font-size: 8px; }
.home-weight-metrics strong { color: white; font-size: 11px; }
.home-weight-metrics > div:last-child strong { color: var(--orange); }
.home-weight-card > p { height: 0; overflow: hidden; margin: 0; opacity: 0; }
.home-health-section, .home-safety-section { margin-top: 14px; }
.home-health-section > h2 { margin: 0 0 8px; font-size: 18px; }
.home-wellness-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.home-wellness-tabs button { min-width: 0; min-height: 58px; display: grid; place-items: center; align-content: center; gap: 4px; border: 1px solid #6a6a6a; border-radius: 8px; background: rgba(30,30,30,.95); color: #eee; cursor: pointer; }
.home-wellness-tabs button[aria-selected="true"] { border: 2px solid var(--orange); background: #3d281b; color: var(--orange); }
.home-wellness-tabs svg { width: 19px; height: 19px; }
.home-wellness-tabs span { color: white; font-size: 9px; }
.home-tool-panels { margin-top: 8px; }
.home-tool-panels.is-disabled { opacity: .62; }
.home-tool-panel { overflow: hidden; border: 1px solid rgba(255,106,0,.4); border-radius: 9px; background: rgba(24,24,24,.98); }
.home-tool-panel > header { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(135deg, #1a1a1a, #211812); }
.home-tool-panel > header > svg { width: 24px; height: 24px; color: var(--orange); }
.home-tool-panel > header > span { display: grid; gap: 3px; }
.home-tool-panel > header b { font-size: 14px; }
.home-tool-panel > header small { color: #8b8b8b; font-size: 9px; }
.home-tool-panel .tool-form { border-top: 0; }
.home-safety-card { overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(24,24,24,.97); }
.home-safety-card > header { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.home-safety-card > header > svg { width: 20px; height: 20px; color: var(--orange); }
.home-safety-card > header > span { min-width: 0; }
.home-safety-card > header h2 { margin: 0; font-size: 15px; }
.home-safety-card > header p { margin: 3px 0 0; color: #aaa; font-size: 10px; }
.home-safety-card .safety-grid { display: block; border-top: 1px solid #3a3a3a; }
.home-safety-card .safety-card { border: 0; border-radius: 0; background: transparent; }
.home-safety-card .safety-card + .safety-card { border-top: 1px solid #3a3a3a; }
.home-safety-card .safety-card[open] { border-color: transparent; }
.home-safety-card .safety-card summary { min-height: 58px; display: grid; grid-template-columns: 22px 1fr 22px; gap: 9px; padding: 9px 12px; background: transparent; }
.home-safety-card .safety-card summary > svg { width: 19px; height: 19px; color: var(--orange); }
.home-safety-card .safety-card summary > span { gap: 3px; }
.home-safety-card .safety-card summary b { font-size: 13px; }
.home-safety-card .safety-card summary small { color: var(--error); font-size: 9px; }
.home-safety-card .safety-card summary small.complete { color: var(--success); }
.home-safety-card .safety-card summary small.state-error { color: #ffb06f; }
.home-safety-card .safety-card summary > i { width: 22px; height: 22px; border: 0; color: #aaa; }
.home-safety-card .safety-card summary > i svg { width: 18px; height: 18px; }
.home-safety-card .safety-card[open] summary > i { transform: rotate(90deg); }
.weight-entry-dialog { width: min(100%, 430px); text-align: left; }
.weight-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }
.weight-dialog-icon svg { width: 25px; height: 25px; }
.weight-entry-form { display: grid; gap: 10px; margin-top: 22px; }
.weight-entry-form > label { color: #aaa; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.weight-entry-form > div:first-of-type { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.weight-entry-form input { width: 100%; min-height: 54px; border: 1px solid #444; border-radius: 9px; padding: 0 14px; background: #101010; color: white; font-size: 20px; font-weight: 800; outline: none; }
.weight-entry-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.weight-entry-form > div:first-of-type span { color: #aaa; font-weight: 800; }
.tool-form { display: grid; gap: 12px; padding: 20px; border-top: 1px solid var(--line-soft); }
.tool-form > label, .tool-form fieldset > legend { color: #9a9a9a; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tool-form input[type="number"], .tool-form input[type="text"], .tool-form input[type="date"], .tool-form select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #3c3c3c; border-radius: 8px; padding: 0 12px; background: #111; color: #f2f2f2; outline: none; color-scheme: dark; }
.tool-form input:focus, .tool-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.1); }
.tool-form fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.tool-form fieldset > legend { margin-bottom: 10px; padding: 0; }
.tool-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.quick-values { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-values button { min-height: 34px; border: 1px solid #3b3b3b; border-radius: 999px; padding: 0 12px; background: #121212; color: #aaa; cursor: pointer; font-size: 10px; font-weight: 800; }
.quick-values button:hover { border-color: var(--orange); color: var(--orange); }
.tool-primary-button, .tool-secondary-button { min-height: 44px; border-radius: 8px; padding: 0 16px; cursor: pointer; font-weight: 900; }
.tool-primary-button { border: 0; background: var(--orange); color: #111; }
.tool-primary-button:hover:not(:disabled) { background: var(--orange-strong); }
.tool-primary-button.wide { width: 100%; }
.tool-secondary-button { border: 1px solid #454545; background: #202020; color: #ddd; }
.tool-primary-button:disabled, .tool-secondary-button:disabled, .quick-values button:disabled { cursor: wait; opacity: .48; }
.tool-help { margin: -3px 0 0; color: #747474; font-size: 9px; line-height: 1.55; }
.tool-status { min-height: 16px; margin: 0; color: #8d8d8d; font-size: 10px; line-height: 1.5; }
.tool-status.success { color: var(--success); }
.tool-status.error { color: var(--error); }
.measurement-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.measurement-fields label { display: grid; gap: 6px; color: #8b8b8b; font-size: 10px; font-weight: 800; }
.measurement-fields label span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; color: #6f6f6f; font-weight: 700; }
.event-actions { display: flex; gap: 8px; }
.event-actions > * { flex: 1; }
.event-weight-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.event-weight-fields label { display: grid; gap: 6px; color: #8b8b8b; font-size: 10px; font-weight: 800; }
.event-weight-fields label span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; color: #6f6f6f; }
.event-projection { display: grid; gap: 12px; border: 1px solid rgba(255,106,0,.38); border-radius: 10px; padding: 16px; background: linear-gradient(145deg, rgba(255,106,0,.1), #151515); text-align: center; }
.event-projection > div:first-child { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.event-projection > div:first-child strong { color: var(--orange); font-size: 38px; line-height: 1; }
.event-projection > div:first-child span { color: #8c8c8c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.event-projection > p { margin: 0; color: #aaa; font-size: 12px; }
.event-projection > p b { color: #f2f2f2; }
.event-projection dl { display: grid; gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--line-soft); text-align: left; }
.event-projection dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; background: #171717; }
.event-projection dt { color: #7f7f7f; font-size: 9px; }
.event-projection dd { margin: 0; color: #e6e6e6; font-size: 10px; font-weight: 850; text-align: right; }
.event-projection > small { color: #747474; font-size: 9px; line-height: 1.55; }
.event-projection .event-pace-warning { color: #ffb06f; font-size: 10px; line-height: 1.5; }
.health-consent-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 14px; padding: 22px; border: 1px solid rgba(255,106,0,.5); border-radius: 13px; background: linear-gradient(135deg, #24170f, #191919); }
.health-consent-panel > div { max-width: 850px; }
.health-consent-panel h3 { margin: 7px 0 8px; font-size: 22px; }
.health-consent-panel > div > p:not(.eyebrow):not(.tool-status) { margin: 0; color: #aaa; font-size: 12px; line-height: 1.6; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; color: #ddd; font-size: 11px; line-height: 1.5; }
.consent-check input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--orange); }
.consent-check a { color: var(--orange); }
.home-tool-grid.is-disabled, .safety-grid.is-disabled { opacity: .62; }
.safety-form label { display: grid; gap: 7px; color: #aaa; font-size: 11px; font-weight: 700; line-height: 1.45; }
.safety-warning { margin: 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: rgba(255,106,0,.06); color: #a8a8a8; font-size: 10px; line-height: 1.6; }
.allergen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.allergen-grid label { display: flex; align-items: center; gap: 8px; min-height: 38px; border: 1px solid #343434; border-radius: 8px; padding: 8px 10px; background: #141414; color: #aaa; font-size: 10px; }
.allergen-grid input { width: 15px; height: 15px; accent-color: var(--orange); }
.preference-food-list { max-height: 360px; overflow-y: auto; display: grid; gap: 1px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--line-soft); }
.preference-food-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(3, auto); align-items: center; gap: 8px; padding: 9px 11px; background: #141414; }
.preference-food-row > strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.preference-food-row label { position: relative; min-height: 30px; display: grid; place-items: center; border: 1px solid #363636; border-radius: 7px; padding: 0 9px; color: #858585; cursor: pointer; font-size: 9px; }
.preference-food-row label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.preference-food-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-data-panel { margin-top: 24px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: #191919; }
.profile-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 22px 0 0; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--line-soft); }
.profile-data-grid > div { min-height: 84px; padding: 18px; background: #171717; }
.profile-data-grid dt { margin-bottom: 8px; color: #7f7f7f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-data-grid dd { margin: 0; color: #f1f1f1; font-size: 15px; font-weight: 750; }
.progress-hero { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(125deg, #181818, #24170f); }
.progress-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.progress-title-icon, .profile-access-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,106,0,.48); border-radius: 8px; background: var(--orange-soft); color: var(--orange); }
.progress-title-icon svg, .profile-access-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress-title h2 { margin: 2px 0 3px; font-size: 23px; letter-spacing: -.04em; }
.progress-title p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.progress-checkin-button { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,106,0,.52); border-radius: 8px; padding: 0 12px; background: #21160f; color: var(--orange); cursor: pointer; font-size: 11px; font-weight: 850; }
.progress-checkin-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress-action-notice { margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(255,106,0,.36); border-radius: 9px; background: #20160f; color: #d4c1b1; font-size: 11px; line-height: 1.5; }
.progress-action-notice[hidden] { display: none; }
.progress-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.progress-hub-tile { min-width: 0; min-height: 94px; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(25,25,25,.96); color: #f5f5f5; text-align: left; cursor: pointer; }
.progress-hub-tile:hover { border-color: rgba(255,106,0,.6); background: #20170f; }
.progress-hub-tile > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 4px; }
.progress-hub-tile b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.progress-hub-tile small { overflow: hidden; color: #a6a6a6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.progress-hub-tile > i { color: #777; font-size: 22px; font-style: normal; }
.progress-hub-tile[hidden] { display: none; }
.progress-hub-icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.07); }
.progress-hub-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress-hub-icon.orange { color: var(--orange); background: rgba(255,106,0,.13); }
.progress-hub-icon.blue { color: #35b6e5; background: rgba(53,182,229,.12); }
.progress-hub-icon.green { color: #59bf70; background: rgba(89,191,112,.12); }
.progress-hub-icon.amber { color: #d89134; background: rgba(216,145,52,.12); }
.progress-detail-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #191919; }
.progress-report-message { margin: 0; padding: 12px 20px 0; color: #858585; font-size: 10px; line-height: 1.5; }
.progress-share-button { min-height: 32px; border: 1px solid #444; border-radius: 7px; padding: 0 10px; background: #202020; color: var(--orange); cursor: pointer; font-size: 10px; font-weight: 850; }
.progress-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.progress-detail-panel .progress-summary-grid { margin: 0; padding: 14px; }
.progress-summary-grid article { min-height: 130px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #191919; }
.progress-detail-panel .progress-summary-grid article { min-height: 98px; padding: 13px; }
.progress-summary-grid p { margin: 0; color: #7d7d7d; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.progress-summary-grid h3 { margin: 12px 0 7px; color: #f7f7f7; font-size: 28px; }
.progress-detail-panel .progress-summary-grid h3 { margin: 8px 0 4px; font-size: 21px; }
.progress-summary-grid span { color: var(--muted); font-size: 11px; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.history-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #191919; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line-soft); }
.history-heading h3 { margin: 5px 0 0; font-size: 18px; }
.history-heading > span { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); font-size: 11px; font-weight: 900; }
.history-list { display: grid; }
.history-row { min-height: 62px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.history-row:last-child { border-bottom: 0; }
.history-row div { display: flex; flex-direction: column; gap: 4px; }
.history-row strong { font-size: 13px; }
.history-row small { color: #777; font-size: 10px; }
.history-row > span { color: var(--orange); font-size: 14px; font-weight: 850; }
.progress-macros-panel { margin-bottom: 14px; }
.progress-macro-rows { display: grid; }
.progress-macro-rows > div { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line-soft); }
.progress-macro-rows span { color: #aaa; font-size: 11px; }
.progress-macro-rows b { color: #f0f0f0; font-size: 12px; }
.progress-report-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 14px 14px; }
.progress-report-detail-grid article { min-width: 0; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #151515; }
.progress-report-detail-grid small { color: #858585; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.progress-report-detail-grid b { font-size: 13px; line-height: 1.45; }
.progress-report-detail-grid span { color: #999; font-size: 9px; line-height: 1.45; }
.progress-adherence-list { margin: 0 14px 14px; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; background: #151515; }
.progress-adherence-list > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line-soft); }
.progress-adherence-list > div:first-child { border-top: 0; }
.progress-adherence-list b { font-size: 10px; }
.progress-adherence-list span { max-width: 68%; color: #aaa; font-size: 9px; overflow-wrap: anywhere; text-align: right; }
.progress-adherence-list .progress-adherence-heading { align-items: flex-start; flex-direction: column; background: #1d1d1d; }
.progress-adherence-list .progress-adherence-heading b { color: #eee; }
.measurement-history-date { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.measurement-history-entry { display: grid; gap: 5px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.measurement-history-entry:last-child { border-bottom: 0; }
.measurement-history-entry strong { font-size: 10px; }
.measurement-history-entry small { color: #888; font-size: 9px; line-height: 1.5; }
.empty-history { margin: 0; padding: 28px 20px; color: #777; font-size: 12px; }
.feature-note { margin: 14px 0 0; padding: 14px 17px; border-left: 3px solid var(--orange); background: rgba(255,106,0,.055); color: #929292; font-size: 11px; line-height: 1.6; }
.route-page[data-page="meals"] { width: min(100%, 760px); margin: 0 auto; }
.meals-screen { display: grid; gap: 10px; }
.meals-view-panel[hidden] { display: none; }
.meals-view-selector { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #565656; border-radius: 22px; background: rgba(18,18,18,.95); }
.meals-view-selector button { min-height: 42px; border: 0; border-right: 1px solid #565656; background: transparent; color: #eee; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; }
.meals-view-selector button:last-child { border-right: 0; }
.meals-view-selector button.active { background: rgba(255,106,0,.17); color: #fff; box-shadow: inset 0 0 0 1px var(--orange); font-weight: 850; }
.meals-view-selector button span { margin-right: 4px; color: var(--orange); }
.meals-daily-nutrition { border: 1px solid rgba(255,106,0,.2); border-radius: 10px; padding: 14px 12px 13px; background: rgba(14,14,14,.94); }
.meals-daily-nutrition h3 { margin: 0 0 5px; font-size: 20px; }
.meals-daily-calories { display: flex; align-items: baseline; gap: 5px; margin-bottom: 7px; }
.meals-daily-calories strong { color: var(--orange); font-size: 29px; line-height: 1; }
.meals-daily-calories span { color: #f3f3f3; font-size: 18px; font-weight: 800; }
.meals-daily-calories b { font: inherit; }
.meals-daily-calorie-track { height: 5px; overflow: hidden; border-radius: 999px; background: #313131; }
.meals-daily-calorie-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .25s ease; }
.meals-daily-macros { display: grid; gap: 8px; margin-top: 12px; }
.meals-daily-macros > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; }
.meals-daily-macros span { color: #efefef; font-size: 12px; font-weight: 750; }
.meals-daily-macros b { justify-self: end; color: #bcbcbc; font-size: 11px; }
.meals-daily-macros div div { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: #313131; }
.meals-daily-macros div div i { display: block; width: 0; height: 100%; border-radius: inherit; background: #2e9cff; transition: width .25s ease; }
.meals-daily-macros > div:nth-child(2) div i { background: #ffc247; }
.meals-daily-macros > div:nth-child(3) div i { background: #53c665; }
.meals-view-panel { display: grid; gap: 10px; }
.meal-plan-panel, .meals-quick-entry, .meals-diary-heading, .meals-add-section, .meals-saved-today { overflow: hidden; border: 1px solid #353535; border-radius: 10px; background: rgba(18,18,18,.96); }
.meal-list, .food-results, .meal-plan-list { display: grid; }
.meal-log-card { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
.meal-log-card:last-child { border-bottom: 0; }
.meal-log-top { display: flex; justify-content: space-between; gap: 18px; }
.meal-log-top div { min-width: 0; }
.meal-log-top h4 { margin: 0 0 5px; font-size: 15px; }
.meal-log-top p { overflow: hidden; margin: 0; color: #7f7f7f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.meal-log-top > strong { flex: 0 0 auto; color: var(--orange); font-size: 14px; }
.meal-macros { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; color: #919191; font-size: 10px; }
.food-search-form { padding: 0; }
.food-search-form label { display: block; margin-bottom: 8px; color: #858585; font-size: 10px; font-weight: 800; }
.food-search-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.food-search-form input { min-width: 0; height: 44px; border: 1px solid #383838; border-radius: 8px; padding: 0 13px; background: #121212; color: white; outline: 0; }
.food-search-form input:focus { border-color: var(--orange); }
.food-search-form button { min-width: 82px; border: 0; border-radius: 8px; padding: 0 15px; background: var(--orange); color: #0d0d0d; font-weight: 900; cursor: pointer; }
.food-search-form button:disabled { cursor: wait; opacity: .6; }
.food-search-status { margin: 0; padding: 7px 0 2px; color: #777; font-size: 10px; }
.food-result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line-soft); }
.food-result-row div { min-width: 0; }
.food-result-row strong, .food-result-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.food-result-row strong { font-size: 12px; }
.food-result-row small { margin-top: 4px; color: #777; font-size: 9px; }
.food-result-row > span { color: var(--orange); font-size: 12px; font-weight: 850; }
.food-result-actions { display: grid; justify-items: end; gap: 5px; }
.food-result-actions > span { color: var(--orange); font-size: 11px; font-weight: 850; }
.food-result-actions button { min-height: 30px; border: 1px solid var(--orange); border-radius: 7px; padding: 0 10px; background: transparent; color: var(--orange); cursor: pointer; font-size: 9px; font-weight: 850; }
.food-result-actions button:disabled { border-color: #444; color: #777; cursor: default; }
.meal-plan-panel { padding: 14px 12px; }
.meal-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.meal-plan-heading h3 { margin: 0; font-size: 20px; }
.meal-plan-message { margin: 4px 0 10px; color: #858585; font-size: 10px; line-height: 1.5; }
.plan-pro-badge { display: inline-flex; border: 1px solid var(--orange); border-radius: 7px; padding: 4px 10px; color: var(--orange); font-size: 11px; font-weight: 850; letter-spacing: .05em; }
.meal-plan-access { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px; background: #151515; }
.meal-plan-access > div { display: grid; gap: 4px; }
.meal-plan-access strong { font-size: 12px; }
.meal-plan-access div span { color: #7c7c7c; font-size: 9px; line-height: 1.5; }
.meal-plan-access > span { flex: 0 0 auto; border: 1px solid rgba(255,106,0,.45); border-radius: 999px; padding: 6px 10px; color: var(--orange); font-size: 9px; font-weight: 850; }
.meal-plan-access.ready { border: 0; padding: 0; background: transparent; }
.meal-plan-access.ready > div { display: none; }
.meal-plan-access.ready > span { border: 0; padding: 0; color: #999; }
.meal-week-selector { margin-bottom: 10px; border: 1px solid #353535; border-radius: 8px; padding: 10px; background: #161616; }
.meal-week-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.meal-week-status strong { color: #eee; font-size: 12px; }
.meal-week-status strong b { color: var(--orange); }
.meal-week-status > span { color: #65c56b; font-size: 9px; font-weight: 750; }
.meal-day-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0; padding-bottom: 2px; scrollbar-width: thin; }
.meal-day-tabs button { flex: 1 1 0; min-width: 0; height: 40px; border: 1px solid #484848; border-radius: 8px; background: #242424; color: #eee; cursor: pointer; font-size: 10px; font-weight: 850; }
.meal-day-tabs button.active { border-color: var(--orange); background: var(--orange); color: #fff; }
.meal-plan-list { display: grid; gap: 8px; }
.meal-plan-day-summary, .meal-plan-card, .meal-plan-shopping-list { border: 1px solid #3b3b3b; border-radius: 9px; background: #161616; }
.meal-plan-day-summary { display: grid; gap: 9px; padding: 12px; }
.meal-plan-day-summary h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.meal-plan-summary-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.meal-plan-macro-pill { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid currentColor; border-radius: 8px; padding: 6px 5px; color: var(--orange); }
.meal-plan-macro-pill.fat { color: #ffc247; }
.meal-plan-macro-pill.carbs { color: #65c56b; }
.meal-plan-macro-pill span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.meal-plan-macro-pill strong { color: #f5f5f5; font-size: 10px; white-space: nowrap; }
.meal-plan-day-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #303030; }
.meal-plan-day-progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.meal-plan-keto-line { margin: 0; color: #858585; font-size: 9px; line-height: 1.45; }
.meal-plan-card { padding: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.meal-plan-card.expanded { border-color: rgba(255,106,0,.62); box-shadow: inset 0 0 0 1px rgba(255,106,0,.08); }
.meal-plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meal-plan-card-top h4 { min-width: 0; margin: 0; font-size: 18px; line-height: 1.15; }
.meal-plan-log { flex: 0 0 auto; min-height: 34px; max-width: 55%; border: 0; border-radius: 8px; padding: 7px 10px; background: var(--orange); color: #fff; cursor: pointer; font-size: 9px; font-weight: 850; line-height: 1.2; }
.meal-plan-log.complete { background: rgba(255,106,0,.42); color: rgba(255,255,255,.82); }
.meal-plan-log:disabled { cursor: default; opacity: .72; }
.meal-plan-meal-title { margin: 7px 0 3px; color: var(--orange); font-size: 12px; font-weight: 750; line-height: 1.35; }
.meal-plan-meal-macros { margin: 0; color: #8b8b8b; font-size: 9px; line-height: 1.5; }
.meal-plan-expand { display: flex; align-items: center; gap: 3px; margin-top: 5px; border: 0; padding: 3px 0; background: transparent; color: #929292; cursor: pointer; font: inherit; font-size: 10px; }
.meal-plan-chevron { width: 16px; color: var(--orange); font-size: 17px; line-height: 1; text-align: center; }
.meal-plan-card-details { display: grid; gap: 8px; margin-top: 4px; }
.meal-plan-card-details[hidden] { display: none; }
.meal-plan-ingredients { display: grid; gap: 5px; }
.meal-plan-ingredient { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.meal-plan-ingredient span { min-width: 0; color: #ddd; font-size: 10px; line-height: 1.35; }
.meal-plan-ingredient strong { flex: 0 0 auto; color: #8d8d8d; font-size: 10px; }
.meal-plan-no-ingredients { margin: 0; color: #777; font-size: 10px; }
.meal-plan-preparation { margin-top: 4px; border-top: 1px solid var(--line-soft); padding-top: 9px; }
.meal-plan-preparation h5 { margin: 0 0 5px; color: var(--orange); font-size: 10px; }
.meal-plan-preparation p { margin: 0; color: #9a9a9a; font-size: 10px; line-height: 1.55; }
.meal-plan-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; border-top: 1px solid var(--line-soft); padding-top: 7px; }
.meal-plan-link-action { border: 0; padding: 3px 0; background: transparent; color: var(--orange); cursor: pointer; font-size: 10px; font-weight: 800; text-align: left; }
.meal-plan-link-action.swap { flex: 1; }
.meal-plan-link-action.lock { flex: 0 0 auto; }
.meal-plan-link-action:disabled { color: #646464; cursor: default; }
.meal-plan-link-action.lock.active { color: #ff8b3d; }
.meal-plan-shopping-wrap { display: grid; gap: 8px; }
.meal-plan-shopping-toggle { width: 100%; min-height: 40px; border: 1px solid #4a4a4a; border-radius: 8px; background: transparent; color: #f2f2f2; cursor: pointer; font-weight: 800; }
.meal-plan-shopping-list { display: grid; gap: 7px; padding: 13px; }
.meal-plan-shopping-list h4 { margin: 0 0 3px; color: var(--orange); font-size: 14px; }
.meal-plan-shopping-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.meal-plan-shopping-row span, .meal-plan-shopping-row strong { font-size: 10px; line-height: 1.4; }
.meal-plan-shopping-row strong { flex: 0 0 auto; color: #b3b3b3; }
.meal-plan-locked-count { margin: 0; color: var(--orange); font-size: 10px; font-weight: 800; }
.meal-plan-empty { display: grid; justify-items: center; gap: 10px; padding: 28px 20px; background: #171717; text-align: center; }
.meal-plan-empty h4 { margin: 0; font-size: 18px; }
.meal-plan-empty p { max-width: 560px; margin: 0; color: #818181; font-size: 10px; line-height: 1.6; }
.meal-plan-generate, .meal-plan-regenerate { width: 100%; min-height: 46px; border: 0; border-radius: 8px; padding: 0 18px; background: var(--orange); color: #101010; cursor: pointer; font-weight: 900; }
.meal-plan-generate:disabled, .meal-plan-regenerate:disabled { cursor: wait; opacity: .5; }
.meal-plan-regenerate-wrap { display: flex; justify-content: center; }
.meal-plan-action-status { min-height: 18px; margin: 12px 0 0; color: #818181; font-size: 10px; line-height: 1.5; }
.meal-plan-action-status.success { color: var(--success); }
.meal-plan-action-status.error { color: var(--error); }
.meals-quick-entry { padding: 13px 12px; }
.meals-quick-entry h3, .meals-add-section > h3, .meals-saved-today > h3 { margin: 0 0 10px; font-size: 18px; }
.meals-quick-entry > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meals-quick-entry button { min-width: 0; min-height: 70px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px solid #434343; border-radius: 9px; background: #171717; color: #eee; cursor: pointer; font: inherit; }
.meals-quick-entry button:not(:disabled):hover { border-color: var(--orange); }
.meals-quick-entry button:disabled { cursor: default; opacity: .45; }
.meals-quick-entry svg { width: 20px; height: 20px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meals-quick-entry span { font-size: 12px; font-weight: 800; }
.meals-quick-entry small { color: #777; font-size: 8px; }
.meals-diary-heading { padding: 13px 12px; }
.meals-diary-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.meals-diary-heading h3 { margin: 0; font-size: 20px; }
.meals-diary-heading span { border: 1px solid var(--orange); border-radius: 8px; padding: 4px 8px; color: var(--orange); font-size: 10px; font-weight: 800; }
.meals-diary-heading p { margin: 5px 0 0; color: #858585; font-size: 10px; line-height: 1.5; }
.meals-add-section { display: grid; gap: 10px; padding: 13px 12px; }
.meal-type-selector { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.meal-type-selector button { min-width: 0; min-height: 38px; border: 1px solid #404040; border-radius: 8px; padding: 5px; background: #171717; color: #aaa; cursor: pointer; font: inherit; font-size: 10px; font-weight: 750; }
.meal-type-selector button.active { border-color: var(--orange); background: rgba(255,106,0,.14); color: #fff; }
.meals-browser-note { display: flex; align-items: center; gap: 10px; border: 1px solid #333; border-radius: 8px; padding: 10px; background: #151515; }
.meals-browser-note svg { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.meals-browser-note span { display: grid; gap: 3px; }
.meals-browser-note strong { font-size: 12px; }
.meals-browser-note small { color: #777; font-size: 9px; line-height: 1.45; }
.manual-food-search { border: 1px solid #333; border-radius: 8px; padding: 11px; background: #151515; }
.manual-food-search h4 { margin: 0 0 9px; font-size: 15px; }
.manual-food-search .food-result-row { padding-inline: 0; }
.meal-draft-panel { border: 1px solid rgba(255,106,0,.55); border-radius: 8px; padding: 11px; background: #151515; }
.meal-draft-panel h4 { margin: 0 0 8px; font-size: 16px; }
.meal-draft-list { display: grid; }
.meal-draft-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #303030; }
.meal-draft-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.meal-draft-item span { color: #aaa; font-size: 10px; }
.meal-draft-item button { width: 28px; height: 28px; border: 1px solid #474747; border-radius: 7px; background: transparent; color: #aaa; cursor: pointer; }
.meal-draft-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.meal-draft-total > span { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px; font-size: 12px; font-weight: 750; }
.meal-draft-total > span strong { color: var(--orange); font-size: 21px; }
.meal-draft-total small { grid-column: 1 / -1; color: #777; font-size: 9px; font-weight: 500; }
.meal-draft-total > button { min-height: 38px; border: 0; border-radius: 8px; padding: 0 18px; background: var(--orange); color: #111; cursor: pointer; font-weight: 900; }
.meal-draft-total > button:disabled { cursor: wait; opacity: .55; }
.meals-saved-today { padding-top: 13px; }
.meals-saved-today > h3 { padding: 0 12px; }
.meal-log-actions { flex: 0 0 auto; display: grid; justify-items: end; gap: 6px; }
.meal-log-actions strong { color: var(--orange); font-size: 14px; }
.meal-log-actions button { width: 28px; height: 28px; border: 1px solid #454545; border-radius: 7px; background: transparent; color: #999; cursor: pointer; font-size: 13px; }
.close-food-day { width: calc(100% - 24px); min-height: 42px; margin: 10px 12px 13px; border: 1px solid #4a4a4a; border-radius: 8px; background: transparent; color: #eee; cursor: pointer; font-weight: 800; }
.close-food-day:disabled { cursor: wait; opacity: .55; }
.meals-message { margin: 0; padding: 2px 4px 6px; color: #777; font-size: 10px; }
.feature-hero { min-height: 240px; display: flex; align-items: center; gap: clamp(28px, 5vw, 70px); padding: clamp(30px, 6vw, 62px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #181818, #24170f); }
.feature-hero > svg { flex: 0 0 100px; width: 100px; height: 100px; padding: 25px; border: 1px solid rgba(255,106,0,.4); border-radius: 25px; background: var(--orange-soft); color: var(--orange); }
.feature-hero h2 { margin: 8px 0 13px; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.05em; }
.feature-hero div > p:last-child { max-width: 770px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.fridge-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 14px; margin-top: 18px; }
.ai-form-panel, .fridge-result { min-width: 0; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: 13px; background: #191919; }
.ai-form-panel label, .coach-form label { display: block; margin-bottom: 9px; color: #919191; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ai-form-panel textarea, .coach-form textarea { width: 100%; resize: vertical; border: 1px solid #393939; border-radius: 10px; padding: 14px; background: #111; color: #f4f4f4; outline: 0; font: inherit; line-height: 1.55; }
.ai-form-panel textarea:focus, .coach-form textarea:focus { border-color: var(--orange); }
.ai-form-panel > p, .coach-form > p { margin: 11px 0 18px; color: #747474; font-size: 10px; line-height: 1.55; }
.primary-button.compact { min-height: 48px; }
.feature-status { margin-top: 14px; color: #888; font-size: 11px; line-height: 1.5; }
.feature-status.error { color: #ff7664; }
.fridge-result-head { display: flex; justify-content: space-between; gap: 20px; }
.fridge-result-head h3 { margin: 7px 0 0; font-size: 25px; }
.fridge-result-head > strong { align-self: flex-start; padding: 8px 10px; border: 1px solid rgba(255,106,0,.42); border-radius: 8px; color: var(--orange); font-size: 12px; }
.fridge-result > p { color: #999; line-height: 1.6; }
.fridge-macros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.fridge-macros span { padding: 13px; border: 1px solid var(--line-soft); border-radius: 8px; background: #151515; }
.fridge-macros small, .fridge-macros b { display: block; }
.fridge-macros small { margin-bottom: 5px; color: #777; font-size: 9px; }
.fridge-macros b { font-size: 13px; }
.fridge-result h4 { margin: 20px 0 10px; color: #a7a7a7; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.fridge-ingredients { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--line-soft); }
.fridge-ingredient { display: flex; justify-content: space-between; gap: 15px; padding: 11px 13px; background: #151515; font-size: 11px; }
.fridge-ingredient span { color: #898989; }
.fridge-instructions { white-space: pre-line; }
.coach-panel { overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: #191919; }
.coach-panel[hidden] { display: none !important; }
.coach-topline { display: flex; justify-content: space-between; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); color: #8a8a8a; font-size: 10px; }
.coach-topline small { color: var(--orange); }
.coach-messages { min-height: 320px; max-height: 540px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.coach-message { max-width: min(760px, 86%); padding: 14px 16px; border-radius: 13px; color: #e8e8e8; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.coach-message.user { align-self: flex-end; border: 1px solid rgba(255,106,0,.38); border-bottom-right-radius: 3px; background: #2a1a10; }
.coach-message.assistant { align-self: stretch; max-width: 100%; border: 1px solid #343434; border-bottom-left-radius: 3px; background: #222; }
.coach-message-author { display: block; margin-bottom: 9px; color: var(--orange); font-size: 11px; }
.coach-message small { display: block; margin-top: 7px; color: #6f6f6f; font-size: 8px; }
.coach-message.assistant p { margin: 0; white-space: pre-wrap; }
.coach-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px 16px; }
.coach-prompts[hidden], .coach-messages[hidden] { display: none !important; }
.coach-prompts button { border: 1px solid #3a3a3a; border-radius: 999px; padding: 8px 12px; background: #151515; color: #aaa; cursor: pointer; font-size: 10px; }
.coach-prompts button:hover { border-color: var(--orange); color: var(--orange); }
.coach-form { padding: 18px 20px; border-top: 1px solid var(--line-soft); }
.coach-form > div { display: grid; grid-template-columns: 1fr 50px; gap: 8px; }
.coach-form textarea { min-height: 50px; max-height: 150px; resize: vertical; }
.coach-form button { display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--orange); color: #111; cursor: pointer; }
.coach-form button:disabled { cursor: wait; opacity: .6; }
.coach-form button svg { width: 21px; height: 21px; }
.coach-form > p { margin-bottom: 0; }
.coach-app-page #coach-ai-panel { overflow: visible; }
.coach-intro { display: grid; justify-items: center; gap: 9px; min-height: 190px; align-content: center; padding: 18px 24px 26px; background: linear-gradient(180deg, rgba(13,13,13,.16), rgba(13,13,13,.68)), url("./assets/android-home-background.jpg") center 48% / cover; text-align: center; }
.coach-intro[hidden] { display: none !important; }
.coach-intro svg { width: 54px; height: 54px; margin-bottom: 2px; color: var(--orange); filter: drop-shadow(0 0 12px rgba(255,106,0,.68)); }
.coach-intro h3 { margin: 0; font-size: clamp(19px, 3vw, 25px); }
.coach-intro p { max-width: 480px; margin: 0; color: #c7c7c7; font-size: 13px; line-height: 1.55; }
.coach-panel.has-conversation { display: flex; flex-direction: column; overflow: visible; }
.coach-panel.has-conversation .coach-messages { flex: 1 1 auto; min-height: 300px; max-height: min(62vh, 680px); overscroll-behavior: contain; scrollbar-gutter: stable; }
.coach-panel.has-conversation .coach-form { flex: 0 0 auto; }
.app-shell.coach-route-active .app-workspace { background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.78)), url("./assets/android-home-background.jpg") center top / cover fixed no-repeat; }
.app-module-page { max-width: 760px; margin-inline: auto; }
.module-phone-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 4px 14px; }
.module-phone-header h2, .coach-brand-header h2 { margin: 4px 0 3px; font-size: 31px; line-height: 1; letter-spacing: 0; }
.module-phone-header p:not(.eyebrow) { margin: 0; color: #aaa; font-size: 13px; line-height: 1.35; }
.module-icon-button, .ghost-icon-button, .send-icon-button { display: grid; place-items: center; border: 0; cursor: pointer; }
.module-icon-button { width: 38px; height: 38px; border-radius: 9px; background: transparent; color: var(--orange); }
.module-icon-button svg, .ghost-icon-button svg, .send-icon-button svg { width: 22px; height: 22px; }
.module-icon-button:disabled, .ghost-icon-button:disabled, .send-icon-button:disabled { cursor: wait; opacity: .48; }
.module-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; min-height: 42px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #151515; }
.module-segmented button { min-width: 0; border: 0; border-right: 1px solid rgba(255,255,255,.12); background: transparent; color: #d7d7d7; cursor: pointer; font-size: 12px; font-weight: 800; }
.module-segmented button:last-child { border-right: 0; }
.module-segmented button.active { background: var(--orange); color: white; }
.fridge-target-card, .fridge-custom-target, .fridge-composer, .fridge-result, .coach-panel { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #171717; box-shadow: none; }
.fridge-target-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; align-items: center; padding: 12px; }
.target-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.target-main > svg { flex: 0 0 30px; width: 30px; height: 30px; color: var(--orange); }
.target-main span, .target-progress span { display: block; color: #aaa; font-size: 11px; font-weight: 750; }
.target-main strong { display: block; color: white; font-size: 25px; line-height: 1.08; }
.target-main strong i, .target-progress i { font-style: normal; }
.target-main strong i { color: var(--orange); }
.target-progress { display: grid; gap: 8px; min-width: 0; }
.target-progress span { text-align: right; }
.fridge-custom-target { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 10px; padding: 11px; border-color: rgba(255,106,0,.45); }
.fridge-custom-target label { color: #aaa; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fridge-custom-target div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.fridge-custom-target input { width: 100%; min-height: 43px; border: 1px solid #3d3d3d; border-radius: 8px; padding: 0 13px; background: #101010; color: white; outline: 0; }
.fridge-custom-target input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.fridge-custom-target span { color: var(--orange); font-size: 12px; font-weight: 850; }
.fridge-composer { display: grid; gap: 10px; margin-top: 12px; padding: 11px; }
.assistant-row { display: flex; align-items: flex-start; gap: 10px; }
.assistant-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: white; font-size: 14px; font-weight: 950; }
.assistant-row strong { display: block; color: var(--orange); font-size: 12px; }
.assistant-row p { margin: 4px 0 0; color: #e8e8e8; font-size: 12px; line-height: 1.45; }
.composer-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px 48px; gap: 7px; align-items: end; }
.composer-input-row textarea, .coach-form textarea { width: 100%; min-height: 48px; max-height: 118px; resize: vertical; border: 1px solid rgba(255,255,255,.28); border-radius: 24px; padding: 13px 14px; background: #1f1f1f; color: white; outline: 0; line-height: 1.35; }
.composer-input-row textarea:focus, .coach-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.11); }
.ghost-icon-button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: #1f1f1f; color: var(--orange); }
.send-icon-button, .coach-form button[type="submit"] { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: white; }
.fridge-composer > p { margin: 0; color: #8e8e8e; font-size: 10px; }
.fridge-result { display: grid; gap: 9px; margin-top: 12px; padding: 10px; }
.fridge-result-card { display: grid; gap: 7px; padding: 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #202020; }
.fridge-result-head { align-items: center; gap: 10px; }
.fridge-result-head h3 { min-width: 0; margin: 0; font-size: 20px; line-height: 1.1; }
.fridge-result-head > strong { flex: 0 0 auto; align-self: center; padding: 5px 7px; border-color: rgba(114,199,133,.62); border-radius: 6px; color: var(--success); font-size: 9px; white-space: nowrap; }
.fridge-result-card h4, .fridge-result-card h5 { margin: 0; line-height: 1.22; }
.fridge-result-card h4 { color: var(--orange); font-size: 14px; }
.fridge-result-card h5 { color: #e6e6e6; font-size: 11px; }
.fridge-macro-line { margin: 0; color: #aaa; font-size: 10px; }
.fridge-divider { height: 1px; background: rgba(255,255,255,.12); }
.fridge-ingredients { display: grid; gap: 5px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.fridge-ingredient { align-items: baseline; gap: 10px; padding: 0; background: transparent; font-size: 11px; }
.fridge-ingredient strong { min-width: 0; color: #f2f2f2; line-height: 1.25; }
.fridge-ingredient span { flex: 0 0 auto; color: #aaa; }
.fridge-instructions, .fridge-fit-note { margin: 0; color: #ddd; font-size: 11px; line-height: 1.42; white-space: pre-line; }
.fridge-fit-note { color: #8f8f8f; }
.module-primary-button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; background: var(--orange); color: white; cursor: pointer; font-weight: 900; }
.module-primary-button svg { width: 17px; height: 17px; }
.module-primary-button:disabled, .fridge-secondary-actions button:disabled, .module-text-button:disabled { cursor: wait; opacity: .52; }
.fridge-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.fridge-secondary-actions button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,106,0,.42); border-radius: 8px; background: transparent; color: #f2f2f2; cursor: pointer; font-size: 11px; font-weight: 850; }
.fridge-secondary-actions svg { width: 15px; height: 15px; }
.module-text-button { min-height: 30px; border: 0; background: transparent; color: var(--orange); cursor: pointer; font-size: 11px; font-weight: 800; }
.app-shell.fridge-route-active .app-workspace { background: linear-gradient(rgba(7,7,7,.48), rgba(7,7,7,.56)), url("/brand-header-background.jpg") center top / cover fixed no-repeat; }
.route-page.active.fridge-app-page { display: grid; align-content: start; gap: 9px; }
.fridge-app-page .module-phone-header { padding: 3px 2px 2px; }
.fridge-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fridge-title-icon { flex: 0 0 28px; width: 28px; height: 28px; fill: none; color: var(--orange); stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.fridge-app-page .module-phone-header h2 { margin: 0; font-size: 31px; line-height: 1.05; }
.fridge-app-page .module-phone-header p:not(.eyebrow) { color: #d1d1d1; font-size: 13px; }
.fridge-app-page .module-segmented { min-height: 52px; margin: 0; border-radius: 10px; background: rgba(21,21,21,.94); }
.fridge-app-page .module-segmented button { font-size: 14px; }
.fridge-app-page .fridge-target-card, .fridge-app-page .fridge-composer, .fridge-app-page .fridge-result { border-radius: 11px; background: rgba(17,17,17,.9); }
.fridge-app-page .fridge-target-card { min-height: 96px; padding: 14px; }
.fridge-app-page .target-main > svg { width: 34px; height: 34px; flex-basis: 34px; }
.fridge-app-page .target-main span { color: #f1f1f1; font-size: 13px; }
.fridge-app-page .target-main strong { font-size: 30px; }
.fridge-app-page .target-progress { min-height: 60px; align-content: center; border-left: 1px solid rgba(255,255,255,.14); padding-left: 12px; }
.fridge-app-page .target-progress span { text-align: left; font-size: 13px; }
.fridge-quota { margin: 0; color: #c9c9c9; font-size: 12px; }
.fridge-empty-state { display: grid; gap: 10px; }
.fridge-showcase { position: relative; width: 100%; overflow: hidden; aspect-ratio: 1.44; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: #111; }
.fridge-showcase > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.fridge-category-tag { position: absolute; z-index: 1; display: flex; align-items: center; gap: 6px; width: 29%; min-height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 5px 7px; background: rgba(19,19,19,.91); color: #fff; font-size: 10px; font-weight: 850; line-height: 1.05; }
.fridge-category-tag svg { flex: 0 0 19px; width: 19px; height: 19px; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag-fresh, .tag-protein, .tag-energy { left: 5%; }
.tag-color, .tag-dairy, .tag-fruit { right: 5%; }
.tag-fresh, .tag-color { top: 8%; }
.tag-protein, .tag-dairy { top: 42%; }
.tag-energy, .tag-fruit { bottom: 7%; }
.tag-fresh svg, .tag-fruit svg { color: #64c77a; }
.tag-color svg { color: #ff6474; }
.tag-dairy svg { color: #f4f4f4; }
.fridge-app-page .fridge-composer { gap: 11px; margin: 0; padding: 12px; }
.fridge-app-page .assistant-row { gap: 9px; }
.fridge-app-page .assistant-avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 16px; }
.assistant-message-content { min-width: 0; flex: 1; }
.fridge-app-page .assistant-message-content > strong { margin: 3px 0 7px; font-size: 14px; }
.fridge-app-page .assistant-message-content > p { margin: 0; border-radius: 9px; padding: 10px 12px; background: #252525; color: #f2f2f2; font-size: 14px; line-height: 1.35; }
.fridge-input-wrap { position: relative; min-width: 0; }
.fridge-input-wrap textarea { min-height: 58px; padding: 16px 49px 14px 16px; border-radius: 32px; background: #202020; font-size: 14px; }
.fridge-input-wrap .ghost-icon-button { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 42px; height: 44px; border: 0; background: transparent; color: var(--orange); }
.fridge-input-wrap .ghost-icon-button:disabled { opacity: 1; }
.fridge-app-page .composer-input-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 9px; align-items: center; }
.fridge-app-page .send-icon-button { width: 56px; height: 56px; background: #626262; color: #ddd; }
.fridge-app-page .send-icon-button:not(:disabled) { background: var(--orange); color: #fff; }
.fridge-app-page .send-icon-button svg { width: 27px; height: 27px; }
.fridge-app-page .fridge-composer > p { margin: 0 1px; color: #aaa; font-size: 10px; }
.fridge-status { margin: 0; }
.fridge-empty-state[hidden], .fridge-result[hidden], .fridge-status[hidden] { display: none !important; }
.coach-brand-header { padding: 8px 4px 9px; }
.coach-brand-lockup { display: flex; align-items: center; gap: 9px; }
.coach-brand-lockup img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.coach-brand-lockup span { display: grid; line-height: 1.02; }
.coach-brand-lockup small { color: #aaa; font-size: 10px; }
.coach-brand-lockup strong { color: white; font-size: 17px; }
.coach-brand-lockup em { color: var(--orange); font-style: normal; }
.coach-brand-tagline { float: right; display: grid; justify-items: end; gap: 4px; margin-top: -33px; color: #aaa; font-size: 8px; }
.coach-brand-tagline i { display: block; width: 34px; height: 2px; border-radius: 99px; background: var(--orange); }
.coach-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; }
.coach-tabs svg { width: 18px; height: 18px; }
.coach-panel { overflow: hidden; margin-top: 0; }
.coach-context-card { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.12); background: #191919; }
.coach-context-card > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--orange); color: white; }
.coach-context-card > span svg { width: 25px; height: 25px; }
.coach-context-actions { display: flex; align-items: center; gap: 2px; }
.coach-context-actions .module-text-button { padding: 4px 6px; white-space: nowrap; }
.coach-context-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.coach-context-title strong { font-size: 16px; }
.coach-context-title b { padding: 2px 7px; border: 1px solid rgba(255,106,0,.42); border-radius: 6px; color: var(--orange); font-size: 10px; }
.coach-context-card p { margin: 3px 0 0; color: #aaa; font-size: 11px; line-height: 1.25; }
.coach-topline { padding: 8px 12px; border-bottom: 0; font-size: 10px; }
.coach-prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 12px 12px; }
.coach-prompts button { min-height: 50px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; align-items: center; gap: 8px; border-radius: 8px; padding: 8px 10px; text-align: left; white-space: normal; }
.coach-prompts button::after { content: "›"; color: #8b8b8b; font-size: 18px; line-height: 1; }
.coach-prompts svg { width: 19px; height: 19px; color: var(--orange); }
.coach-prompts span { min-width: 0; overflow-wrap: anywhere; }
.coach-messages { min-height: 300px; max-height: 520px; padding: 12px; gap: 10px; }
.coach-message { max-width: 88%; border-radius: 18px; padding: 12px 13px; font-size: 14px; }
.coach-message.assistant { max-width: 100%; }
.coach-message-author { font-size: 12px; }
.coach-message p { margin: 0; white-space: pre-wrap; }
.coach-report-button { display: block; margin-top: 9px; border: 0; background: transparent; color: var(--orange); cursor: pointer; padding: 0; font-size: 10px; font-weight: 800; }
.coach-form { padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.12); }
.coach-form > div { grid-template-columns: minmax(0, 1fr) 44px 50px; align-items: end; gap: 7px; }
.coach-form button[type="submit"] { display: grid; place-items: center; border: 0; cursor: pointer; }
.coach-intro { min-height: 170px; padding: 18px 18px 22px; background-position: center 48%; }
.coach-intro svg { width: 62px; height: 62px; }
.coach-intro h3 { font-size: 20px; }
.coach-intro p { font-size: 12px; }
.coach-panel.has-conversation .coach-messages { height: min(58dvh, calc(100dvh - 460px)); min-height: 190px; max-height: none; }
.support-chat-form > div { grid-template-columns: minmax(0, 1fr) 50px; }
.support-inbox { padding: 10px 12px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.support-inbox-intro { margin: 0 0 9px; color: #aaa; font-size: 11px; }
.support-conversations { display: grid; gap: 7px; max-height: 320px; overflow-y: auto; }
.support-conversation-button { display: grid; gap: 5px; width: 100%; min-width: 0; border: 1px solid #393939; border-radius: 9px; padding: 10px; background: #202020; color: #f1f1f1; text-align: left; cursor: pointer; }
.support-conversation-button.is-active { border-color: var(--orange); background: rgba(255,106,0,.1); }
.support-conversation-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.support-conversation-identity { display: grid; min-width: 0; gap: 2px; }
.support-conversation-identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.support-conversation-identity small, .support-conversation-date { color: #888; font-size: 9px; }
.support-conversation-preview { overflow: hidden; color: #aaa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.support-unread-badge { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 99px; background: var(--orange); color: #111; font-size: 10px; }
.support-message-meta { display: block; margin-top: 8px; color: #898989; font-size: 9px; }
.community-hero { min-height: 205px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(125deg, #181818, #24170f); }
.community-hero h2 { max-width: 760px; margin: 8px 0 12px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.05em; }
.community-hero p:last-child { margin: 0; color: var(--muted); }
.community-stats { display: flex; gap: 9px; }
.community-stats span { min-width: 104px; padding: 16px; border: 1px solid #373737; border-radius: 10px; background: rgba(17,17,17,.72); }
.community-stats small, .community-stats b { display: block; }
.community-stats small { margin-bottom: 6px; color: #777; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.community-stats b { color: var(--orange); font-size: 21px; }
.community-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 18px; }
.community-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #191919; }
.challenge-list, .leaderboard-list, .community-posts { display: grid; }
.challenge-card { min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.challenge-card:last-child { border-bottom: 0; }
.challenge-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.challenge-card-head > div { min-width: 0; flex: 1; }
.challenge-card h4 { margin: 0 0 7px; font-size: 14px; }
.challenge-card p { margin: 0; color: #858585; font-size: 10px; line-height: 1.55; }
.challenge-card-head > span { flex: 0 0 auto; color: var(--orange); font-size: 11px; font-weight: 850; }
.challenge-progress { height: 5px; overflow: hidden; margin: 15px 0 8px; border-radius: 999px; background: #303030; }
.challenge-progress i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.challenge-card small { color: #777; font-size: 9px; }
.leaderboard-row { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row > b { color: #777; font-size: 12px; }
.leaderboard-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-row > span { color: var(--orange); font-size: 11px; font-weight: 850; }
.leaderboard-row.current { background: rgba(255,106,0,.06); }
.posts-panel { margin-top: 14px; }
.community-post-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.community-post-toolbar > span { color: #888; font-size: 10px; }
.community-post-toolbar .tool-primary-button { min-height: 38px; padding-inline: 12px; font-size: 11px; }
.community-compose-form { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(12,12,12,.72); }
.community-compose-form .eyebrow, .community-compose-form h4, .community-compose-form > p { margin: 0; }
.community-compose-form h4 { font-size: 16px; }
.community-compose-form > p:not(.eyebrow):not(.tool-status) { color: #aaa; font-size: 11px; line-height: 1.5; }
.community-compose-form > label:not(.community-rules-check) { display: grid; gap: 6px; color: #ccc; font-size: 11px; font-weight: 750; }
.community-compose-form textarea, .community-compose-form input[type="file"] { width: 100%; min-width: 0; border: 1px solid #414141; border-radius: 8px; padding: 11px; background: #101010; color: #eee; }
.community-compose-form textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.community-compose-form textarea:focus, .community-compose-form input[type="file"]:focus { border-color: var(--orange); outline: 2px solid rgba(255,106,0,.16); }
.community-compose-form input[type="file"]::file-selector-button { margin: 0 10px 0 0; border: 1px solid #555; border-radius: 6px; padding: 7px 9px; background: #242424; color: #eee; cursor: pointer; }
.community-post-preview { display: grid; justify-items: start; gap: 8px; }
.community-post-preview img { display: block; width: min(100%, 520px); max-height: 340px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; background: #080808; }
.community-compose-actions { display: flex; justify-content: flex-end; gap: 8px; }
.community-post-image { display: block; width: 100%; max-height: 520px; margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; background: #080808; }
.community-post { min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.community-post:last-child { border-bottom: 0; }
.community-post-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.community-post-head strong { font-size: 12px; }
.community-post-head time { color: #707070; font-size: 9px; }
.community-post > p { margin: 0; color: #a4a4a4; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.community-post > small { display: block; margin-top: 10px; color: #777; font-size: 9px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 20px; }
.section-heading h2 { margin: 6px 0 0; font-size: 28px; }
.section-heading > p { max-width: 480px; margin: 0; color: #8b8b8b; font-size: 13px; line-height: 1.6; text-align: right; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module-grid button { min-height: 92px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #191919; cursor: pointer; text-align: left; transition: transform .18s, border-color .18s, background .18s; }
.module-grid button:hover { transform: translateY(-2px); border-color: rgba(255,106,0,.6); background: #1d1b19; }
.module-grid button > svg { width: 42px; height: 42px; padding: 10px; border-radius: 9px; background: var(--orange-soft); color: var(--orange); }
.module-grid button span { display: flex; flex-direction: column; gap: 4px; }
.module-grid button strong { font-size: 15px; }
.module-grid button small { color: #838383; }
.module-grid button i { color: var(--orange); font-size: 18px; font-style: normal; }
.placeholder-hero { min-height: 310px; display: flex; align-items: center; gap: clamp(24px, 5vw, 70px); padding: clamp(30px, 6vw, 74px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(25,25,25,.98), rgba(27,20,16,.9)); }
.placeholder-hero > svg { flex: 0 0 clamp(74px, 10vw, 130px); width: clamp(74px, 10vw, 130px); height: clamp(74px, 10vw, 130px); padding: 24px; border: 1px solid rgba(255,106,0,.35); border-radius: 28px; background: var(--orange-soft); color: var(--orange); }
.placeholder-hero div { max-width: 720px; }
.placeholder-hero span { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.placeholder-hero h2 { margin: 9px 0 14px; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; }
.placeholder-hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.capability-list { display: grid; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #191919; }
.capability-list > div { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.capability-list > div:last-child { border-bottom: 0; }
.capability-list strong { font-size: 13px; }
.capability-list span { color: #888; font-size: 11px; text-align: right; }
.capability-list .available-label { color: var(--success); }
.profile-card { min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #191919, #20160f); }
.profile-card > #profile-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid rgba(255,106,0,.55); border-radius: 8px; background: var(--orange-soft); color: var(--orange); }
.profile-card > #profile-avatar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-card > div { min-width: 0; flex: 1 1 auto; }
.profile-card h2 { margin: 2px 0 3px; font-size: 23px; }
.profile-card div > p:last-child { margin: 0; color: var(--muted); }
.profile-card #profile-email { overflow-wrap: anywhere; }
.profile-card .eyebrow { margin: 0; }
.profile-client-portal-link { width: 100%; min-height: 86px; display: flex; align-items: center; gap: 13px; margin-top: 10px; padding: 15px 17px; border: 1px solid rgba(255,106,0,.66); border-radius: 10px; background: #090909; box-shadow: 0 0 18px rgba(255,106,0,.08); color: var(--text); text-align: left; cursor: pointer; }
.profile-client-portal-link:hover { border-color: var(--orange); box-shadow: 0 0 21px rgba(255,106,0,.16); }
.profile-client-portal-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,106,0,.38); border-radius: 8px; background: var(--orange-soft); color: var(--orange); }
.profile-client-portal-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-client-portal-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.profile-client-portal-copy strong { font-size: 15px; }
.profile-client-portal-copy small { color: var(--muted); font-size: 11px; }
.profile-client-portal-copy em { justify-self: center; margin-top: 3px; color: var(--orange); font-size: 11px; font-style: normal; font-weight: 850; text-align: center; }
.profile-client-portal-arrow { flex: 0 0 23px; width: 23px; height: 23px; fill: none; stroke: var(--orange); stroke-width: 2; }
.profile-admin-badge { margin-left: auto; border: 1px solid rgba(255,100,100,.45); border-radius: 6px; padding: 5px 8px; background: rgba(180,35,35,.16); color: #ff8d8d; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.profile-admin-badge[hidden] { display: none; }
.profile-access-card, .profile-plan-panel, .profile-steps-card, .profile-feature-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #191919; }
.profile-access-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.profile-access-card > div { min-width: 0; flex: 1; }
.profile-access-card h3, .profile-feature-card h3 { margin: 3px 0 5px; font-size: 15px; }
.profile-access-card p:not(.eyebrow), .profile-feature-card p:not(.eyebrow) { margin: 0; color: #a4a4a4; font-size: 10px; line-height: 1.55; }
.profile-access-card .eyebrow { margin: 0; }
.profile-access-link { flex: 0 0 auto; border: 0; padding: 0; background: transparent; color: var(--orange); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.profile-access-link[hidden] { display: none; }
.profile-access-link span { padding-left: 3px; }
.profile-pro-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr); align-items: center; gap: 16px; margin-top: 10px; padding: 16px; border: 1px solid rgba(255,106,0,.52); border-radius: 10px; background: linear-gradient(135deg, rgba(43,28,20,.97), rgba(22,22,22,.98) 58%); }
.profile-pro-offer[hidden] { display: none; }
.profile-pro-offer-copy { min-width: 0; }
.profile-pro-offer-copy > .eyebrow { margin: 0 0 7px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.profile-pro-offer-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.profile-pro-offer-title h3 { margin: 0; font-size: 16px; }
.profile-pro-offer-title > strong { color: var(--orange); font-size: 22px; white-space: nowrap; }
.profile-pro-offer-title small { margin-left: 4px; color: #bdbdbd; font-size: 10px; font-weight: 700; }
.profile-pro-offer-copy > p:not(.eyebrow) { margin: 9px 0 0; color: #c0c0c0; font-size: 11px; line-height: 1.55; }
.profile-pro-payment { min-width: 0; display: grid; grid-template-columns: minmax(94px, 132px) minmax(0, 1fr); align-items: center; gap: 10px; }
.profile-pro-qr { display: block; width: 100%; max-width: 132px; height: auto; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: #2b2b2e; }
.profile-pro-contact-actions { min-width: 0; display: grid; gap: 8px; }
.profile-pro-whatsapp, .profile-pro-chat { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(255,106,0,.52); border-radius: 7px; padding: 8px 10px; background: rgba(255,106,0,.12); color: #ff9b5f; text-align: center; text-decoration: none; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.profile-pro-whatsapp:hover, .profile-pro-chat:hover { border-color: var(--orange); background: rgba(255,106,0,.2); color: #ffb27f; }
.profile-pro-chat { background: #1d1d1d; color: #eee; }
.profile-pro-revolut { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 7px; padding: 8px 10px; background: var(--orange); color: #111; text-align: center; text-decoration: none; font-size: 10px; font-weight: 900; }
.profile-pro-whatsapp span { flex: 0 0 auto; }
.profile-plan-panel { padding: 14px; }
.profile-section-title { display: flex; align-items: center; gap: 9px; }
.profile-section-title h3 { min-width: 0; flex: 1; margin: 0; font-size: 14px; }
.profile-section-title > strong { color: var(--orange); font-size: 17px; white-space: nowrap; }
.profile-plan-macros { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.profile-plan-macros > div { min-width: 0; display: grid; gap: 4px; }
.profile-plan-macros span { color: #9a9a9a; font-size: 9px; }
.profile-plan-macros b { font-size: 12px; }
.profile-plan-macros i { height: 3px; border-radius: 99px; background: #238de8; }
.profile-plan-macros i.fat { background: #ffc247; }
.profile-plan-macros i.carbs { background: #55c56b; }
.profile-plan-estimates { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: #888; font-size: 10px; }
.profile-plan-estimates b { color: #ddd; }
.client-portal-page { width: min(100%, 900px); margin: 0 auto; }
.client-portal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.client-portal-header .eyebrow, .client-portal-card > .eyebrow, .client-portal-week-card > .eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.client-portal-header h2 { margin: 0 0 5px; font-size: clamp(22px, 4vw, 30px); }
.client-portal-header p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.client-portal-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; flex: 0 0 auto; border: 1px solid rgba(255,106,0,.42); border-radius: 7px; padding: 0 11px; background: #191919; color: var(--orange); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.client-portal-refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.client-portal-refresh:disabled { opacity: .55; cursor: wait; }
.admin-portal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 11px; }
.admin-portal-actions[hidden] { display: none; }
.admin-portal-actions button { min-width: 0; min-height: 42px; flex: 1 1 170px; border: 1px solid rgba(255,106,0,.48); border-radius: 8px; padding: 8px 13px; background: #111; color: #ff9a55; font: inherit; font-size: 11px; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; cursor: pointer; }
.admin-portal-actions .admin-portal-sign-out { flex-grow: 0; border-color: #454545; color: #e5e5e5; }
.admin-portal-actions button:disabled { opacity: .55; cursor: wait; }
.client-portal-status { min-height: 0; margin: 0; color: var(--success); font-size: 12px; line-height: 1.5; }
.client-portal-status:empty { display: none; }
.client-portal-status.error { color: #ffaaa0; }
.client-portal-content { display: grid; gap: 11px; }
.client-portal-content[aria-busy="true"] { min-height: 140px; }
.client-portal-loading { min-height: 130px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.client-portal-loading span { width: 28px; height: 28px; border: 3px solid rgba(255,106,0,.2); border-top-color: var(--orange); border-radius: 50%; animation: profile-bootstrap-spin .8s linear infinite; }
.client-portal-loading p { margin: 0; font-size: 12px; }
.client-portal-card, .client-portal-week-card, .client-portal-report-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: rgba(25,25,25,.96); }
.client-portal-card h3, .client-portal-week-card h3 { margin: 0 0 7px; font-size: 18px; }
.client-portal-card > p:not(.eyebrow), .client-portal-week-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.55; }
.client-portal-pin-card { width: min(100%, 560px); border-color: rgba(255,106,0,.4); }
.client-portal-pin-form { display: grid; gap: 8px; margin-top: 15px; }
.client-portal-pin-form > label, .client-portal-field { display: grid; gap: 6px; color: #d6d6d6; font-size: 11px; font-weight: 750; }
.client-portal-pin-form input, .client-portal-field input, .client-portal-field textarea { width: 100%; min-height: 42px; border: 1px solid #454545; border-radius: 7px; padding: 10px 12px; background: #111; color: #fff; font: inherit; font-size: 14px; }
.client-portal-pin-form input { max-width: 240px; letter-spacing: .28em; }
.client-portal-pin-form input:focus, .client-portal-field input:focus, .client-portal-field textarea:focus { outline: 1px solid var(--orange); border-color: var(--orange); }
.client-portal-pin-form > small, .client-portal-report-form > small { color: #999; font-size: 10px; line-height: 1.45; }
.client-portal-pin-form .tool-primary-button, .client-portal-report-form > .tool-primary-button { width: 100%; min-height: 46px; margin-top: 5px; }
.client-portal-report-form { display: grid; gap: 13px; margin-top: 12px; }
.client-portal-report-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.client-portal-report-form legend { padding: 0 5px; color: #bcbcbc; font-size: 11px; }
.client-portal-diet-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.client-portal-diet-field label { min-width: 0; cursor: pointer; }
.client-portal-diet-field input { position: absolute; opacity: 0; pointer-events: none; }
.client-portal-diet-field span { min-height: 38px; display: grid; place-items: center; border: 1px solid #454545; border-radius: 6px; background: #111; color: #c7c7c7; font-size: 10px; font-weight: 850; }
.client-portal-diet-field input:checked + span { border-color: var(--orange); background: rgba(255,106,0,.18); color: #ff9b5f; }
.client-portal-diet-field input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.client-portal-field textarea { min-height: 74px; resize: vertical; }
.client-portal-measure-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.client-portal-measure-fields legend { grid-column: 1 / -1; }
.client-portal-measure-fields .client-portal-field:last-child { grid-column: 1 / -1; }
.client-portal-rating-fields { display: grid; gap: 8px; }
.client-portal-rating { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 5px 12px; color: #eee; font-size: 12px; }
.client-portal-rating output { color: var(--orange); font-weight: 900; text-align: right; }
.client-portal-rating input { grid-column: 1 / -1; width: 100%; accent-color: var(--orange); }
.client-portal-consent { display: flex; align-items: flex-start; gap: 9px; color: #bcbcbc; font-size: 10px; line-height: 1.5; }
.client-portal-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); }
.client-portal-week-card { border-color: rgba(255,106,0,.4); background: linear-gradient(120deg, rgba(255,106,0,.11), #1a1a1a 60%); }
.client-portal-week-card > p:last-child { margin-bottom: 0; }
.client-portal-notice { padding: 13px 15px; border: 1px solid rgba(255,106,0,.32); border-radius: 8px; background: #191714; color: #ddd; font-size: 12px; line-height: 1.5; }
.client-portal-notice.success { border-color: rgba(112,199,134,.4); background: rgba(42,86,52,.16); color: #b6e7bf; }
.client-portal-member-list, .client-portal-admin-detail, .client-portal-history { display: grid; gap: 9px; }
.client-portal-member-card { width: 100%; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #1c1c1c; color: var(--text); text-align: left; cursor: pointer; }
.client-portal-member-card:hover { border-color: rgba(255,106,0,.55); }
.client-portal-member-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.client-portal-member-main strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.client-portal-member-main small, .client-portal-member-main > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.client-portal-member-state { flex: 0 0 auto; font-size: 9px; font-weight: 900; }
.client-portal-member-state.sent { color: var(--success); }
.client-portal-member-state.missing { color: var(--orange); }
.client-portal-member-card > svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: var(--orange); stroke-width: 2; }
.admin-user-activity-section, .admin-client-members-section { min-width: 0; display: grid; gap: 9px; }
.admin-user-activity-section > header, .admin-client-members-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.admin-user-activity-section h3, .admin-client-members-section h3 { margin: 0; font-size: 15px; }
.profile-admin-users { margin-top: 12px; padding: 14px; border: 1px solid rgba(255,106,0,.34); border-radius: 10px; background: linear-gradient(145deg, rgba(255,106,0,.06), #171717 45%); }
.profile-admin-users > header { align-items: center; }
.profile-admin-users > header > div { min-width: 0; }
.profile-admin-users > header .eyebrow { margin: 0 0 4px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.profile-admin-users > header h3 { font-size: 15px; }
.profile-admin-users > header p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.profile-admin-users-content { min-width: 0; display: grid; gap: 8px; }
.admin-user-directory-feedback { margin: 0; padding: 8px 10px; border: 1px solid rgba(112,199,134,.3); border-radius: 7px; background: rgba(42,86,52,.14); color: #b6e7bf; font-size: 11px; }
.admin-user-directory-feedback.error { border-color: rgba(255,112,103,.35); background: rgba(90,25,25,.16); color: #ffaaa0; }
.admin-user-activity-list { display: grid; gap: 7px; max-height: min(60vh, 560px); overflow: auto; overscroll-behavior: contain; padding-right: 2px; }
.admin-user-activity-card { min-width: 0; display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #191919; }
.admin-user-activity-identity { min-width: 0; display: grid; gap: 2px; }
.admin-user-activity-identity strong, .admin-user-activity-identity small { overflow-wrap: anywhere; }
.admin-user-activity-identity strong { color: #f4f4f4; font-size: 12px; }
.admin-user-activity-identity small { color: var(--muted); font-size: 10px; }
.admin-user-activity-dates { min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-user-activity-dates > div { min-width: 0; display: grid; gap: 3px; }
.admin-user-activity-dates dt { color: #999; font-size: 9px; }
.admin-user-activity-dates dd { min-width: 0; margin: 0; color: #e6e6e6; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.client-portal-notice.error { border-color: rgba(255,112,103,.4); background: rgba(90,25,25,.18); color: #ffaaa0; }
.client-portal-back-list { justify-self: start; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; background: #1a1a1a; color: var(--orange); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.client-portal-member-profile > p:last-child { margin-bottom: 0; }
.client-portal-report-card { border-color: rgba(112,199,134,.3); background: linear-gradient(130deg, rgba(36,54,40,.5), #191919 65%); }
.client-portal-report-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.client-portal-report-card header strong { font-size: 13px; }
.client-portal-report-card header span { color: var(--orange); font-size: 10px; font-weight: 900; }
.client-portal-report-weight { margin: 10px 0 5px; color: white; font-size: 15px; font-weight: 900; }
.client-portal-report-measures, .client-portal-report-ratings, .client-portal-report-note { margin: 4px 0; color: #c7c7c7; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.client-portal-report-card small { display: block; margin-top: 8px; color: #929292; font-size: 9px; }
.client-portal-history h3 { margin: 4px 0 0; font-size: 15px; }
.home-managed-plan { margin: 0 0 13px; padding: 17px; border: 1px solid rgba(255,106,0,.48); border-radius: 10px; background: #111; box-shadow: 0 0 20px rgba(255,106,0,.08); }
.home-managed-plan[hidden] { display: none; }
.home-managed-plan > .eyebrow { margin: 0 0 6px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.home-managed-plan h2 { margin: 0 0 7px; font-size: clamp(16px, 3.4vw, 20px); }
.home-managed-plan > p:not(.eyebrow) { margin: 0; color: #c7c7c7; font-size: 12px; line-height: 1.5; }
.home-managed-plan-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.home-managed-plan-values span { min-width: 0; display: grid; gap: 4px; padding: 9px; border: 1px solid #343434; border-radius: 7px; background: #191919; }
.home-managed-plan-values small { color: #aaa; font-size: 10px; }
.home-managed-plan-values strong { color: var(--orange); font-size: clamp(12px, 3vw, 16px); overflow-wrap: anywhere; }
.home-managed-plan-values i { font-style: normal; }
.home-managed-plan .home-managed-plan-footnote { font-size: 10px; }
.client-portal-admin-tools { display: grid; gap: 9px; }
.client-portal-admin-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.client-portal-admin-actions button { min-height: 34px; border: 1px solid #484848; border-radius: 6px; padding: 0 10px; background: #111; color: #eee; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.client-portal-admin-actions button[data-client-portal-action="delete-report"], .client-portal-admin-actions button[data-client-portal-action="remove-member"] { border-color: rgba(255,112,103,.38); color: #ffaaa0; }
.client-portal-admin-form { display: grid; gap: 10px; }
.client-portal-admin-form h3 { margin: 0; }
.client-portal-admin-feedback { margin: 0; color: #aaa; font-size: 12px; line-height: 1.45; }
.client-portal-admin-feedback.error { color: #ffaaa0; }
.client-portal-admin-feedback.success { color: var(--success); }
.client-portal-admin-feedback[hidden] { display: none; }
.client-portal-admin-plan-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.client-portal-admin-plan-fields .client-portal-field input { min-height: 40px; }
.client-portal-report-card .client-portal-member-state.sent { text-shadow: 0 0 10px rgba(112,199,134,.34); }
.client-portal-admin-report-edit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.managed-monday-dialog { width: min(100%, 560px); }
.managed-monday-dialog h2 { margin: 4px 0 12px; }
.managed-monday-dialog p:not(.eyebrow) { color: #d0d0d0; font-size: 13px; line-height: 1.55; }
.profile-steps-card { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.profile-steps-card > div { flex: 1; display: grid; gap: 4px; }
.profile-steps-card b { font-size: 12px; }
.profile-steps-card small { color: #888; font-size: 10px; }
.profile-steps-card > strong { color: var(--orange); font-size: 20px; }
.profile-feature-card { padding: 14px; }
.profile-feature-card .profile-section-title { align-items: flex-start; }
.profile-feature-card .profile-section-title > div { min-width: 0; flex: 1; }
.profile-memory-list { display: grid; gap: 8px; margin-top: 12px; }
.profile-memory-list > .empty-history { margin: 0; color: #888; font-size: 10px; }
.profile-memory-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #141414; }
.profile-memory-row > div:first-child { min-width: 0; display: grid; gap: 5px; }
.profile-memory-row strong { font-size: 11px; line-height: 1.45; }
.profile-memory-row small { color: #878787; font-size: 9px; }
.profile-memory-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.profile-memory-actions button { min-height: 32px; border: 1px solid #444; border-radius: 6px; padding: 0 9px; background: #202020; color: #ddd; cursor: pointer; font-size: 9px; font-weight: 800; }
.profile-memory-actions button:first-child[data-memory-action="confirm"] { border-color: rgba(255,106,0,.45); color: var(--orange); }
.profile-memory-actions button:disabled { opacity: .5; }
.profile-native-settings { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-native-settings > span { flex: 0 0 auto; color: #999; font-size: 10px; }
.profile-privacy-card > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-privacy-card a { min-height: 36px; display: inline-flex; align-items: center; border: 1px solid #414141; border-radius: 7px; padding: 0 11px; color: var(--orange); font-size: 10px; font-weight: 800; text-decoration: none; }
.profile-setup-panel { margin-top: 18px; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(255,106,0,.48); border-radius: 16px; background: linear-gradient(145deg, #21170f, #181818 42%); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.profile-setup-form { display: grid; gap: 14px; margin-top: 22px; }
.profile-setup-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line-soft); border-radius: 11px; padding: 17px; background: rgba(13,13,13,.56); }
.profile-setup-form legend { padding: 0 8px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.profile-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.profile-setup-grid label { display: grid; gap: 7px; color: #aaa; font-size: 11px; font-weight: 750; }
.profile-setup-grid input, .profile-setup-grid select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #404040; border-radius: 8px; padding: 0 13px; background: #111; color: #f4f4f4; outline: none; color-scheme: dark; }
.profile-setup-grid input:focus, .profile-setup-grid select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.11); }
.profile-setup-grid input:disabled, .profile-setup-grid select:disabled { opacity: .55; }
.profile-setup-consent { display: flex; align-items: flex-start; gap: 10px; padding: 15px 17px; border: 1px solid #383838; border-radius: 10px; background: #131313; color: #c6c6c6; font-size: 11px; line-height: 1.6; }
.profile-setup-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); }
.profile-setup-consent a { color: var(--orange); }
.profile-setup-submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px; border: 1px solid rgba(255,106,0,.3); border-radius: 11px; background: rgba(255,106,0,.055); }
.profile-setup-submit > div { display: grid; gap: 5px; }
.profile-setup-submit strong { font-size: 13px; }
.profile-setup-submit span { color: #858585; font-size: 10px; line-height: 1.5; }
.profile-setup-submit button { flex: 0 0 auto; }
.profile-setup-status { min-height: 18px; margin: 0; color: #8b8b8b; font-size: 11px; line-height: 1.55; }
.profile-setup-status.success { color: var(--success); }
.profile-setup-status.error { color: var(--error); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: clamp(22px, 4vw, 30px); border: 1px solid rgba(255,106,0,.38); border-radius: 14px; background: linear-gradient(135deg, #191919, #25150d); }
.danger-zone > div { max-width: 780px; }
.danger-zone h3 { margin: 7px 0 10px; font-size: 24px; }
.danger-zone p:not(.eyebrow) { margin: 0; color: #aaa; font-size: 12px; line-height: 1.65; }
.danger-zone .danger-zone-retained { margin-top: 8px; color: #d6d6d6; }
.danger-button, .dialog-danger-button, .dialog-secondary-button { min-height: 46px; border-radius: 9px; padding: 0 17px; cursor: pointer; font-weight: 850; }
.danger-button { flex: 0 0 auto; border: 1px solid var(--orange); background: transparent; color: var(--orange); }
.danger-button:hover { background: var(--orange-soft); }
.profile-delete-account-zone { border-color: rgba(255,90,90,.4); background: linear-gradient(135deg, #191919, #251010); }
.profile-delete-account-zone .eyebrow, .profile-delete-account-zone h3 { color: #ff8a80; }
.danger-zone .delete-account-retained { margin-top: 8px; color: #d6d6d6; }
.delete-account-button { flex: 0 0 auto; min-height: 46px; border: 1px solid rgba(255,90,90,.7); border-radius: 9px; padding: 0 17px; background: #351717; color: #ff9c95; cursor: pointer; font-weight: 850; }
.delete-account-button:hover { background: #4a1b1b; }
.profile-reset-result { min-height: 0; }
.profile-reset-result:not(:empty) { margin-top: 12px !important; color: var(--success) !important; font-weight: 750; }
.profile-reset-result.error { color: var(--error) !important; }
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.confirm-dialog { width: min(100%, 560px); padding: clamp(24px, 5vw, 38px); border: 1px solid rgba(255,106,0,.48); border-radius: 16px; background: #171717; box-shadow: 0 24px 80px rgba(0,0,0,.58); }
.confirm-dialog h2 { margin: 8px 0 13px; font-size: clamp(30px, 6vw, 42px); letter-spacing: -.035em; }
.confirm-dialog > p:not(.eyebrow) { margin: 0; color: #b4b4b4; font-size: 13px; line-height: 1.7; }
.reset-retained-note { display: grid; gap: 5px; margin-top: 18px; padding: 14px 16px; border: 1px solid #383838; border-radius: 10px; background: #121212; }
.reset-retained-note strong { color: var(--success); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.reset-retained-note span { color: #aaa; font-size: 11px; line-height: 1.55; }
.delete-account-dialog { border-color: rgba(255,90,90,.55); }
.delete-account-dialog > .eyebrow { color: #ff8a80; }
.delete-account-warning { display: grid; gap: 5px; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,90,90,.28); border-radius: 10px; background: rgba(100,20,20,.15); }
.delete-account-warning strong { color: #ffaaa4; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.delete-account-warning span { color: #c4b0b0; font-size: 11px; line-height: 1.55; }
.delete-account-understand { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 15px; border: 1px solid #383838; border-radius: 9px; background: #121212; color: #d0d0d0; font-size: 11px; line-height: 1.55; }
.delete-account-understand input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #e84a4a; }
.delete-account-status { min-height: 18px; margin: 10px 0 0 !important; color: var(--error) !important; font-size: 11px !important; }
.delete-account-status.success { color: var(--success) !important; }
.delete-account-dialog .dialog-danger-button { background: #e84a4a; color: white; }
.delete-account-dialog .dialog-danger-button:not(:disabled):hover { background: #f05c5c; }
.reset-confirm-field { display: grid; gap: 9px; margin-top: 22px; color: #d7d7d7; font-size: 12px; }
.reset-confirm-field input { width: 100%; min-height: 50px; border: 1px solid #454545; border-radius: 9px; padding: 0 14px; background: #101010; color: white; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; outline: none; }
.reset-confirm-field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.profile-reset-status { min-height: 18px; margin: 10px 0 0 !important; color: var(--error) !important; font-size: 11px !important; }
.profile-reset-status.success { color: var(--success) !important; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.dialog-secondary-button { border: 1px solid #444; background: #202020; color: #ddd; }
.dialog-danger-button { border: 0; background: var(--orange); color: #111; }
.dialog-danger-button:disabled, .dialog-secondary-button:disabled { cursor: wait; opacity: .48; }
.dialog-danger-button:not(:disabled):hover { background: var(--orange-strong); }
body.modal-open { overflow: hidden; }
.profile-completion-backdrop { place-items: start center; padding: max(10px, env(safe-area-inset-top)) 12px; }
.profile-completion-dialog { position: relative; width: min(100%, 860px); max-height: calc(100dvh - 20px); overflow-y: auto; padding: clamp(18px, 4vw, 30px); border: 1px solid rgba(255,106,0,.5); border-radius: 14px; background: linear-gradient(145deg, #1e1a17, #111 58%); box-shadow: 0 24px 80px rgba(0,0,0,.65); }
.profile-completion-close { position: absolute; top: 11px; right: 12px; width: 36px; height: 36px; border: 1px solid #444; border-radius: 50%; background: #1d1d1d; color: #ddd; font-size: 23px; cursor: pointer; }
.profile-completion-dialog > .eyebrow { margin: 0 42px 5px 0; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.profile-completion-dialog > h2 { margin: 0 42px 5px 0; color: white; font-size: clamp(25px, 5vw, 34px); }
.profile-completion-intro { margin: 0 0 14px; color: #b7b7b7; font-size: 12px; line-height: 1.5; }
.profile-completion-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(30,30,30,.94); }
.profile-completion-plan > strong { grid-column: 1 / -1; color: var(--orange); font-size: 28px; }
.profile-completion-plan > div { display: grid; gap: 4px; padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: #171717; }
.profile-completion-plan > div span, .profile-completion-plan > small { color: #929292; font-size: 9px; }
.profile-completion-plan > div b { color: #f0f0f0; font-size: 12px; }
.profile-completion-plan > small { grid-column: 1 / -1; }
.profile-completion-generation-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(255,106,0,.45); border-radius: 9px; background: linear-gradient(110deg, rgba(255,106,0,.13), rgba(22,22,22,.96) 54%); }
.profile-completion-generation-summary h3 { grid-column: 1 / -1; margin: 0; color: var(--orange); font-size: 12px; }
.profile-completion-generation-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(12,12,12,.8); }
.profile-completion-generation-summary > div span { color: #c3c3c3; font-size: 10px; }
.profile-completion-generation-summary > div strong { color: #fff; font-size: 17px; font-weight: 900; white-space: nowrap; }
.profile-completion-generation-summary > p { grid-column: 1 / -1; margin: 0; color: #999; font-size: 10px; line-height: 1.4; }
.profile-completion-trial { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(102,187,106,.55); border-radius: 9px; background: rgba(39,89,43,.16); }
.profile-completion-trial strong { color: #9be29e; font-size: 12px; }
.profile-completion-trial p { margin: 5px 0 0; color: #c8c8c8; font-size: 11px; line-height: 1.5; }
.profile-completion-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.profile-completion-tier { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(24,24,24,.96); }
.profile-completion-pro { border-color: rgba(255,106,0,.45); }
.profile-completion-tier > .eyebrow { margin: 0 0 4px; color: var(--orange); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.profile-completion-free > .eyebrow { color: #74d279; }
.profile-completion-tier h3 { margin: 0 0 8px; font-size: 15px; }
.profile-completion-tier ul { display: grid; gap: 5px; margin: 0; padding-left: 17px; color: #d4d4d4; font-size: 10px; line-height: 1.4; }
.profile-completion-quotas { margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(13,13,13,.92); }
.profile-completion-quotas h3 { margin: 0; font-size: 13px; }
.profile-completion-quota-note { margin: 5px 0 8px; color: #999; font-size: 10px; line-height: 1.45; }
.profile-completion-quotas dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.profile-completion-quotas dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 6px; background: #171717; }
.profile-completion-quotas dt, .profile-completion-quotas dd { margin: 0; font-size: 9px; }
.profile-completion-quotas dt { color: #aaa; }
.profile-completion-quotas dd { color: var(--orange); font-weight: 850; text-align: right; }
.profile-completion-dialog .profile-pro-offer { grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr); margin-top: 10px; }
.profile-completion-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.profile-completion-actions button { min-height: 42px; padding: 0 14px; border-radius: 7px; font-size: 10px; font-weight: 900; cursor: pointer; }

@media (max-width: 980px) {
    :root { --sidebar-width: 208px; }
    .auth-layout { grid-template-columns: minmax(360px, .9fr) minmax(400px, 1.1fr); }
    .auth-visual { padding: 38px; }
    .auth-copy h1 { font-size: 52px; }
    .nav-item { padding-inline: 9px; }
    .nav-item small { display: none; }
    .status-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .progress-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fridge-layout { grid-template-columns: 1fr; }
    .community-layout { grid-template-columns: 1fr; }
    .home-tool-grid, .safety-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .auth-layout { display: block; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100svh; padding: 28px 20px; }
    .auth-panel-inner { width: min(100%, 480px); }
    .auth-top-row { margin-bottom: 26px; }
    .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 46px; color: white; font-size: 17px; }
    .mobile-brand img { border-radius: 11px; }
    .mobile-brand strong { color: var(--orange); }
    .app-shell { display: block; padding-bottom: 74px; }
    .app-shell.client-portal-route-active { padding-bottom: 0; }
    .app-shell.client-portal-route-active .sidebar { display: none; }
    .app-shell.client-portal-route-active .app-workspace { min-height: 100svh; }
    .app-shell.client-portal-route-active .route-content { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 74px; display: block; padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); border-right: 0; background: rgba(10,10,10,.97); backdrop-filter: blur(14px); }
    .sidebar-brand, .environment-pill, .sidebar-footer { display: none; }
    .main-nav { width: 100%; min-width: 0; height: 62px; display: flex; justify-content: space-between; gap: 0; overflow: hidden; padding: 0; }
    .nav-item { min-width: 0; flex: 1 1 0; min-height: 60px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 4px 1px; text-align: center; }
    .nav-item.active::before { inset: 0 auto auto 50%; width: 24px; height: 3px; transform: translateX(-50%); border-radius: 0 0 3px 3px; }
    .nav-item svg { width: 20px; height: 20px; }
    .nav-item span { max-width: 100%; overflow: hidden; font-size: clamp(7px, 2vw, 9px); white-space: nowrap; }
    .nav-item small { display: none; }
    .app-workspace { height: auto; min-height: calc(100vh - 74px); overflow: visible; }
    .app-header { min-height: 70px; padding: 14px 18px; }
    .app-shell.home-route-active .app-header { display: none; }
    .app-shell.fridge-route-active .app-header { min-height: 54px; display: flex; justify-content: space-between; gap: 10px; padding: 7px 14px; }
    .app-shell.fridge-route-active .app-header-copy, .app-shell.fridge-route-active .connection-status { display: none; }
    .app-shell.fridge-route-active .back-home-button { min-height: 38px; }
    .app-kicker { display: none; }
    .app-header h1 { font-size: 21px; }
    .connection-status { display: none; }
    .header-actions { gap: 7px; }
    .language-switcher-header { gap: 2px; padding: 3px; }
    .language-switcher-header .language-switch-button { width: 27px; height: 25px; padding: 2px; }
    .language-switcher-header .language-switch-button svg { width: 21px; height: 14px; }
    .header-logout { min-height: 36px; padding: 0 10px; font-size: 10px; }
    .header-logout svg { width: 15px; height: 15px; }
    .website-home-link { width: 36px; height: 36px; }
    .route-content { padding: 20px 14px 28px; }
    .app-shell.home-route-active .route-content { padding: 6px 12px 22px; }
    .app-shell.meals-route-active .route-content { padding: 10px 10px 22px; }
    .app-shell.fridge-route-active .route-content { padding: 9px 10px 22px; }
    .coach-app-page #coach-ai-panel .coach-form { position: sticky; bottom: 74px; z-index: 4; background: rgba(18,18,18,.97); backdrop-filter: blur(12px); }
    .home-brand-header { min-height: 86px; padding-top: 4px; }
    .home-brand-lockup img { width: min(230px, 61vw); }
    .home-brand-meta .home-language-switcher { display: inline-flex !important; gap: 2px; padding: 3px; }
    .home-brand-meta .home-language-switcher .language-switch-button { width: 27px; height: 25px; padding: 2px; border: 1px solid transparent; }
    .home-brand-meta .home-language-switcher .language-switch-button.active,
    .home-brand-meta .home-language-switcher .language-switch-button[aria-pressed="true"] { border-color: rgba(255,106,0,.82); }
    .home-brand-meta .home-language-switcher .language-switch-button svg { width: 21px; height: 14px; stroke-width: inherit; }
    .home-brand-meta > span { font-size: 8px; }
    .home-brand-meta time { font-size: 9px; }
    .home-brand-meta button { width: 29px; height: 29px; }
    .home-brand-meta .website-home-link { width: 29px; height: 29px; }
    .home-brand-meta svg { width: 20px; height: 20px; }
    .home-today-heading h2 { font-size: 25px; }
    .home-today-heading > p { max-width: 70%; font-size: 7.5px; }
    .today-summary-card { padding: 8px; }
    .home-macro-grid { gap: 5px; }
    .home-macro-grid article { padding: 6px 5px; }
    .home-tool-panel .tool-form { padding: 16px 13px; }
    .home-safety-card .tool-form { padding: 16px 13px; }
    .welcome-card { min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 22px; }
    .dashboard-grid, .macro-grid, .profile-data-grid { grid-template-columns: 1fr; }
    .progress-hero { min-height: 230px; flex-direction: column; align-items: flex-start; }
    .feature-hero { min-height: 300px; flex-direction: column; align-items: flex-start; padding: 32px 22px; }
    .feature-hero > svg { width: 78px; height: 78px; flex-basis: 78px; padding: 18px; border-radius: 20px; }
    .fridge-macros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fridge-app-page .module-phone-header h2 { font-size: 22px; }
    .fridge-app-page .module-phone-header p:not(.eyebrow) { font-size: 10px; line-height: 1.2; }
    .fridge-app-page .module-segmented { min-height: 46px; }
    .fridge-app-page .module-segmented button { font-size: 13px; }
    .fridge-app-page .fridge-target-card { min-height: 82px; padding: 11px; }
    .fridge-app-page .target-main strong { font-size: 25px; }
    .fridge-app-page .target-main span, .fridge-app-page .target-progress span { font-size: 11px; }
    .fridge-showcase { aspect-ratio: 1.43; }
    .fridge-category-tag { width: 30%; min-height: 34px; padding: 4px 5px; font-size: 8px; }
    .fridge-category-tag svg { flex-basis: 16px; width: 16px; height: 16px; }
    .fridge-app-page .assistant-message-content > p { font-size: 13px; }
    .coach-topline { flex-direction: column; gap: 5px; }
    .coach-message { max-width: 94%; }
    .community-hero { min-height: 260px; flex-direction: column; align-items: flex-start; }
    .progress-summary-grid, .history-grid { grid-template-columns: 1fr; }
    .weight-progress-card { grid-template-columns: 1fr; gap: 12px; }
    .weight-progress-card > span { text-align: left; }
    .health-consent-panel { align-items: stretch; flex-direction: column; }
    .health-consent-panel > button { width: 100%; }
    .measurement-fields, .allergen-grid, .event-weight-fields { grid-template-columns: 1fr; }
    .meal-plan-access { align-items: flex-start; flex-direction: column; }
    .meal-plan-panel { padding: 15px 12px; }
    .meal-day-tabs { margin-bottom: 0; }
    .meal-plan-card-top { align-items: flex-start; }
    .meal-plan-log { max-width: 58%; }
    .meal-plan-macro-pill { flex-direction: column; gap: 2px; }
    .meal-plan-card-actions { align-items: flex-start; }
    .meal-week-status { align-items: flex-start; flex-direction: column; gap: 4px; }
    .preference-food-row { grid-template-columns: 1fr repeat(3, auto); gap: 6px; }
    .preference-food-row > strong { grid-column: 1 / -1; }
    .phase-chip { align-items: flex-start; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 10px; text-align: left; }
    .module-grid { grid-template-columns: 1fr; }
    .placeholder-hero { min-height: 380px; display: flex; flex-direction: column; align-items: flex-start; padding: 32px 22px; }
    .placeholder-hero > svg { width: 78px; height: 78px; flex-basis: 78px; padding: 18px; border-radius: 20px; }
    .placeholder-hero h2 { font-size: 42px; }
    .capability-list > div { align-items: flex-start; flex-direction: column; gap: 6px; }
    .capability-list span { text-align: left; }
    .profile-card { align-items: center; flex-direction: row; }
    .profile-card .profile-admin-badge { margin-left: auto; }
    .admin-portal-actions { gap: 6px; }
    .admin-portal-actions button { flex-basis: calc(50% - 3px); padding-inline: 9px; font-size: 10px; }
    .admin-user-activity-dates { grid-template-columns: 1fr; gap: 5px; }
    .admin-user-activity-dates > div { grid-template-columns: minmax(100px, .7fr) minmax(0, 1fr); align-items: baseline; gap: 8px; }
    .profile-access-card { flex-wrap: wrap; }
    .profile-access-card > div { flex-basis: calc(100% - 60px); }
    .profile-access-link { margin-left: 56px; }
    .profile-pro-offer { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
    .profile-pro-payment { grid-template-columns: minmax(100px, 140px) minmax(0, 1fr); justify-content: center; max-width: 420px; margin-inline: auto; }
    .profile-pro-qr { max-width: 140px; }
    .profile-completion-dialog { max-height: calc(100dvh - 12px); padding: 16px 12px; border-radius: 11px; }
    .profile-completion-tiers { grid-template-columns: 1fr; }
    .profile-completion-generation-summary { grid-template-columns: 1fr 1fr; padding: 10px; }
    .profile-completion-quotas dl { grid-template-columns: 1fr; }
    .profile-completion-dialog .profile-pro-offer { grid-template-columns: 1fr; }
    .profile-completion-dialog .profile-pro-payment { grid-template-columns: minmax(100px, 132px) minmax(0, 1fr); }
    .profile-completion-actions button { width: 100%; }
    .profile-native-settings { align-items: flex-start; }
    .profile-memory-row { align-items: flex-start; flex-direction: column; }
    .profile-memory-actions { width: 100%; }
    .profile-memory-actions button { flex: 1; }
    .profile-card > #profile-avatar { width: 76px; height: 76px; flex-basis: 76px; font-size: 28px; }
    .profile-card > .profile-admin-badge { flex: 0 0 auto; width: auto; height: auto; font-size: 10px; white-space: nowrap; }
    .profile-setup-grid { grid-template-columns: 1fr; }
    .profile-setup-submit { align-items: stretch; flex-direction: column; }
    .profile-setup-submit button { width: 100%; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .danger-button { width: 100%; }
    .delete-account-button { width: 100%; }
    .confirm-dialog-actions { flex-direction: column-reverse; }
    .confirm-dialog-actions button { width: 100%; }
}

@media (max-width: 390px) {
    .home-managed-plan-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-portal-admin-plan-fields { grid-template-columns: minmax(0, 1fr); }
    .auth-panel { padding-inline: 15px; }
    .auth-top-row { gap: 10px; }
    .auth-top-row .language-switcher { gap: 2px; padding: 3px; }
    .auth-top-row .language-switch-button { width: 27px; height: 25px; padding: 2px; }
    .auth-top-row .language-switch-button svg { width: 21px; height: 14px; }
    .app-header { gap: 8px; padding-inline: 12px; }
    .app-header-title-row { gap: 8px; }
    .header-logout { width: 36px; padding: 0; justify-content: center; }
    .header-logout span { display: none; }
    .auth-heading h2 { font-size: 34px; }
    .mobile-brand { margin-bottom: 36px; }
    .nav-item { flex-basis: 68px; }
    .home-brand-header { gap: 8px; }
    .home-brand-lockup img { width: min(215px, 61vw); }
    .home-brand-meta > span { display: none; }
    .today-summary-top strong { font-size: 12px; }
    .today-calories strong { font-size: 34px; }
    .home-macro-grid p { font-size: 8px; }
    .home-macro-grid strong { font-size: 9px; }
    .home-quick-actions button { font-size: 11px; }
    .home-weight-main > div:first-child > strong { font-size: 23px; }
    .home-wellness-tabs { gap: 5px; }
    .home-wellness-tabs button { min-height: 56px; }
    .meal-plan-card-top h4 { font-size: 17px; }
    .meal-plan-log { max-width: 62%; padding-inline: 8px; font-size: 8px; }
    .meal-plan-meal-macros { font-size: 8px; }
    .module-grid button { grid-template-columns: 42px 1fr auto; padding: 15px; }
}

.app-shell.progress-route-active .app-workspace { background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.78)), url("./assets/android-home-background.jpg") center top / cover fixed no-repeat; }
.progress-section-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.progress-section-nav button, .challenge-section-tabs button { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #494949; border-radius: 8px; padding: 8px 10px; background: rgba(36,36,36,.94); color: #ddd; cursor: pointer; font-size: 11px; font-weight: 800; }
.progress-section-nav button.active, .challenge-section-tabs button.active { border-color: #ff995b; background: var(--orange); color: #fff; }
.progress-section-nav svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress-tab-view[hidden], .progress-detail-view[hidden] { display: none; }
.progress-tab-view { animation: page-in .2s ease-out; }
.progress-detail-view { margin-top: 2px; animation: page-in .2s ease-out; }
.progress-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(19,19,19,.9); }
.progress-detail-header > div { min-width: 0; }
.progress-detail-header .eyebrow { margin: 0 0 4px; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.progress-detail-header h2 { margin: 0 0 3px; font-size: 20px; }
.progress-detail-header p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.progress-detail-current { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.progress-detail-stat { min-height: 84px; display: grid; align-content: center; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(24,24,24,.94); }
.progress-detail-stat small { color: #aaa; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.progress-detail-stat b { color: var(--orange); font-size: 20px; }
.progress-detail-chart { display: grid; gap: 6px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(24,24,24,.94); }
.progress-chart-row { display: grid; grid-template-columns: minmax(78px, .5fr) minmax(60px, 1fr) minmax(65px, .45fr); align-items: center; gap: 10px; min-height: 28px; color: #aaa; font-size: 10px; }
.progress-chart-row > b { color: #eee; text-align: right; }
.progress-chart-track { height: 7px; overflow: hidden; border-radius: 99px; background: #353535; }
.progress-chart-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6a00, #ffad53); }
.progress-entry-card { margin-bottom: 12px; padding: 16px; border: 1px solid rgba(255,106,0,.45); border-radius: 10px; background: rgba(21,21,21,.95); }
.progress-entry-card h3 { margin: 0 0 12px; font-size: 15px; }
.progress-entry-card .tool-form { display: grid; gap: 10px; }
.progress-entry-card .tool-form label { display: grid; gap: 6px; color: #ccc; font-size: 11px; font-weight: 700; }
.progress-entry-card .tool-form input { min-height: 42px; border: 1px solid #414141; border-radius: 7px; padding: 0 11px; background: #101010; color: #fff; }
.progress-entry-card .tool-form input:focus { border-color: var(--orange); outline: 2px solid rgba(255,106,0,.18); }
.checkin-prompt { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.progress-entry-card .tool-form .checkin-options { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.progress-entry-card .tool-form .checkin-option { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #151515; color: #eee; font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; cursor: pointer; }
.progress-entry-card .tool-form .checkin-option.checkin-score-5 { --checkin-score-color: #5fbe70; }
.progress-entry-card .tool-form .checkin-option.checkin-score-4 { --checkin-score-color: #85b94f; }
.progress-entry-card .tool-form .checkin-option.checkin-score-3 { --checkin-score-color: #e0a229; }
.progress-entry-card .tool-form .checkin-option.checkin-score-2 { --checkin-score-color: #e07832; }
.progress-entry-card .tool-form .checkin-option.checkin-score-1 { --checkin-score-color: #e05c5c; }
.progress-entry-card .tool-form .checkin-option:has(input:checked) { border-color: var(--checkin-score-color); background: rgba(255,106,0,.08); color: var(--checkin-score-color); }
.progress-entry-card .tool-form .checkin-option input[type="radio"] { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; accent-color: var(--checkin-score-color, var(--orange)); flex: 0 0 auto; }
.checkin-history-heading { margin: 0; font-size: 15px; }
.checkin-history-filters { display: flex; gap: 8px; }
.checkin-history-filter { min-height: 36px; padding: 0 16px; border: 1px solid #414141; border-radius: 7px; background: #151515; color: #bbb; font-weight: 700; cursor: pointer; }
.checkin-history-filter.active { border-color: var(--orange); background: var(--orange); color: #111; }
.checkin-history-average { margin: 0; color: var(--muted); font-size: 12px; }
.checkin-history-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 39px; padding: 8px 0; border-top: 1px solid var(--line-soft); color: #aaa; font-size: 12px; }
.checkin-history-row > b { text-align: right; }
.checkin-history-score.checkin-score-5 { color: #5fbe70; }
.checkin-history-score.checkin-score-4 { color: #85b94f; }
.checkin-history-score.checkin-score-3 { color: #e0a229; }
.checkin-history-score.checkin-score-2 { color: #e07832; }
.checkin-history-score.checkin-score-1 { color: #e05c5c; }
.progress-health-consent { margin-top: 12px; background: rgba(22,22,22,.96); }
.community-rules-form { margin: 12px 0; padding: 16px; border: 1px solid rgba(255,106,0,.42); border-radius: 10px; background: rgba(20,20,20,.95); }
.community-rules-form h3 { margin: 4px 0 8px; }
.community-rules-form > p:not(.eyebrow):not(.tool-status) { color: var(--muted); font-size: 11px; line-height: 1.6; }
.community-rules-form > label:not(.community-rules-check) { display: grid; gap: 6px; margin: 12px 0; color: #ccc; font-size: 11px; font-weight: 700; }
.community-rules-form input[type="text"] { min-height: 42px; border: 1px solid #414141; border-radius: 7px; padding: 0 11px; background: #101010; color: #fff; }
.community-rules-check { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; color: #bbb; font-size: 10px; line-height: 1.5; }
.community-rules-check input { margin-top: 2px; accent-color: var(--orange); }
.progress-tab-view[data-progress-section-view="community"] .community-hero { min-height: 132px; align-items: center; padding: 20px; border-radius: 11px; }
.progress-tab-view[data-progress-section-view="community"] .community-hero h2 { margin: 5px 0 7px; font-size: clamp(25px, 3.5vw, 34px); letter-spacing: -.03em; }
.challenge-section-hero { margin-top: 2px; }
.progress-tab-view { min-width: 0; }
.challenge-section-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.challenge-section-tabs button { min-height: 38px; }
.challenge-card { background: rgba(23,23,23,.96); }
.challenge-day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0; padding: 4px 1px 8px; }
.challenge-day-strip button { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #555; border-radius: 7px; background: #242424; color: #ddd; cursor: pointer; font-weight: 800; }
.challenge-day-strip button.active { border-color: var(--orange); color: var(--orange); }
.challenge-day-strip button.completed { border-color: #63d297; color: #63d297; }
.challenge-day-strip button:disabled { opacity: .55; cursor: default; }
.challenge-day-navigation { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; margin: 8px 0 2px; text-align: center; }
.challenge-day-navigation span { color: #aaa; font-size: 10px; font-weight: 800; }
.challenge-day-navigation button { min-width: 0; min-height: 36px; border: 1px solid #484848; border-radius: 7px; background: #242424; color: var(--orange); cursor: pointer; font-size: 20px; line-height: 1; }
.challenge-day-navigation button:disabled { color: #666; opacity: .5; cursor: default; }
.challenge-day-detail { min-width: 0; margin: 5px 0 2px; padding: 12px; border: 1px solid #414141; border-radius: 8px; background: #141414; }
.challenge-day-detail h5 { margin: 0 0 6px; font-size: 13px; }
.challenge-day-detail p, .challenge-day-detail small { color: #aaa; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.challenge-day-detail button { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 8px; padding: 10px 12px; border: 0; border-radius: 7px; background: var(--orange); color: #111; cursor: pointer; font-weight: 900; white-space: normal; }
.challenge-day-detail button:disabled { opacity: .55; cursor: default; }
.weekly-update-content { display: grid; gap: 12px; min-width: 0; }
.weekly-update-content[hidden] { display: none; }
.weekly-update-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(24,24,24,.95); }
.weekly-update-card h3 { margin: 0 0 12px; color: var(--orange); font-size: 18px; }
.weekly-update-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.weekly-update-card p:last-child { margin-bottom: 0; }
.weekly-update-alert { border-color: rgba(255,106,0,.48); background: rgba(58,36,24,.88); }
.weekly-update-alert h3 { color: var(--orange-strong); }
.weekly-update-current { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.weekly-update-current > div { min-width: 0; padding: 12px; border: 1px solid #393939; border-radius: 8px; background: #141414; }
.weekly-update-current small, .weekly-update-current strong { display: block; }
.weekly-update-current small { margin-bottom: 5px; color: #aaa; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.weekly-update-current strong { color: var(--orange); font-size: 18px; overflow-wrap: anywhere; }
.weekly-update-form { display: grid; gap: 12px; }
.weekly-update-form fieldset { min-width: 0; margin: 0; border: 1px solid #414141; border-radius: 8px; padding: 14px; background: rgba(14,14,14,.78); }
.weekly-update-form legend { padding: 0 7px; color: var(--orange); font-size: 14px; font-weight: 850; }
.weekly-update-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weekly-update-form label { min-width: 0; display: grid; gap: 6px; color: #ccc; font-size: 11px; font-weight: 700; }
.weekly-update-form input:not([type="range"]), .weekly-update-form select, .weekly-update-form textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #414141; border-radius: 7px; padding: 9px 11px; background: #101010; color: #fff; color-scheme: dark; }
.weekly-update-form textarea { min-height: 76px; resize: vertical; }
.weekly-update-form input[type="range"] { width: 100%; accent-color: var(--orange); }
.weekly-choice-field { display: grid; gap: 7px; margin-bottom: 12px; }
.weekly-field-label { color: #ccc; font-size: 11px; font-weight: 700; }
.weekly-choice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.weekly-choice-options[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weekly-choice-options[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weekly-choice-options button { min-width: 0; min-height: 42px; border: 1px solid #484848; border-radius: 7px; padding: 6px; background: #222; color: #ddd; cursor: pointer; font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.weekly-choice-options button.active { border-color: var(--orange); background: var(--orange-soft); color: #fff; }
.weekly-choice-field[hidden] { display: none; }
.weekly-range-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; }
.weekly-range-field input { grid-column: 1 / -1; }
.weekly-range-field output { color: var(--orange); font-size: 14px; font-weight: 850; }
.weekly-update-submit { width: 100%; min-height: 52px; white-space: normal; }
.weekly-update-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.weekly-update-status.success { color: var(--success); }
.weekly-update-status.error { color: var(--error); }
.achievement-list { display: grid; gap: 7px; }
.achievement-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(23,23,23,.96); }
.achievement-row > span { color: var(--orange); font-size: 20px; }
.achievement-row div { display: grid; gap: 3px; flex: 1; }
.achievement-row small { color: #999; font-size: 10px; }
.achievement-row.locked { opacity: .55; }

/* Home return affordance and Android-style first-run profile wizard */
.app-header-title-row { min-width: 0; display: flex; align-items: center; gap: 14px; }
.app-header-copy { min-width: 0; }
.back-home-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; border: 1px solid #393939; border-radius: 9px; padding: 0 12px; background: rgba(30,30,30,.88); color: #eee; cursor: pointer; font-size: 11px; font-weight: 800; transition: border-color .18s, color .18s, background .18s; }
.back-home-button:hover { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.back-home-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-home-button[hidden] { display: none; }
.profile-setup-panel { position: relative; isolation: isolate; overflow: hidden; width: min(100%, 780px); min-height: min(680px, calc(100vh - 130px)); margin: 12px auto 24px; padding: clamp(20px, 4vw, 34px); border: 1px solid rgba(255,106,0,.5); border-radius: 15px; background: linear-gradient(180deg, rgba(0,0,0,.79), rgba(0,0,0,.91)), url("./assets/android-home-background.jpg") center 38% / cover; box-shadow: 0 18px 60px rgba(0,0,0,.32); }
.profile-setup-panel[hidden] { display: none; }
.profile-setup-panel::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 50% 0, rgba(255,106,0,.12), transparent 55%); content: ""; pointer-events: none; }
.profile-setup-progress-top { display: flex; align-items: center; gap: 14px; color: #eee; font-size: 11px; font-weight: 850; }
.profile-setup-progress-track { height: 5px; flex: 1; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.17); }
.profile-setup-progress-track i { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: var(--orange); transition: width .25s ease; }
.profile-setup-intro { margin: 28px 0 24px; }
.profile-setup-intro .eyebrow { margin: 0 0 8px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.profile-setup-intro h2 { margin: 0 0 8px; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.04em; }
.profile-setup-intro > p:last-child { max-width: 560px; margin: 0; color: #c4c4c4; font-size: 13px; line-height: 1.6; }
.profile-setup-form { display: grid; gap: 20px; margin-top: 0; }
.profile-setup-step[hidden] { display: none; }
.profile-setup-step fieldset { min-width: 0; margin: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; padding: 17px; background: rgba(10,10,10,.7); }
.profile-setup-step legend { padding: 0 8px; color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.profile-setup-grid { gap: 16px; }
.profile-setup-grid label { color: #d4d4d4; }
.profile-setup-step[data-profile-setup-step="4"] .profile-setup-grid { grid-template-columns: 1fr; }
.profile-setup-native-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.profile-setup-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; width: 100%; }
.profile-setup-options[data-profile-choice-for="setup-goal-type"], .profile-setup-options[data-profile-choice-for="setup-diet"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-setup-options[data-profile-choice-for="setup-sex"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-setup-options[data-profile-choice-for="setup-meals"], .profile-setup-options[data-profile-choice-for="setup-strength-days"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-setup-option { min-width: 0; min-height: 48px; display: grid; align-content: center; justify-items: start; gap: 5px; border: 1px solid rgba(255,255,255,.19); border-radius: 8px; padding: 10px 12px; background: rgba(20,20,20,.9); color: #eee; cursor: pointer; text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.profile-setup-option:hover { border-color: rgba(255,106,0,.7); transform: translateY(-1px); }
.profile-setup-option[aria-checked="true"] { border-color: var(--orange); background: linear-gradient(140deg, rgba(255,106,0,.96), rgba(219,77,0,.92)); color: #111; box-shadow: 0 5px 16px rgba(255,106,0,.15); }
.profile-setup-option strong { font-size: 12px; line-height: 1.35; }
.profile-setup-option small { color: inherit; opacity: .78; font-size: 9px; line-height: 1.4; }
.profile-setup-options[data-profile-choice-for="setup-activity"] .profile-setup-option { min-height: 68px; }
.profile-setup-options[data-profile-choice-for="setup-main-challenge"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-setup-review { padding: 17px; border: 1px solid rgba(255,106,0,.35); border-radius: 10px; background: rgba(12,12,12,.82); }
.profile-setup-review .eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.profile-setup-review h3 { margin: 0 0 5px; font-size: 18px; }
.profile-setup-review > p:not(.eyebrow) { margin: 0 0 13px; color: #aaa; font-size: 11px; }
.profile-setup-review dl { display: grid; gap: 0; margin: 0; }
.profile-setup-review dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.profile-setup-review dt { color: #a5a5a5; font-size: 10px; }
.profile-setup-review dd { margin: 0; color: #fff; font-size: 11px; font-weight: 800; text-align: right; }
.profile-setup-consent { margin-top: 12px; background: rgba(10,10,10,.82); }
.profile-setup-submit { padding: 12px 14px; }
.profile-setup-submit > strong { font-size: 11px; }
.profile-setup-navigation { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.profile-setup-navigation button { min-width: 132px; min-height: 50px; }
.profile-setup-navigation button[hidden] { display: none; }
.profile-setup-navigation #profile-setup-next, .profile-setup-navigation #profile-setup-submit { border: 0; border-radius: 8px; background: var(--orange); color: #111; font-weight: 900; }
.profile-setup-navigation #profile-setup-next:hover:not(:disabled), .profile-setup-navigation #profile-setup-submit:hover:not(:disabled) { background: var(--orange-strong); }
.profile-setup-navigation #profile-setup-submit { min-width: 210px; }
.profile-setup-status { margin: 0; color: #b1b1b1; }
.route-page[data-page="profile"].profile-setup-required > :not(#profile-setup-panel) { display: none !important; }
.route-page[data-page="profile"].profile-setup-required { width: min(100%, 860px); margin: 0 auto; }
.app-shell.profile-onboarding-active .app-header-copy { display: none; }
.app-shell.profile-onboarding-active .app-workspace { background-image: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.9)), url("./assets/android-home-background.jpg"); background-position: center top; background-size: cover; background-attachment: fixed; }
.profile-bootstrap-gate { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(5,5,5,.94); backdrop-filter: blur(12px); }
.profile-bootstrap-gate[hidden] { display: none !important; }
.profile-bootstrap-card { width: min(100%, 440px); display: grid; justify-items: center; gap: 13px; padding: 28px 24px; border: 1px solid rgba(255,106,0,.55); border-radius: 18px; background: linear-gradient(145deg, rgba(35,29,25,.98), rgba(16,16,16,.98)); box-shadow: 0 18px 70px rgba(0,0,0,.6); text-align: center; }
.profile-bootstrap-card h2 { margin: 0; font-size: 22px; }
.profile-bootstrap-card p { margin: 0; color: #c5c5c5; line-height: 1.55; }
.profile-bootstrap-card .tool-primary-button { margin-top: 5px; }
.profile-bootstrap-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,106,0,.22); border-top-color: var(--orange); border-radius: 50%; animation: profile-bootstrap-spin .8s linear infinite; }
.profile-bootstrap-gate[data-state="error"] .profile-bootstrap-spinner { display: none; }
@keyframes profile-bootstrap-spin { to { transform: rotate(360deg); } }

@media (max-width: 380px) {
    .home-brand-header { gap: 8px; }
    .home-brand-lockup img { width: min(175px, 55vw); }
    .home-brand-meta > div { gap: 2px; }
}
.progress-section-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
    .app-shell.progress-route-active .app-workspace { background-attachment: scroll; background-position: center top; }
    .app-shell.coach-route-active .app-workspace { background-attachment: scroll; background-position: center top; }
    .progress-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .progress-section-nav button { min-height: 46px; flex-direction: row; justify-content: center; gap: 6px; padding: 7px 5px; font-size: 10px; text-align: center; }
    .progress-tab-view[data-progress-section-view="community"] .community-hero { min-height: 0; flex-direction: column; align-items: stretch; gap: 11px; padding: 14px; }
    .progress-tab-view[data-progress-section-view="community"] .community-hero h2 { font-size: 24px; }
    .progress-tab-view[data-progress-section-view="community"] .community-stats { gap: 6px; }
    .progress-tab-view[data-progress-section-view="community"] .community-stats span { min-width: 0; flex: 1 1 0; padding: 9px; }
    .progress-tab-view[data-progress-section-view="community"] .community-stats b { font-size: 17px; }
    .progress-hero { min-height: 92px; flex-direction: row; align-items: center; }
    .progress-detail-header { align-items: flex-start; flex-direction: column; }
    .progress-detail-header .tool-secondary-button { width: 100%; }
    .progress-detail-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .progress-tab-view .challenge-section-hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: center; gap: 8px; padding: 14px; }
    .progress-tab-view .challenge-section-hero > div:first-child { min-width: 0; }
    .progress-tab-view .challenge-section-hero h2 { max-width: 100%; margin: 5px 0 8px; font-size: clamp(22px, 6vw, 31px); line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
    .progress-tab-view .challenge-section-hero p:last-child { font-size: 12px; line-height: 1.42; overflow-wrap: anywhere; }
    .progress-tab-view .challenge-section-hero .community-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
    .progress-tab-view .challenge-section-hero .community-stats span { min-width: 0; padding: 9px 7px; overflow-wrap: anywhere; }
    .progress-tab-view .challenge-section-hero .community-stats b { font-size: clamp(15px, 4.4vw, 19px); }
    .community-post-toolbar { gap: 6px; }
    .community-post-toolbar .tool-primary-button { min-height: 36px; padding-inline: 9px; font-size: 10px; }
    .community-compose-form { padding: 14px 12px; }
    .community-compose-actions > button { min-width: 0; flex: 1; padding-inline: 9px; }
    .community-post { padding: 15px 12px; }
    .community-post-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .profile-setup-panel { width: 100%; min-height: calc(100vh - 104px); margin: 0 auto 14px; padding: 18px 15px; border-radius: 12px; background-position: center top; }
    .profile-setup-intro { margin: 22px 0 18px; }
    .profile-setup-step fieldset { padding: 14px 12px; }
    .profile-setup-options[data-profile-choice-for="setup-goal-type"], .profile-setup-options[data-profile-choice-for="setup-diet"], .profile-setup-options[data-profile-choice-for="setup-activity"], .profile-setup-options[data-profile-choice-for="setup-main-challenge"] { grid-template-columns: 1fr; }
    .profile-setup-options[data-profile-choice-for="setup-activity"] .profile-setup-option { min-height: 52px; }
    .profile-setup-options[data-profile-choice-for="setup-strength-days"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .profile-setup-navigation { margin: 0 -4px; padding: 10px 4px; }
    .profile-setup-navigation button { min-width: 0; flex: 1; }
    .profile-setup-navigation #profile-setup-submit { min-width: 0; }
    .weekly-update-card { padding: 15px 12px; }
    .weekly-update-form fieldset { padding: 12px 10px; }
    .weekly-update-fields { grid-template-columns: 1fr; }
    .challenge-card { padding-inline: 12px; }
    .challenge-day-strip { gap: 5px; }
    .challenge-day-strip button { min-height: 38px; }
    .profile-setup-review dl > div { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Meals: stronger section hierarchy, readable daily totals, and clearer controls. */
.meals-screen { gap: 14px; }
.meals-view-selector { border-color: #5a514a; background: linear-gradient(120deg, #181818, #21170f); box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.meals-view-selector button { min-height: 46px; transition: color .16s ease, background .16s ease; }
.meals-view-selector button.active { background: linear-gradient(120deg, rgba(255,106,0,.24), rgba(255,106,0,.08)); box-shadow: inset 0 -2px 0 var(--orange); }
.meals-view-selector button:focus-visible, .meal-day-tabs button:focus-visible, .meal-plan-log:focus-visible,
.meal-plan-expand:focus-visible, .meal-plan-link-action:focus-visible, .meal-plan-shopping-toggle:focus-visible,
.meals-quick-entry button:focus-visible, .meal-type-selector button:focus-visible, .meal-draft-total > button:focus-visible,
.meal-draft-item button:focus-visible, .food-search-form button:focus-visible, .close-food-day:focus-visible {
    outline: 2px solid #fff; outline-offset: 2px;
}
.meals-daily-nutrition { padding: 16px; border-color: rgba(255,106,0,.42); background: radial-gradient(ellipse at 86% 0, rgba(255,106,0,.11), transparent 45%), linear-gradient(145deg, #1c1c1c, #111); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.meals-daily-nutrition h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.02em; }
.meals-daily-calories { margin-bottom: 12px; }
.meals-daily-calories strong { text-shadow: 0 0 18px rgba(255,106,0,.22); }
.meals-daily-calorie-track { height: 6px; background: #393939; }
.meals-daily-macros { gap: 9px; margin-top: 15px; }
.meals-daily-macros > div { grid-template-columns: minmax(68px, .55fr) minmax(0, 1fr); column-gap: 10px; }
.meals-daily-macros span { font-size: 11px; }
.meals-daily-macros b { font-size: 11px; }
.meals-daily-macros div div { height: 5px; background: #353535; }
.meal-plan-panel { display: grid; gap: 12px; overflow: visible; padding: 14px; border-color: #3e3833; background: linear-gradient(165deg, rgba(28,28,28,.99), rgba(15,15,15,.99)); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.meal-plan-heading { margin: -2px -2px 0; }
.meal-plan-heading h3 { letter-spacing: -.025em; }
.meal-plan-access { border-color: rgba(255,106,0,.25); background: linear-gradient(105deg, rgba(255,106,0,.09), #181818 55%); }
.meal-week-selector { display: grid; gap: 9px; padding: 11px; border: 1px solid #363636; border-radius: 10px; background: #121212; }
.meal-week-status { color: #d7d7d7; }
.meal-week-status b { color: var(--orange); }
.meal-week-status > span { color: #74cf88; }
.meal-day-tabs { gap: 6px; padding: 1px 1px 3px; }
.meal-day-tabs button { min-height: 42px; border-color: #484848; background: linear-gradient(145deg, #262626, #1c1c1c); font-size: 11px; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.meal-day-tabs button:hover { border-color: rgba(255,106,0,.55); }
.meal-day-tabs button.active { border-color: var(--orange); background: linear-gradient(135deg, #ff7a1a, #e95600); color: #121212; box-shadow: 0 4px 14px rgba(255,106,0,.2); }
.meal-plan-list { gap: 10px; }
.meal-plan-day-summary, .meal-plan-shopping-list { border-color: #414141; background: linear-gradient(145deg, #202020, #151515); }
.meal-plan-day-summary { gap: 11px; padding: 14px; }
.meal-plan-day-summary h3 { font-size: 18px; }
.meal-plan-summary-macros { gap: 8px; }
.meal-plan-macro-pill { min-height: 34px; border-radius: 8px; background: rgba(255,106,0,.06); }
.meal-plan-macro-pill.fat { background: rgba(255,194,71,.06); }
.meal-plan-macro-pill.carbs { background: rgba(101,197,107,.06); }
.meal-plan-card { border-color: #414141; border-radius: 10px; padding: 14px; background: linear-gradient(145deg, #1d1d1d, #141414); }
.meal-plan-card.expanded { border-color: rgba(255,106,0,.7); box-shadow: 0 0 0 1px rgba(255,106,0,.1), 0 8px 22px rgba(0,0,0,.25); }
.meal-plan-card-top h4 { font-size: 17px; }
.meal-plan-log { min-height: 36px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(120deg, #ff7915, #ed5d00); box-shadow: 0 4px 12px rgba(255,106,0,.15); }
.meal-plan-meal-title { margin-top: 9px; color: #ff8736; font-size: 13px; }
.meal-plan-meal-macros { color: #b2b2b2; font-size: 10px; }
.meal-plan-expand { margin-top: 8px; color: #d3d3d3; }
.meal-plan-ingredients { gap: 7px; padding: 10px; border: 1px solid #303030; border-radius: 8px; background: #111; }
.meal-plan-ingredient span { color: #e5e5e5; font-size: 11px; }
.meal-plan-ingredient strong { color: #c7c7c7; font-size: 10px; }
.meal-plan-preparation p { color: #c2c2c2; font-size: 11px; }
.meal-plan-link-action { font-size: 11px; }
.meal-plan-shopping-toggle { border-color: #555; background: #1a1a1a; transition: border-color .16s ease, background .16s ease; }
.meal-plan-shopping-toggle:hover { border-color: var(--orange); background: #21170f; }
.meals-quick-entry, .meals-add-section, .meals-saved-today, .meals-diary-heading { border-color: #3c3834; background: linear-gradient(150deg, #1a1a1a, #121212); }
.meals-quick-entry, .meals-diary-heading, .meals-add-section { padding: 15px; }
.meals-quick-entry button { min-height: 76px; border-color: #52473e; background: linear-gradient(145deg, #211b16, #171717); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.meals-quick-entry button:not(:disabled):hover { border-color: var(--orange); background: #24170f; transform: translateY(-1px); }
.meals-quick-entry button:disabled { opacity: .58; }
.meals-quick-entry svg { width: 22px; height: 22px; stroke-width: 2; }
.meals-quick-entry span { font-size: 12px; }
.meal-type-selector button { min-height: 42px; border-color: #464646; background: #1b1b1b; color: #d0d0d0; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.meal-type-selector button.active { background: linear-gradient(130deg, rgba(255,106,0,.24), rgba(255,106,0,.08)); color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
.meals-browser-note { border-color: rgba(255,106,0,.26); background: #1b1713; }
.meals-browser-note svg { stroke-width: 2; }
.meals-browser-note small { color: #aaa; }
.manual-food-search { border-color: #3e3e3e; background: #111; }
.manual-food-search h4 { color: #f5f5f5; }
.meal-draft-panel { border-color: rgba(255,106,0,.65); background: linear-gradient(145deg, #1f1a16, #131313); box-shadow: inset 0 0 18px rgba(255,106,0,.04); }
.meal-draft-total > button { background: linear-gradient(120deg, #ff7915, #ed5d00); box-shadow: 0 4px 12px rgba(255,106,0,.15); }
.meals-saved-today { padding-top: 15px; }
.close-food-day { border-color: #555; background: #181818; transition: border-color .16s ease, color .16s ease; }
.close-food-day:hover { border-color: var(--orange); color: var(--orange); }

/* Compact report comparison, with only clearly favourable changes highlighted. */
.client-portal-member-state.sent { color: #8ce5a0; text-shadow: 0 0 10px rgba(112,199,134,.27); }
.client-portal-member-state.missing { color: #ff8980; }
.client-portal-member-state.upcoming { color: #b8b8b8; }
.client-portal-report-card { border-color: rgba(111,185,125,.32); background: linear-gradient(145deg, rgba(34,51,37,.48), #191919 62%); }
.client-portal-report-card header > div { min-width: 0; display: grid; gap: 4px; }
.client-portal-report-card header strong { line-height: 1.35; }
.client-portal-report-card header small { color: #a4a4a4; font-size: 10px; }
.client-portal-report-measure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.client-portal-report-measure-grid > div { min-width: 0; display: grid; gap: 4px; padding: 8px; border: 1px solid #343a34; border-radius: 7px; background: rgba(14,17,14,.58); }
.client-portal-report-measure-grid span { color: #aaa; font-size: 9px; line-height: 1.35; }
.client-portal-report-measure-grid strong { color: #f3f3f3; font-size: 12px; overflow-wrap: anywhere; }
.client-portal-report-comparison { margin-top: 10px; padding: 10px; border: 1px solid #363636; border-radius: 8px; background: rgba(12,12,12,.68); }
.client-portal-report-comparison h4 { margin: 0 0 8px; color: #f1f1f1; font-size: 11px; line-height: 1.35; }
.client-portal-report-comparison > p { margin: 0; color: #aaa; font-size: 10px; line-height: 1.45; }
.client-portal-comparison-dates { display: grid; gap: 3px; margin-bottom: 7px; }
.client-portal-comparison-dates span { color: #999; font-size: 9px; }
.client-portal-comparison-dates strong { color: #d7d7d7; font-size: 10px; line-height: 1.35; }
.client-portal-comparison-columns, .client-portal-comparison-row { display: grid; grid-template-columns: minmax(75px, 1fr) minmax(112px, 1.25fr) minmax(49px, .55fr); align-items: center; gap: 5px; }
.client-portal-comparison-columns { padding: 0 5px 5px; color: #969696; font-size: 8px; line-height: 1.25; }
.client-portal-comparison-columns span:last-child { text-align: right; }
.client-portal-comparison-rows { display: grid; }
.client-portal-comparison-row { min-height: 27px; border-top: 1px solid rgba(255,255,255,.07); padding: 4px 5px; }
.client-portal-comparison-row strong { color: #c9c9c9; font-size: 9px; font-weight: 650; line-height: 1.25; }
.client-portal-comparison-row > span { color: #e3e3e3; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.client-portal-comparison-row i { color: #8e8e8e; font-style: normal; }
.client-portal-comparison-row b { color: #c4c4c4; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.client-portal-comparison-row b.positive { color: #8ce5a0; }
.client-portal-comparison-row b.neutral { color: #c4c4c4; }
.client-portal-weekly-report-card > strong { display: block; margin-top: 10px; color: var(--orange); font-size: 12px; line-height: 1.4; }

/* Admin-only account search and per-account PRO controls. */
.admin-user-search { display: grid; gap: 6px; color: #d5d5d5; font-size: 10px; font-weight: 800; }
.admin-user-search input { width: 100%; min-height: 43px; border: 1px solid #49423c; border-radius: 8px; padding: 0 12px; background: #111; color: #f5f5f5; font: inherit; font-size: 13px; font-weight: 500; }
.admin-user-search input::placeholder { color: #858585; }
.admin-user-search input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.admin-user-search-empty { margin: 0; padding: 10px; border: 1px solid #383838; border-radius: 8px; color: #aaa; font-size: 11px; }
.admin-user-activity-card[hidden] { display: none; }
.admin-user-pro-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #303030; padding-top: 8px; }
.admin-user-pro-status { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.admin-pro-badge { min-height: 23px; display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 9px; font-weight: 900; letter-spacing: .03em; }
.admin-pro-badge.active { border: 1px solid rgba(255,106,0,.42); background: rgba(255,106,0,.14); color: #ff9a59; }
.admin-pro-badge.free { border: 1px solid #454545; background: #202020; color: #bbb; }
.admin-user-pro-status small { color: #aaa; font-size: 9px; }
.admin-user-pro-action { flex: 0 0 auto; min-height: 33px; border: 1px solid #555; border-radius: 7px; padding: 0 9px; background: #171717; color: #e8e8e8; cursor: pointer; font: inherit; font-size: 9px; font-weight: 850; }
.admin-user-pro-action.grant { border-color: rgba(255,106,0,.58); background: linear-gradient(120deg, #ff7915, #ed5d00); color: #151515; }
.admin-user-pro-action.revoke { border-color: rgba(255,112,103,.5); color: #ffaaa0; }
.admin-user-pro-action:disabled { cursor: wait; opacity: .55; }
.admin-user-pro-managed-note { color: #aaa; font-size: 9px; line-height: 1.4; text-align: right; }

@media (max-width: 420px) {
    .meals-screen { gap: 11px; }
    .meals-daily-nutrition { padding: 13px 11px; }
    .meal-plan-panel { padding: 11px; }
    .meal-day-tabs { gap: 4px; }
    .meal-day-tabs button { height: 39px; font-size: 10px; }
    .meal-plan-card { padding: 11px; }
    .meal-plan-card-top { gap: 6px; }
    .meal-plan-card-top h4 { font-size: 16px; }
    .meal-plan-log { max-width: 58%; padding-inline: 7px; font-size: 8px; }
    .meals-quick-entry, .meals-diary-heading, .meals-add-section { padding: 12px 10px; }
    .meals-quick-entry > div { gap: 6px; }
    .meals-quick-entry button { min-height: 68px; }
    .client-portal-report-measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-portal-report-comparison { padding: 8px 7px; }
    .client-portal-comparison-columns, .client-portal-comparison-row { grid-template-columns: minmax(68px, .9fr) minmax(105px, 1.25fr) minmax(45px, .5fr); gap: 4px; }
    .client-portal-comparison-row strong { font-size: 8px; }
    .client-portal-comparison-row > span, .client-portal-comparison-row b { font-size: 9px; }
    .admin-user-pro-row { align-items: flex-start; flex-direction: column; }
    .admin-user-pro-action { width: 100%; min-height: 38px; }
    .admin-user-pro-managed-note { text-align: left; }
}
