/* ════════════════════════════════════════════════════════════════════
   LEOAMF client redesign layer (2026-07-12) · κλειδωμένες επιλογές:
   Today=D (amber coach attention + πρωινό ζύγισμα + flat hero) ·
   Training=hero+muscle thumbnails · Nutrition=v2 «Αριθμοί» ·
   Habits=v1 «Ημέρα Χ» · Chat=v3 iMessage Max · Settings=v3 Profile Hero ·
   tabbar=Διατροφή FAB + sliding notch + badge · directional slide.
   Φορτώνεται ΜΕΤΑ το styles.css (index.html link). FLAT: όχι gradients.
   ════════════════════════════════════════════════════════════════════ */

    /* ══ FLAT MODE (2026-07-11: όχι gradients πουθενά · minimal όπως το tabbar) ══ */
    #screen .tdb-tile, .cxwar, .cxweigh, .cxcell, .ldx-hero { background-image: none !important; }
    .cxdone::before, .cxdone::after { display: none; }


    /* ══ Today D · coach banner AMBER attention (semantic «θέλει προσοχή») ══ */
    .cxwar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; color: var(--fg); font: inherit;
      padding: 16px; border-radius: 22px;
      background-color: color-mix(in srgb, var(--surface-2) 80%, var(--surface-1));
      border: 1.5px solid color-mix(in srgb, var(--warn) 55%, transparent);
      box-shadow: var(--shadow-md); animation: cxwarPulse 2.6s ease-in-out infinite; }
    @keyframes cxwarPulse {
      0%, 100% { border-color: color-mix(in srgb, var(--warn) 40%, transparent); box-shadow: var(--shadow-md); }
      50% { border-color: var(--warn); box-shadow: var(--shadow-md), 0 0 0 4px rgba(230, 167, 0, .09); }
    }
    .cxwar .av { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
      background: var(--warn-tint); border: 1.5px solid color-mix(in srgb, var(--warn) 50%, transparent); }
    .cxwar .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9px; }
    .cxwar .kick { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
    .cxwar .tt { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.015em; margin-top: 2px; }
    .cxwar .q { display: block; font-size: 12.5px; color: var(--muted-fg); margin-top: 2px; }
    .cxwar .go { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--warn); color: #0A0A0A; }
    .cxwar .go svg { width: 19px; height: 19px; }
    [data-theme="light"] .cxwar { background-color: #fff; }

    /* ══ Today D · ήρεμη coach κάρτα (note εβδομάδας, done state) ══ */
    .cxc { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 16px; border-radius: 22px; text-align: left; color: inherit; font: inherit;
      background-color: color-mix(in srgb, var(--surface-2) 78%, var(--surface-1));
      border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
      box-shadow: var(--shadow-md); }
    [data-theme="light"] .cxc { background-color: #fff; border-color: color-mix(in srgb, var(--primary) 30%, var(--hairline)); }
    .cxc .av { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
      background: var(--primary-tint); color: var(--primary); font-weight: 800; font-size: 17px; border: 1.5px solid color-mix(in srgb, var(--primary) 45%, transparent); }
    .cxc .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
    /* real coach photo (.pfp από το coachAvHtml) γεμίζει τον κύκλο · το contain+padding μένει μόνο για το eye mark */
    .cxwar .av img.pfp, .cxc .av img.pfp { object-fit: cover; padding: 0; border-radius: 999px; }
    .cxc .av .on { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 999px; background: var(--primary); border: 2.5px solid var(--bg); }
    .cxc .kick { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
    .cxc .tt { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; margin-top: 1px; }
    .cxc .q { font-size: 12.5px; color: var(--muted-fg); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cxc .go { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: #fff; }
    .cxc .go svg { width: 17px; height: 17px; }

    /* ══ Today D · υποχρεωτικό πρωινό ζύγισμα (07:00+) ══ */
    .cxweigh { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 16px; border-radius: 22px; text-align: left; font: inherit; color: inherit;
      background-color: color-mix(in srgb, var(--surface-2) 78%, var(--surface-1));
      border: 1px solid color-mix(in srgb, #fff 8%, transparent);
      box-shadow: var(--shadow-md); }
    [data-theme="light"] .cxweigh { background-color: #fff; border-color: var(--hairline); }
    .cxweigh .wic { position: relative; width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px;
      background: var(--primary-tint); color: var(--primary); }
    .cxweigh .wic svg { width: 21px; height: 21px; }
    .cxweigh .wic.ping::after { content: ""; position: absolute; inset: -3px; border-radius: 999px;
      border: 1.5px solid color-mix(in srgb, var(--primary) 60%, transparent); animation: cxwPing 2s ease-out infinite; }
    @keyframes cxwPing { 0% { transform: scale(.82); opacity: .9; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
    .cxweigh .tt { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
    .cxweigh .sub { font-size: 11.5px; color: var(--muted-fg); margin-top: 1px; }
    .cxweigh .act { flex: 0 0 auto; padding: 11px 19px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; font-family: inherit; border: 0; }
    .cxweigh .sparkbox { width: 92px; flex: 0 0 auto; }
    .cxweigh.inv { border: 1.5px solid color-mix(in srgb, var(--primary) 45%, transparent); }
    /* ══ Today D · header (eyebrow date + week chip) ══ */
    .cxg { display: block; }
    .cxg .eb { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-fg); }
    .cxg .eb i { width: 5px; height: 5px; border-radius: 999px; background: var(--primary); display: inline-block; }
    .cxg h1 { margin-top: 5px; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
    .cxwk { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 11px 5px 8px; border-radius: 999px;
      background: color-mix(in srgb, var(--surface-2) 80%, var(--surface-1)); border: 1px solid color-mix(in srgb, #fff 7%, transparent); }
    [data-theme="light"] .cxwk { background: var(--surface-2); border-color: transparent; }
    .cxwk .bar { position: relative; width: 54px; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
    .cxwk .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 40%); border-radius: 999px; background: var(--primary); }
    .cxwk b { font-size: 11.5px; font-weight: 700; letter-spacing: -.01em; }
    .cxwk span { font-size: 11px; color: var(--muted-fg); font-weight: 500; }

    /* ══ Today D · insight line ══ */
    .cxi { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 11px 13px; border-radius: 16px; margin-top: 11px;
      background: color-mix(in srgb, var(--surface-2) 50%, transparent); border: 1px dashed color-mix(in srgb, #fff 10%, transparent); }
    [data-theme="light"] .cxi { background: var(--surface-2); border-color: var(--hairline); }
    .cxi svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--primary); margin-top: 1px; }
    .cxi p { font-size: 12.5px; line-height: 1.5; color: var(--muted-fg); }
    .cxi p b { color: var(--fg); font-weight: 600; }

    /* ══ Today D · engaged cells ══ */
    .cxcell { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 14px; border-radius: 18px; text-align: left; color: inherit; font: inherit;
      background-color: color-mix(in srgb, var(--surface-2) 55%, var(--surface-1));
      border: 1px solid color-mix(in srgb, #fff 6%, transparent); }
    [data-theme="light"] .cxcell { background-color: var(--surface-2); border-color: transparent; }
    .cxcell .cring { position: relative; display: grid; place-items: center; flex: 0 0 auto; }
    .cxcell .cring b { position: absolute; font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; }
    .cxcell .lbl { min-width: 0; }
    .cxcell .lbl b { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
    .cxcell .lbl span { display: block; font-size: 10.5px; color: var(--muted-fg); font-weight: 500; margin-top: 1px; }
    .cxcell .lbl .ctax { color: var(--primary); font-weight: 700; }
    .cxcell .cic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
    .cxcell .cic svg { width: 18px; height: 18px; }

    /* ══ hero (πρόγραμμα/ολοκληρωμένη/rest) ══ */
    .ldx-hero { position: relative; overflow: hidden; width: 100%; text-align: left; color: inherit; font: inherit; border-radius: 24px; padding: 22px 18px;
      background-color: color-mix(in srgb, var(--surface-2) 85%, var(--surface-1));
      border: 1px solid color-mix(in srgb, #fff 9%, transparent); box-shadow: var(--shadow-md); }
    [data-theme="light"] .ldx-hero { background-color: #fff; border-color: var(--hairline); }
    .ldx-hero .kick { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); }
    .ldx-hero h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; text-transform: uppercase; margin-top: 6px; }
    .ldx-hero .sub { font-size: 13px; color: var(--muted-fg); font-weight: 500; margin-top: 7px; }
    .ldx-hero .act { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 13px 22px; border-radius: 14px;
      background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
    .ldx-hero .act svg { width: 17px; height: 17px; }
    .ldx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
    .ldx-meta span { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted-fg);
      background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 7%, transparent); }
    [data-theme="light"] .ldx-meta span { background: var(--surface-2); border-color: transparent; }
    .cxdone .tdv-httl { font-size: 20px; letter-spacing: -.02em; }

    /* ══ tabbar: Διατροφή FAB + sliding notch + badge αριθμού ══ */
    .tabbar.cxtb { overflow: visible; align-items: stretch; position: fixed; }
    .cxtb .slidepill { position: absolute; top: -2px; width: 18px; height: 4px; border-radius: 999px; background: var(--primary);
      box-shadow: 0 0 0 2px var(--bg);
      transition: left .26s cubic-bezier(.22, 1, .3, 1), opacity .16s; pointer-events: none; }
    .cxtb .tab-badge { position: absolute; top: 3px; right: calc(50% - 26px); min-width: 18px; height: 18px; padding: 0 5px;
      display: grid; place-items: center; border-radius: 999px; background: var(--danger); color: #fff;
      font-size: 10.5px; font-weight: 800; line-height: 1; border: 2px solid var(--bg); z-index: 2; }
    .cxtb .tab.on .ti { background: none; box-shadow: none; }
    .cxtb .tab, .cxtb-fab { position: relative; z-index: 1; }
    .cxtb-fab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
      padding-bottom: 7px; color: var(--primary); font-size: 10.5px; font-weight: 700; background: none; border: 0; font-family: inherit; }
    .cxtb-fab .fabc { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 999px; margin-top: -26px;
      background: linear-gradient(135deg, #14b257, #0C8A3F); color: #fff;
      border: 3px solid var(--bg); box-shadow: 0 10px 24px -8px rgba(15, 162, 76, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
    .cxtb-fab .fabc svg { width: 23px; height: 23px; }
    .cxtb-fab:active .fabc { transform: scale(.94); }
    .cxtb-fab.on .fabc { box-shadow: 0 10px 24px -8px rgba(15, 162, 76, .8), inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
    @keyframes fabTap { 0% { transform: scale(1); } 35% { transform: scale(.82); } 70% { transform: scale(1.12); } 100% { transform: none; } }
    .cxtb-fab.tap .fabc { animation: fabTap .45s cubic-bezier(.3, 1.3, .4, 1); }
    /* Higgsfield διάφανα PNG icons: πάντα πράσινα, ανενεργά = θαμπά, ενεργό = pop */
    .ti .hfi { width: 27px; height: 27px; display: block; object-fit: contain; opacity: .42;
      transition: opacity .16s, transform .24s cubic-bezier(.3, 1.45, .45, 1); }
    .tab.on .ti .hfi { opacity: 1; transform: scale(1.18); }
    /* directional slide μεταξύ σελίδων */
    @keyframes pvSlideR { from { transform: translateX(9%); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes pvSlideL { from { transform: translateX(-9%); opacity: 0; } to { transform: none; opacity: 1; } }
    #screen .slidein-r { animation: pvSlideR .34s cubic-bezier(.19, 1, .22, 1) both; }
    #screen .slidein-l { animation: pvSlideL .34s cubic-bezier(.19, 1, .22, 1) both; }
    /* ^ κρατιούνται ΜΟΝΟ για το ‹ › day-nav της Διατροφής (.n2-day). Ο router
       ΔΕΝ τα βάζει πια στο wrapper του: perceived speed 2026-09-18. */
    /* Route swap = σβέλτο fade, χωρίς slide και χωρίς stagger. Μόνο opacity:
       το opacity δεν φτιάχνει ποτέ containing block, οπότε το fixed layout του
       chat μένει ασφαλές (το παλιό slide wrapper το χαλούσε, δες γρ. 406). */
    @keyframes pvRouteFade { from { opacity: 0; } to { opacity: 1; } }
    #screen .routefade { animation: pvRouteFade .12s linear both; }

    /* Οι διακοσμητικές κινήσεις ΜΕΣΑ στις κάρτες (μπαράκια εβδομάδας, τελίτσες,
       η γραμμή προόδου που ζωγραφίζεται) έπαιζαν σε ΚΑΘΕ render και κρατούσαν
       μέχρι ~0.75s, δηλαδή συνέχιζαν να «φορτώνουν» αφού είχε ήδη μπει η οθόνη.
       Τώρα παίζουν μόνο στο wrapper με .stagger (πρώτη οθόνη μετά το boot)·
       σε κάθε άλλη αλλαγή tab ή in-place rerender ζωγραφίζονται τελειωμένες.
       Όπου το base rule βασιζόταν στο animation για να γίνει ορατό το στοιχείο
       (.tdb-dot έχει opacity:0, .pgx-draw έχει stroke-dashoffset:1) δίνουμε ρητά
       την τελική κατάσταση, αλλιώς θα έμεναν αόρατα. */
    #screen > div:not(.stagger) .tdv-kbars span i,
    #screen > div:not(.stagger) .tdb-kbars span i,
    #screen > div:not(.stagger) .pgx-bar i,
    #screen > div:not(.stagger) .pgr-bar i { animation: none; }
    #screen > div:not(.stagger) .tdb-dot { animation: none; opacity: 1; }
    #screen > div:not(.stagger) .pgx-draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }

    /* ══ Προπόνηση (trx-) ══ */
    .trx-sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); margin: 18px 2px 9px; }
    .trx-ex { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 18px; text-align: left; color: inherit; font: inherit;
      background-color: color-mix(in srgb, var(--surface-2) 70%, var(--surface-1));
      border: 1px solid color-mix(in srgb, #fff 6%, transparent); }
    [data-theme="light"] .trx-ex { background-color: #fff; border-color: var(--hairline); }
    .trx-ex + .trx-ex { margin-top: 7px; }
    .trx-ex .nm { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
    .trx-ex .sb { font-size: 11.5px; color: var(--muted-fg); margin-top: 1px; }
    .trx-ex .chev { margin-left: auto; color: var(--faint-fg); display: grid; place-items: center; }
    .trx-ex .chev svg { width: 16px; height: 16px; }
    .trx-ex .n { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
      background: var(--primary-tint); color: var(--primary); font-size: 12.5px; font-weight: 800; }
    .trx-ex .mg { position: relative; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; overflow: hidden; background: #000; }
    .trx-ex .mg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); }
    .trx-ex .mg .ck { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 999px;
      background: var(--primary); color: #fff; display: grid; place-items: center; font-style: normal; }
    .trx-wk { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; border-radius: 16px; text-align: left; color: inherit; font: inherit;
      background-color: color-mix(in srgb, var(--surface-2) 55%, var(--surface-1));
      border: 1px solid color-mix(in srgb, #fff 5%, transparent); }
    [data-theme="light"] .trx-wk { background-color: var(--surface-2); border-color: transparent; }
    .trx-wk + .trx-wk { margin-top: 6px; }
    .trx-wk.today { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
    .trx-wk .d { width: 34px; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--muted-fg); text-transform: uppercase; }
    .trx-wk .t { font-size: 13.5px; font-weight: 600; }
    .trx-wk .st { margin-left: auto; }
    .trx-hist .sb .vol { color: var(--fg); font-weight: 600; }

    /* ══ Διατροφή v2 «Αριθμοί» (ntv-/n2-) ══ */
    .ntv-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
    .ntv-date b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
    .ntv-date .nav { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
      background: color-mix(in srgb, var(--surface-2) 70%, var(--surface-1)); border: 1px solid color-mix(in srgb, #fff 6%, transparent); color: var(--muted-fg); font: inherit; }
    [data-theme="light"] .ntv-date .nav { background: var(--surface-2); border-color: transparent; }
    .ntv-meal .mc { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 999px; display: grid; place-items: center;
      border: 1.5px solid color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); background: transparent; }
    .ntv-meal .mc.dn { background: var(--primary); border-color: var(--primary); color: #fff; }
    /* app 2.47: small photo preview of the meal in the plan row (Leo 21/07);
       the answer status becomes a mini badge on the photo's corner */
    .ntv-meal .mc.thumb { width: 46px; height: 46px; border-radius: 13px; position: relative;
      background-size: cover; background-position: center; border: 1px solid color-mix(in srgb, #fff 10%, transparent); color: transparent; }
    [data-theme="light"] .ntv-meal .mc.thumb { border-color: color-mix(in srgb, #000 10%, transparent); }
    .ntv-meal .mc.thumb > svg { display: none; }
    .ntv-meal .mc.thumb .stb { position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 999px;
      display: grid; place-items: center; font-style: normal; background: var(--surface-3); color: var(--muted-fg); border: 2px solid var(--surface-1); }
    .ntv-meal .mc.thumb .stb.dn { background: var(--primary); color: #fff; }
    .ntv-meal .mc.thumb .stb svg { width: 10px; height: 10px; }
    .ntv-meal .eat { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--primary-tint); color: var(--primary); font-weight: 700; font-size: 12px; font-family: inherit; border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
    .ntv-meal .did { flex: 0 0 auto; font-size: 11.5px; color: var(--muted-fg); font-weight: 600; }
    .ntv-extra { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; margin-top: 7px;
      border-radius: 18px; border: 1.5px dashed color-mix(in srgb, #fff 14%, transparent); color: var(--muted-fg); font: inherit; font-size: 13px; font-weight: 600; background: none; }
    [data-theme="light"] .ntv-extra { border-color: color-mix(in srgb, #000 14%, transparent); }
    .ntv-extra svg { width: 15px; height: 15px; color: var(--primary); }
    .ntv-water { position: relative; height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; width: 100%; margin: 6px 0 2px; }
    .ntv-water i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: 999px; background: var(--primary); }
    @keyframes ntvBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .ntv-water i, .n2-bar i { transform-origin: left; animation: ntvBar .8s cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(var(--i, 0) * 80ms + .12s); }
    @keyframes mcPop { 0% { transform: scale(.3); } 60% { transform: scale(1.25); } 100% { transform: none; } }
    .ntv-meal .mc.pop { animation: mcPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
    .n2-hero { align-items: center; text-align: center; gap: 4px; }
    .n2-hero .tdb-big { font-size: 46px; }
    .n2-bar { position: relative; width: 100%; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
    .n2-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: 999px; background: var(--primary); }
    /* over the kcal target = number and bar go red: calories must not run
       over, so the miss has to read at a glance (client ask 2026-07-17) */
    .n2-hero.over .tdb-big { color: var(--danger); }
    .n2-hero.over .tdb-big i { color: color-mix(in srgb, var(--danger) 70%, transparent); }
    .n2-hero.over .n2-bar i { background: var(--danger); }
    .n2-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 11px; }
    .n2-trio .tdb-tile { padding: 13px 14px; border-radius: 18px; }
    .n2-trio .tdb-big { font-size: 21px; }
    /* #501: a macro past its gram target reads «+Ng πάνω από τον στόχο» in
       the house warn tint (calmer than the kcal hero's red: protein over is
       not an alarm, it is information) */
    .n2-plus { font-weight: inherit; }
    .n2-trio .tdb-tile.n2-mover .tdb-big { color: var(--warn); }
    .n2-trio .tdb-tile.n2-mover .tdb-big i { color: color-mix(in srgb, var(--warn) 70%, transparent); }
    .n2-trio .tdb-tile.n2-mover .tdb-sub { color: var(--warn); }
    .n2-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; margin-top: 11px;
      border-radius: 16px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 14.5px; border: 0; }
    .n2-cta svg { width: 17px; height: 17px; }

    /* ══ Συνήθειες v1 «Ημέρα Χ» (hbx-) ══ */
    .hbx-hero { align-items: center; text-align: center; gap: 8px; }
    .hbx-kick { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); }
    .hbx-day { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
    .hbx-day i { font-style: normal; font-size: 16px; font-weight: 700; color: var(--muted-fg); margin-left: 4px; }
    .hbx-dots { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
    .hbx-dots span { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
      color: var(--muted-fg); border: 1.5px solid color-mix(in srgb, #fff 10%, transparent); }
    [data-theme="light"] .hbx-dots span { border-color: color-mix(in srgb, #000 12%, transparent); }
    .hbx-dots span.dn { background: var(--primary); border-color: var(--primary); color: #fff; }
    .hbx-dots span.td { border-color: var(--primary); color: var(--primary); }
    .hbx-row .mc svg { width: 15px; height: 15px; }
    .hbx-row .pill { flex: 0 0 auto; }

    /* ══ Coach chat v3 iMessage Max (cp-) ══ */
    .cp-seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 12px; }
    .cp-seg button { flex: 1; padding: 9px; border-radius: 999px; font: 600 13px/1.2 inherit; font-family: inherit; color: var(--muted-fg); background: none; border: 0; }
    .cp-seg button.on { background: var(--surface-1); color: var(--fg); box-shadow: var(--shadow-sm); }
    .cp-day { text-align: center; font-size: 10.5px; color: var(--faint-fg); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 16px 0 8px; }
    /* #415: outside-reply-hours system note (IG-style, never a bubble) */
    .cp-oow { display: flex; align-items: flex-start; justify-content: center; gap: 7px; text-align: left;
      margin: 12px auto 4px; padding: 9px 14px; max-width: 340px; border-radius: 14px;
      background: var(--surface-2); color: var(--muted-fg); font-size: 12px; line-height: 1.5; }
    .cp-oow svg { flex: 0 0 auto; margin-top: 2px; opacity: .8; }
    .cp-row { display: flex; gap: 8px; margin-top: 2px; align-items: flex-end; }
    .cp-row.me { justify-content: flex-end; }
    .cp-row.gap { margin-top: 12px; }
    .cp-av { width: 28px; height: 28px; border-radius: 999px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
      background: var(--primary-tint); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); font-size: 11px; font-weight: 800; color: var(--primary); }
    .cp-av img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
    .cp-avslot { width: 28px; flex: 0 0 auto; }
    .cp-b { position: relative; max-width: 76%; padding: 10px 14px; font-size: 15px; line-height: 1.4; letter-spacing: -.01em; border-radius: 20px; }
    .cp-t { font-size: 10.5px; color: var(--faint-fg); margin-top: 4px; }
    .cp-read { text-align: right; font-size: 10.5px; color: var(--faint-fg); margin-top: 4px; font-weight: 600; }
    .cp-nm { font-size: 11px; font-weight: 700; color: var(--muted-fg); margin: 12px 0 2px 40px; }
    .cp-nm .coachb { background: var(--primary); color: #fff; border-radius: 6px; padding: 1.5px 6px; font-size: 9px; margin-left: 5px; letter-spacing: .06em; }
    .cp-tb { position: absolute; top: -15px; right: -8px; background: #3A3A3C; border: 2.5px solid var(--bg); border-radius: 999px; padding: 3px 8px; font-size: 12.5px; line-height: 1; z-index: 2; }
    .cp-row.me .cp-tb { right: auto; left: -8px; }
    .cp-tb.pop { animation: mcPop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
    [data-theme="light"] .cp-tb { background: #E9E9EB; }
    .cp-ty { display: inline-flex; gap: 4.5px; padding: 15px 15px; border-radius: 20px; background: #2C2C2E; }
    [data-theme="light"] .cp-ty { background: #E9E9EB; }
    .cp-ty i { width: 7px; height: 7px; border-radius: 999px; background: #8E8E93; animation: cpTy 1.3s ease-in-out infinite; }
    .cp-ty i:nth-child(2) { animation-delay: .18s; }
    .cp-ty i:nth-child(3) { animation-delay: .36s; }
    @keyframes cpTy { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
    .cp-b.them { background: #2C2C2E; color: #fff; }
    [data-theme="light"] .cp-b.them { background: #E9E9EB; color: #0A0A0A; }
    .cp-b.me { background: var(--primary); color: #fff; }
    .cp-b.tail::before { content: ""; position: absolute; z-index: 0; bottom: 0; height: 20px; width: 20px; }
    .cp-b.tail::after { content: ""; position: absolute; z-index: 1; bottom: 0; width: 10px; height: 20px; background: var(--bg); }
    .cp-b.them.tail::before { left: -7px; background: #2C2C2E; border-bottom-right-radius: 15px; }
    [data-theme="light"] .cp-b.them.tail::before { background: #E9E9EB; }
    .cp-b.them.tail::after { left: -10px; border-bottom-right-radius: 10px; }
    .cp-b.me.tail::before { right: -7px; background: var(--primary); border-bottom-left-radius: 15px; }
    .cp-b.me.tail::after { right: -10px; border-bottom-left-radius: 10px; }
    .cp-contact { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 14px; }
    .cp-contact .big { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; overflow: hidden;
      background: var(--primary-tint); border: 1.5px solid color-mix(in srgb, var(--primary) 45%, transparent); }
    .cp-contact .big img { width: 100%; height: 100%; object-fit: contain; padding: 13px; }
    .cp-contact b { font-size: 15px; letter-spacing: -.01em; }
    .cp-contact span { font-size: 11px; color: var(--muted-fg); }
    .cp-cacts { display: flex; gap: 8px; margin-top: 5px; }
    .cp-cacts button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
      background: var(--surface-2); border: 0; color: var(--primary); font-family: inherit; font-size: 12px; font-weight: 600; }
    .cp-cacts button svg { width: 15px; height: 15px; }
    .cp-rxbar { display: flex; gap: 2px; padding: 5px 7px; border-radius: 22px; width: max-content; margin: 12px 0 4px 36px;
      background: color-mix(in srgb, var(--surface-1) 88%, transparent); backdrop-filter: blur(18px);
      border: 1px solid color-mix(in srgb, #fff 10%, transparent); box-shadow: var(--shadow-md);
      animation: cpRxIn .22s cubic-bezier(.2, 1.3, .4, 1) both; }
    [data-theme="light"] .cp-rxbar { border-color: var(--hairline); }
    .cp-rxbar.me { margin-left: auto; margin-right: 8px; }
    .cp-rxq { font-size: 20px; background: none; border: 0; padding: 4px 7px; cursor: pointer; border-radius: 12px;
      transition: transform .12s cubic-bezier(.3, 1.4, .4, 1); font-family: inherit; }
    .cp-rxq:active { transform: scale(1.3); }
    @keyframes cpRxIn { from { opacity: 0; transform: translateY(6px) scale(.7); } to { opacity: 1; transform: none; } }
    .cp-chips { display: flex; gap: 7px; overflow-x: auto; margin-top: 16px; }
    .cp-chips::-webkit-scrollbar { display: none; }
    .cp-chips .chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
    .cp-chips .chip svg { width: 14px; height: 14px; }
    .cp-comp { position: relative; margin-top: 9px; }
    .cp-comp .inp { width: 100%; border-radius: 999px; padding: 12px 52px 12px 16px; }
    .cp-send { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px;
      background: var(--primary); color: #fff; display: grid; place-items: center; border: 0; }
    .cp-send svg { width: 16px; height: 16px; }

    /* ══ Προφίλ v3 Profile Hero (st-) ══ */
    .st-sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); margin: 18px 2px 8px; }
    .st-group { border-radius: 18px; overflow: hidden;
      background-color: color-mix(in srgb, var(--surface-2) 70%, var(--surface-1));
      border: 1px solid color-mix(in srgb, #fff 6%, transparent); }
    [data-theme="light"] .st-group { background-color: #fff; border-color: var(--hairline); }
    .st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; color: inherit; font: inherit; background: none; border: 0; }
    .st-row + .st-row { border-top: 1px solid color-mix(in srgb, #fff 6%, transparent); }
    [data-theme="light"] .st-row + .st-row { border-top-color: var(--hairline); }
    /* #510: the divider is an adjacent-sibling rule, so a HIDDEN first row still
       pushes its hairline onto the first visible one and it lands on the card's
       top edge. The Account group now starts at the Tool Library row, which
       stays display:none until the client actually has modules, so without this
       a client with an empty library saw a stray line across the top. The reveal
       clears the inline display, which un-matches this rule on its own. */
    .st-row[style*="display:none"] + .st-row { border-top: 0; }
    .st-row .sic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center;
      background: var(--primary-tint); color: var(--primary); }
    .st-row .sic svg { width: 15px; height: 15px; }
    .st-row .sic.red { background: var(--danger-tint); color: var(--danger); }
    .st-row .lb { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
    .st-row .lb.red { color: var(--danger); }
    .st-row .val { margin-left: auto; font-size: 12.5px; color: var(--muted-fg); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
    .st-row .val svg { width: 14px; height: 14px; color: var(--faint-fg); }
    .st-sw { margin-left: auto; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; flex: 0 0 auto;
      border: 0; cursor: pointer; transition: background .2s; }
    .st-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff;
      transition: left .22s cubic-bezier(.3, 1.2, .4, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
    .st-sw.on { background: var(--primary); }
    .st-sw.on::after { left: 21px; }
    .st-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; }
    .st-hero .pfp { position: relative; width: 84px; height: 84px; border-radius: 999px; display: grid; place-items: center;
      background: var(--primary-tint); border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
      font-size: 28px; font-weight: 800; color: var(--primary); }
    .st-hero .pfp .cam { position: absolute; right: -2px; bottom: -2px; width: 27px; height: 27px; border-radius: 999px;
      background: var(--primary); color: #fff; display: grid; place-items: center; border: 2.5px solid var(--bg); }
    .st-hero .pfp .cam svg { width: 13px; height: 13px; }
    .st-hero b { font-size: 18px; margin-top: 6px; }
    .st-hero span { font-size: 12px; color: var(--muted-fg); }

    .mt11 { margin-top: 11px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
  

/* ── συμπληρώματα από τα view ports (2026-07-12) ── */
/* tabbar: μόνο το sliding notch, όχι το παλιό static ::before */
.cxtb .tab::before { display: none; }

/* habits: long names + inline stepper fit */
.hbx-row .grow { min-width: 0; }
.hbx-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbx-row .stepper { flex: 0 0 auto; }
.hbx-row .stepper button { width: 30px; height: 34px; }
.hbx-row .stepper .val { min-width: 30px; font-size: 13px; }
.hbx-dots span svg { width: 12px; height: 12px; }

/* chat v3: tapback internals + composer με textarea */
.chat-tabs.cp-seg { border: 0; box-shadow: none; }
.cp-tb { display: inline-flex; gap: 2px; align-items: center; }
.cp-tbe { background: none; border: 0; padding: 0 2px; font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer; color: var(--fg); }
.cp-tbe .cp-tbn { font-style: normal; font-size: 10px; font-weight: 700; opacity: .75; margin-left: 1px; font-variant-numeric: tabular-nums; }
.cp-tbe.on .cp-tbn { color: var(--primary); opacity: 1; }
.cp-row.cp-hasrx { margin-top: 18px; }
.cp-contact .big { position: relative; }
.cp-send { opacity: .55; transition: opacity .18s; }
.cp-send.chx-live { opacity: 1; }
.cp-comp .cp-send { top: auto; bottom: 10px; transform: none; }
.cp-comp textarea.inp { display: block; }
/* chat dock composer: the bar itself is the .cp-comp AND carries its own
   padding (6px 12px 10px), so right:6px/bottom:10px landed the send button
   half OUTSIDE the input pill (client screenshot 2026-07-17). Re-anchor it
   inside: 12px pad + 5px inset right, 10px pad + 5px inset bottom (34px
   button centered in the 44px single-line pill, hugs the bottom when the
   textarea grows). */
.chx-bar.cp-comp .cp-send { right: 17px; bottom: 15px; }

/* settings: photo avatar στο hero */
.st-hero .pfp { padding: 0; cursor: pointer; }
.st-hero .pfp img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }

/* ── chat v3 · fixed-layout γεωμετρία (QA 2026-07-12) ──
   Το slide-in wrapper του router (#screen .slidein-r/-l) κρατά ΜΟΝΙΜΟ
   filling transform (animation-fill-mode: both) και γίνεται containing
   block του position:fixed .chatwrap: top/bottom λύνονται πάνω σε ένα
   μικρό in-flow div, το thread μηδενίζει και ο composer αιωρείται στη
   μέση. Γνωστό gotcha: ΠΟΤΕ transform σε ancestor του .chatwrap. Το chat
   view απλά δεν παίρνει slide animation (το chat.js έχει και JS guard). */
#screen .slidein-r:has(.chatwrap), #screen .slidein-l:has(.chatwrap) { animation: none; }
/* το seg κάθεται στη θέση του παλιού chat-tabs */
.chat-tabs.cp-seg { margin: 10px 14px 6px; }

/* v2.1.0 chat width fix */
/* Το wrapper div της φούσκας μέσα στο flex .cp-row ήταν ανώνυμο, χωρίς
   flex/min-width κανόνες: το max-width:76% του .cp-b δεν λύνεται στο
   shrink-to-fit intrinsic sizing του wrapper και το overflow-wrap:anywhere
   του .bubble (styles.css) ρίχνει το min-content σε 1 γράμμα, οπότε οι
   κοντές φούσκες κατέρρεαν σε ~40px (κάθετο κείμενο, ένα γράμμα ανά
   γραμμή) και οι μεγάλες γέμιζαν όλο το row (me φούσκα αριστερά). Τώρα το
   76% cap ζει στο cp-col (λύνεται πάνω στο row, που έχει οριστικό πλάτος)
   και η φούσκα απλώνει φυσικά μέχρι εκεί, όπως το παλιό .dm-col. */
.cp-row .cp-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 76%; }
.cp-row.me .cp-col { align-items: flex-end; }
.cp-col .cp-b, .cp-col .comm-bubble { max-width: 100%; }
/* tapback pill: το row με reaction παίρνει λίγο παραπάνω αέρα ώστε το
   pill (προεξέχει ~17px πάνω από τη φούσκα) να μην πατά στο προηγούμενο */
.cp-row.cp-hasrx { margin-top: 24px; }


/* ── v2.1 Διατροφή: day-change date fade + smart picker + grocery age ── */
@keyframes n2DateFade { from { opacity: 0; } to { opacity: 1; } }
.ntv-date b.n2-datefade { animation: n2DateFade .3s ease both; }
.lrow .ntx-fav { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: -6px; border-radius: 50%; color: var(--muted-fg); flex: none; font-size: 17px; }
.lrow .ntx-fav.on { color: var(--primary); }
.lrow .ntx-fav.on svg { fill: var(--primary); }
.lg-results mark { background: none; color: var(--primary); font-weight: 700; }
.lg-results .ic.ntx-fthumb { padding: 0; overflow: hidden; border-radius: 50%; width: 40px; height: 40px; flex: none; }
.lg-results .ic.ntx-fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ntx-sug { margin-bottom: 4px; }
.gl-ago { font-size: 11.5px; color: var(--muted-fg); margin-top: 2px; }
.gl-cat.gl-rebuy { color: var(--warn); }
.gl-item.is-rebuy .gl-check { border-style: dashed; }
/* ══ Today UX round (client v2.10.0) · merged steps hero + weighed chip +
      check-in progress bar + logMatters reminder ══ */
.cxg-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cxwd { gap: 5px; padding: 5px 12px 5px 9px; color: inherit;
  border: 1.5px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.cxwd svg { width: 13px; height: 13px; color: var(--primary); }
.cxwd b { font-variant-numeric: tabular-nums; }

.ldx-stepsmode .ldx-srow { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ldx-stepsmode .ldx-srow h2 { margin-top: 0; font-size: 25px; }
.ldx-stepsmode .ldx-sring { position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.ldx-stepsmode .ldx-sring b { position: absolute; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.ldx-stepsmode .ldx-ssteps { font-size: 12.5px; color: var(--muted-fg); font-weight: 600; margin-top: 5px; }
.ldx-stepsmode .ldx-ssteps b { color: var(--fg); font-weight: 800; }
.ldx-stepsmode .sub { margin-top: 3px; font-size: 12px; }
.ldx-stepsmode .act { margin-top: 14px; }

.cib { display: block; text-align: left; }
.cib .cib-top { display: flex; align-items: center; gap: 11px; }
.cib .cic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 999px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.cib .cic svg { width: 17px; height: 17px; }
.cib .cib-date { font-size: 11.5px; color: var(--muted-fg); font-weight: 500; margin-top: 1px; }
.cib .cib-when { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; color: var(--primary); }
.cib .cib-bar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.cib .cib-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 55%, #063), var(--primary));
  transition: width .9s var(--ease-out); overflow: hidden; }
.cib .cib-bar i::after { content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.34) 50%, transparent 70%);
  background-size: 220% 100%; animation: cibShine 2.6s ease-in-out 1.1s infinite; }
@keyframes cibShine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -70% 0; } }
.cib.soon .cib-when { color: var(--warn); animation: cibSoon 1.5s ease-in-out infinite; }
.cib.soon .cib-bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 70%, #630), var(--warn)); }
@keyframes cibSoon { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .cib .cib-bar i::after, .cib.soon .cib-when { animation: none; } }

.lgm { text-align: center; padding: 6px 2px 2px; }
.lgm .lgm-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 999px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary); border: 1.5px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.lgm .lgm-ic svg { width: 24px; height: 24px; }
.lgm h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 14px; }
.lgm p { font-size: 13.5px; color: var(--muted-fg); line-height: 1.5; margin: 8px auto 18px; max-width: 320px; }
.lgm .btn svg { width: 16px; height: 16px; margin-left: 6px; }

/* birthdate backfill sheet (#294): intro block sits above the ob2-dw wheels */
.lgm.bdp p { margin-bottom: 6px; }
#bdLater { margin-top: 6px; color: var(--muted-fg); font-size: 13.5px; }

/* clickable chat links (payment links etc.): readable on both bubble colors */
.msg-link{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;word-break:break-all}

/* «Η εβδομάδα σου» calendar strip (2026-07-18) */
.wkc-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:10px 0 10px}
.wkc-pill{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 2px 8px;border-radius:14px;border:1px solid var(--line,rgba(255,255,255,.09));background:var(--card,rgba(255,255,255,.04));color:inherit;font:inherit;cursor:pointer}
.wkc-pill .wd{font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;opacity:.65}
.wkc-pill .dt{font-size:14.5px;font-weight:800}
.wkc-pill .dot{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;margin-top:1px}
.wkc-pill .dot svg{width:10px;height:10px}
.wkc-pill .dot.tr{width:7px;height:7px;background:var(--grn,#1DB954)}
.wkc-pill .dot.cd{width:7px;height:7px;background:#3aa6ff}
.wkc-pill .dot.off{width:7px;height:7px;background:rgba(255,255,255,.14)}
.wkc-pill .dot.ok{background:var(--grn,#1DB954);color:#04140d}
.wkc-pill.today .dt{color:var(--grn,#1DB954)}
.wkc-pill.on{border-color:var(--grn,#1DB954);background:rgba(29,185,84,.09)}
.wkc-pill .ci{position:absolute;top:5px;right:6px;width:5px;height:5px;border-radius:50%;background:#f5b942}
.wkc-day{padding:14px 15px;margin-bottom:12px}
.wkc-acts{display:flex;gap:8px;flex:none;align-items:center}
.wkc-ci{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;color:#f5b942}
.wkc-ci svg{width:14px;height:14px}
/* «Οι μέρες προπόνησής μου» picker (2026-09-29): the week strip's pill, one
   tap per weekday, green = a training day */
.tdp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.tdp-day{display:flex;flex-direction:column;align-items:center;gap:6px;padding:11px 2px 10px;border-radius:14px;border:1px solid var(--line,rgba(255,255,255,.09));background:var(--card,rgba(255,255,255,.04));color:inherit;font:inherit;cursor:pointer;min-height:64px}
.tdp-day .wd{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;opacity:.7}
.tdp-day .ic{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08)}
.tdp-day .ic svg{width:12px;height:12px}
.tdp-day.on{border-color:var(--grn,#1DB954);background:rgba(29,185,84,.12)}
.tdp-day.on .wd{opacity:1;color:var(--grn,#1DB954)}
.tdp-day.on .ic{background:var(--grn,#1DB954);color:#04140d}
[data-theme="light"] .tdp-day .ic{background:rgba(0,0,0,.07)}
.tdp-count{margin-top:12px;font-size:13.5px;font-weight:700;text-align:center}
.tdp-count.warn{color:var(--warn,#f5b942)}
.wkc-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
/* the day of a logged workout (2026-10-07): the day choice in the tracker, the
   «Την έκανα άλλη μέρα» button and the line of a logged session on the week
   card. Chips wrap instead of scrolling, so every day is in sight on a phone. */
.trx-dayrow{margin:2px 0 16px;padding:13px 14px;border-radius:18px;border:1px solid var(--line,rgba(255,255,255,.09));background:var(--card,rgba(255,255,255,.04))}
[data-theme="light"] .trx-dayrow{background:#fff;border-color:var(--hairline)}
.trx-daychips{display:flex;flex-wrap:wrap;gap:8px}
.trx-daychips .chip{cursor:pointer;font-family:inherit}
.trx-daychips .chip:disabled{opacity:.4;cursor:default}
.trx-daynote{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:12.5px;color:var(--muted-fg)}
.trx-daynote svg{width:14px;height:14px;color:var(--primary);flex:none}
.trx-daynote b{color:var(--fg);font-weight:700}
.trx-otherday{margin-top:2px}
.trx-daylist .trx-ex:disabled{opacity:.55;cursor:default}
.wkc-log{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--hairline);font-size:12.5px;color:var(--muted-fg)}
.wkc-log svg{width:13px;height:13px;color:var(--primary);vertical-align:-2px}
.wkc-log b{color:var(--fg);font-weight:600}
.wkc-log .linkbtn{padding-left:0}
@media (min-width:560px){.wkc-log{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}}
/* the day of a logged meal (2026-10-08): the three day words under the date of
   the diary, the card of the hours after midnight, and the «wrong day» link
   under an answered meal. Same chips and day list as the workout above. */
.n2-daychips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}
.n2-daychips .chip{cursor:pointer;font-family:inherit}
.n2-late{display:flex;align-items:flex-start;gap:12px;margin-top:14px;padding:13px 14px;border-radius:16px;border:1px solid color-mix(in srgb,var(--warn) 45%,var(--hairline));background:color-mix(in srgb,var(--warn) 8%,var(--surface-1))}
.n2-late .nl-ic{width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--warn) 18%,transparent);color:var(--warn)}
.n2-late .nl-ic svg{width:19px;height:19px}
.n2-late b{font-size:14.5px}
.n2-late .nl-sub{margin-top:2px;font-size:12.5px;line-height:1.45;color:var(--muted-fg)}
.n2-late .nl-day{color:var(--fg);font-weight:600}
.ntx-mday{margin-top:10px;padding-left:0}
.ntx-mday svg{margin-right:3px}

/* #420 week calendar sheet (nutrition zoom-out): one collapsible row per
   weekday with that day's plan variation, meals and kcal; today highlighted */
.ntx-wkday { border: 1px solid var(--hairline); border-radius: 14px; margin-bottom: 8px; background: var(--surface-1); }
.ntx-wkday.today { border-color: var(--primary); }
.ntx-wkday-s { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.ntx-wkday-s::-webkit-details-marker { display: none; }
.ntx-wkday-s .nm { font-weight: 700; font-size: 14.5px; }
.ntx-wkday-s .sb { font-size: 12.5px; color: var(--muted-fg); margin-top: 1px; }
.ntx-wkday-s .q { color: var(--muted-fg); font-size: 12.5px; flex: none; }
.ntx-wkday-s > svg { flex: none; color: var(--muted-fg); transition: transform .18s ease; }
.ntx-wkday[open] .ntx-wkday-s > svg { transform: rotate(90deg); }
.ntx-wkbody { padding: 0 14px 10px; }
.ntx-wkmeal { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.ntx-wkmeal .q { color: var(--muted-fg); flex: none; }

/* ══ #511 · the check-in gate ═══════════════════════════════════════════════
   A takeover, not a sheet: it owns the viewport, it has no X, and its scrim is
   opaque so the app behind it is not even a tease. The tone ramps with how
   late the check-in is (green -> amber -> red) and nothing else about the
   layout moves, so the second time someone sees it they read the COLOUR first
   and know where they stand before reading a word. */
.cgx { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column;
  align-items: center; text-align: center; overflow-y: auto;
  padding: max(46px, calc(env(safe-area-inset-top, 0px) + 18px)) 22px max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  background: radial-gradient(120% 62% at 50% 0%, color-mix(in srgb, var(--primary) 13%, transparent) 0%, transparent 66%), var(--bg);
  opacity: 0; transition: opacity .22s var(--ease-out, ease); }
.cgx.show { opacity: 1; }
.cgx.late1 { background: radial-gradient(120% 62% at 50% 0%, color-mix(in srgb, var(--warn) 13%, transparent) 0%, transparent 66%), var(--bg); }
.cgx.late2 { background: radial-gradient(120% 62% at 50% 0%, color-mix(in srgb, var(--danger) 14%, transparent) 0%, transparent 66%), var(--bg); }
.cgx > * { width: 100%; max-width: 420px; }

.cgx-top { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.cgx-eye { width: 22px; height: 22px; object-fit: contain; }
.cgx-wk { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--faint-fg); }

.cgx-ring { width: 150px; height: 150px; margin: 0 auto; position: relative; flex: none; }
.cgx-ring svg { transform: rotate(-90deg); display: block; }
.cgx-ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cgx-ring .n { font-size: 44px; font-weight: 900; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.cgx-ring .u { font-size: 9.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--faint-fg); margin-top: 2px; }

.cgx-h { font-size: 23px; font-weight: 800; line-height: 1.16; letter-spacing: -.025em; margin: 17px 0 8px; }
.cgx-p { font-size: 13px; color: var(--muted-fg); margin: 0; line-height: 1.55; }

.cgx-strip { display: flex; justify-content: center; gap: 7px; margin: 18px 0 0; }
.cgx-strip > div { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cgx-strip em { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--faint-fg); }
.cgx-strip i { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 11px; font-weight: 900; border: 1.5px solid var(--hairline-strong); color: transparent; }
.cgx-strip i.on { background: var(--primary); border-color: var(--primary); color: #062A14; }
.cgx-strip .cgx-now i { border-style: dashed; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent); }
.cgx-strip .cgx-now em { color: var(--primary); }
.cgx.late1 .cgx-strip .cgx-now i { border-color: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 13%, transparent); }
.cgx.late1 .cgx-strip .cgx-now em { color: var(--warn); }
.cgx.late2 .cgx-strip .cgx-now i { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 13%, transparent); }
.cgx.late2 .cgx-strip .cgx-now em { color: var(--danger); }

/* Monarch's «here is what we will cover»: the antidote to «I will do it later»,
   because later is usually «I do not know how long this takes». */
.cgx-ask { border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface-1);
  padding: 12px 14px; margin-top: 18px; text-align: left; }
.cgx-ask-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.cgx-ask-h b { font-size: 11.5px; font-weight: 800; }
.cgx-ask-h span { font-size: 10.5px; font-weight: 800; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 13%, transparent); border-radius: 999px; padding: 2px 8px; }
.cgx-ask ul { margin: 0; padding: 0; list-style: none; }
.cgx-ask li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted-fg); padding: 4px 0; }
.cgx-ask li i { width: 16px; height: 16px; border-radius: 5px; flex: none; display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 900; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent); }

.cgx-coach { display: flex; align-items: center; gap: 10px; margin-top: 16px; text-align: left; }
.cgx-coach .av { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #062A14; background: var(--primary); }
.cgx-coach p { margin: 0; font-size: 11.5px; color: var(--muted-fg); line-height: 1.42; }
.cgx-coach b { color: var(--fg); font-weight: 700; }

.cgx-sp { flex: 1; min-height: 14px; }
.cgx-btn { display: block; width: 100%; max-width: 420px; border: 0; border-radius: 16px; padding: 15px 16px;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; }
.cgx-go { background: var(--primary); color: #062A14; box-shadow: 0 14px 30px -16px var(--primary); }
.cgx.late2 .cgx-go { background: var(--danger); color: #fff; box-shadow: 0 14px 30px -16px var(--danger); }
.cgx-exit { background: transparent; color: var(--faint-fg); font-size: 12.5px; font-weight: 600; padding: 12px; margin-top: 4px; }
/* the way to the plan: a real button, readable, there from the first frame */
.cgx-plan { background: var(--surface-1); color: var(--fg); border: 1px solid var(--border-control, var(--hairline-strong));
  font-size: 14px; font-weight: 700; margin-top: 10px; }
.cgx-ghost { background: transparent; color: var(--muted-fg); border: 1px solid var(--border-control, var(--hairline-strong));
  font-size: 13.5px; margin-top: 8px; }

/* the gentle one, three days out: a sheet that closes normally on purpose */
.cgx-soon { text-align: center; padding-bottom: 4px; }
.cgx-soon-ic { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--warn) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent); color: var(--warn); }
.cgx-soon-ic svg { width: 20px; height: 20px; }
.cgx-soon h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.015em; }
.cgx-soon p { font-size: 12.5px; color: var(--muted-fg); margin: 0 0 17px; line-height: 1.55; }
.cgx-soon .cgx-ask { margin: 0 auto 10px; max-width: 420px; }
/* on the wide desktop sheet the 420px buttons sat at the left edge, under a
   centred title (ΑΓΓΕΛΙΚΗ 2026-10-09) */
.cgx-soon .cgx-btn { margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .cgx { transition: none; } }
