/* Moi et Mémoire de Pico — verre Summit, mêmes jetons que Nutrition et Progrès. */
body:is([data-view="profile"],[data-view="memory"]) {
  --page: #f4f9fd; --ink: #07102a; --muted: #4f5f7c;
  --nt-core: #ffffffa8; --nt-hair: #07102a0f; --nt-line: #07102a14; --nt-track: #07102a1f;
  --nt-soft: #0866ff17; --nt-soft-2: #0866ff2e; --nt-blue: #0866ff; --nt-gold: #9a6d12; --nt-violet: #6d4fd6; --nt-orange: #b4520f;
  --me-green: #13805b; --me-green-bg: #13805b1a; --me-gold-bg: #c4932f24; --me-violet-bg: #8370c929; --me-red: #c2410c; --me-red-bg: #c2410c14;
  --me-r: 26px; background: var(--page);
}
html[data-today-theme="dark"] body:is([data-view="profile"],[data-view="memory"]) {
  --page: #051b28; --ink: #eef4ff; --muted: #a9bdd8;
  --nt-core: #081c2b9e; --nt-hair: #ffffff0f; --nt-line: #ffffff14; --nt-track: #ffffff24;
  --nt-soft: #3d8bff24; --nt-soft-2: #3d8bff3d; --nt-blue: #3d8bff; --nt-gold: #e0b45a; --nt-violet: #b4a3f0; --nt-orange: #f3a56b;
  --me-green: #5fd3a3; --me-green-bg: #5fd3a31f; --me-gold-bg: #e0b45a24; --me-violet-bg: #b4a3f029; --me-red: #ff9b7a; --me-red-bg: #ff9b7a1a;
  --nav-glass: #091e2e80; --nav-glass-hi: #16344cbf; --nav-edge: #ffffff17; --nav-hair: #ffffff12; --nav-link: #6aa6ff; --nav-shadow: 0 30px 80px -30px #00000099; --nav-inset: inset 0 1px 0 #ffffff0f;
  color-scheme: dark;
}
body:is([data-view="profile"],[data-view="memory"]) main { max-width: 1240px; padding: 0 30px 72px; }

.me, .me-sheet { color: var(--ink); }
.me { display: flex; flex-direction: column; gap: 18px; }
.me > .me-hero, .me > .me-page-head { margin-bottom: -18px; }
.me p, .me-sheet p { margin: 0; }
.me .wellness-icon, .me-sheet .wellness-icon { width: 20px; height: 20px; }
.me a { color: inherit; }

/* En-tête */
.me-hero { display: flex; align-items: center; gap: 24px; padding: 30px 8px 28px; }
.me-hero-pic { position: relative; flex-shrink: 0; }
.me-avatar { display: grid; place-items: center; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #4f95ff, var(--nt-blue)); color: #fff; font-weight: 800; }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-avatar.is-xl { width: 96px; height: 96px; font-size: 38px; border: 4px solid var(--nav-glass-hi); box-shadow: 0 18px 40px -18px #0866ff99; }
.me-avatar.is-sheet { width: 104px; height: 104px; font-size: 40px; }
.me-cam { position: absolute; right: -6px; bottom: -6px; }
.me-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--nav-edge); border-radius: 999px; background: var(--nav-glass); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.me-eyebrow .wellness-icon { width: 15px; height: 15px; color: var(--nav-link); }
.me h1 { margin: 12px 0 0; font-size: 48px; font-weight: 300; line-height: 1.04; letter-spacing: -2px; text-wrap: balance; }
.me h1 strong { font-weight: 800; }
.me-lead { margin-top: 8px !important; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 640px; }
.me-page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 22px 6px 22px; }
.me-page-head h1 { margin-top: 8px; font-size: 38px; font-weight: 800; letter-spacing: -1.4px; }
.me-page-head .me-eyebrow { margin-top: 8px; }
.me-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--nav-link) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.me-back .wellness-icon { width: 18px; height: 18px; }

/* Grille et cartes */
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.me-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px 24px; border: 5px solid var(--nav-glass); border-radius: var(--me-r); background: var(--nt-core) padding-box; box-shadow: 0 0 0 1px var(--nav-edge), var(--nav-shadow); backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%); }
.me-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.me-card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.me-card-head h2 .wellness-icon { color: var(--nav-link); }
.me-intro { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.me-tiny { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.me-tiny.is-center { text-align: center; }
.me-tiny.is-strong { color: var(--ink); font-weight: 750; }
.me-tiny a { color: var(--nav-link); font-weight: 650; }
.me-foot { margin: 4px 8px 0 !important; text-align: center; font-size: 12.5px; }
.me-foot a { color: var(--muted) !important; }
.me-label { margin: 6px 2px -4px !important; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.me-section-label { margin: 6px 2px 0 !important; color: var(--muted); font-size: 12.5px; font-weight: 750; }
.me-stack { display: flex; flex-direction: column; gap: 12px; }
.me-error { color: var(--me-red); font-size: 13px; font-weight: 650; }
.me-row-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-row-inline.is-between { justify-content: space-between; }
.me-center { display: flex; justify-content: center; padding: 4px 0 6px; }

/* Faits « Mes repères » */
.me-facts { display: flex; flex-direction: column; margin: 0; }
.me-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 42px; padding: 8px 0; }
.me-facts div + div { border-top: 1px solid var(--nt-line); }
.me-facts dt { color: var(--muted); font-size: 13.5px; }
.me-facts dd { margin: 0; font-size: 14.5px; font-weight: 750; text-align: right; }
.me-facts dd.is-unknown { color: var(--muted); font-weight: 600; }

/* Listes réglages */
.me-set { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--nt-hair); }
.me-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin: 0; padding: 8px 14px 8px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink) !important; font: inherit; text-align: left; text-decoration: none; cursor: default; }
.me-row + .me-row { border-top: 1px solid var(--nt-line); }
:is(a, button).me-row { cursor: pointer; transition: background .3s var(--nav-ease); }
:is(a, button).me-row:hover, :is(a, button).me-row:focus-visible { background: var(--nt-hair); color: var(--ink); }
.me-row:disabled { opacity: .55; cursor: not-allowed; }
.me-row > .wellness-icon { width: 16px; height: 16px; color: var(--muted); }
.me-tile { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--nav-glass-hi); color: var(--nav-link); box-shadow: 0 1px 0 var(--nav-edge); }
.me-tile .wellness-icon { width: 19px; height: 19px; }
.me-grow { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.me-grow strong { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.me-sub { color: var(--muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.me-val { flex-shrink: 0; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.me-row.is-danger strong { color: var(--me-red); }
.me-row.is-danger .me-tile { background: var(--me-red-bg); color: var(--me-red); }
.me-row.is-loading .me-grow strong, .me-row.is-loading .me-sub { color: var(--muted); }
.me-row.is-compact { min-height: 56px; padding-left: 14px; }
.me-chip { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--nt-hair); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.me-chip.is-green { background: var(--me-green-bg); color: var(--me-green); }
.me-chip.is-gold { background: var(--me-gold-bg); color: var(--nt-gold); }
.me-chip[hidden], .me-val[hidden], .me-sub[hidden] { display: none; }

/* Interrupteur */
.me-switch { position: relative; flex-shrink: 0; width: 52px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--nt-track); box-shadow: none; cursor: pointer; transition: background .3s; }
.me-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #07102a40; transition: transform .35s var(--nav-ease); }
.me-switch.is-on { background: var(--me-green); }
.me-switch.is-on::after { transform: translateX(20px); }
.me-switch:hover { background: var(--nt-track); }
.me-switch.is-on:hover { background: var(--me-green); }
.me-switch:disabled { opacity: .5; cursor: not-allowed; }
.me-switch:focus-visible { outline: 3px solid var(--nt-soft-2); outline-offset: 2px; }
.me-switch::before { content: ''; position: absolute; inset: -6px; }

/* Boutons */
.me-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--nt-blue); box-shadow: 0 14px 28px -14px #0866ffb3; color: #fff !important; font: inherit; font-size: 15px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .4s var(--nav-ease), filter .3s, background .3s; }
.me-btn:hover { background: var(--nt-blue); filter: brightness(1.06); }
.me-btn:active { transform: scale(.98); }
.me-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.me-btn .wellness-icon { width: 18px; height: 18px; }
.me-btn.is-quiet, .me-btn.is-block { background: var(--nt-hair); box-shadow: none; color: var(--ink) !important; }
.me-btn.is-quiet:hover, .me-btn.is-block:hover { background: var(--nt-line); filter: none; }
.me-btn.is-block { background: var(--nav-glass-hi); box-shadow: 0 0 0 1px var(--nav-edge); }
.me-btn.is-soft { background: var(--nt-soft); box-shadow: none; color: var(--nav-link) !important; }
.me-btn.is-soft:hover { background: var(--nt-soft-2); filter: none; }
.me-btn.is-danger { background: #c2410c; box-shadow: 0 14px 28px -14px #c2410cb3; }
.me-btn.is-danger:hover { background: #c2410c; }
.me-btn.is-red { color: var(--me-red) !important; }
.me-btn.is-ghost { justify-content: space-between; min-height: 48px; padding: 0 6px 0 18px; background: var(--nt-soft); box-shadow: none; color: var(--nav-link) !important; font-size: 14.5px; }
.me-btn.is-ghost:hover { background: var(--nt-soft-2); filter: none; }
.me-ghost-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--nav-glass-hi); }
.me-ghost-ic .wellness-icon { width: 16px !important; height: 16px !important; }
.me-btn.is-small { width: auto; min-height: 44px; padding: 0 14px; font-size: 13px; }
.me-btn.is-chip { width: auto; min-height: 40px; padding: 0 12px; gap: 6px; background: var(--nt-hair); box-shadow: none; color: var(--ink) !important; font-size: 12.5px; font-weight: 650; }
.me-btn.is-chip:hover { background: var(--nt-line); filter: none; }
.me-btn.is-chip .wellness-icon { width: 15px; height: 15px; color: var(--nav-link); }
.me-card > .me-btn.is-ghost { margin-top: auto; }
.me-icon-btn { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--nav-edge); border-radius: 50%; background: var(--nav-glass-hi); box-shadow: var(--nav-inset), 0 8px 20px -12px #07102a66; color: var(--ink); cursor: pointer; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.me-icon-btn:hover { background: var(--nav-glass-hi); color: var(--nav-link); }
.me-icon-btn .wellness-icon { width: 18px; height: 18px; }
.me-round { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--nav-glass-hi); box-shadow: 0 1px 0 var(--nav-edge); color: var(--ink); cursor: pointer; }
.me-round:hover { background: var(--nt-soft); color: var(--ink); }
.me-round.is-big { width: 54px; height: 54px; }
.me-link { color: var(--nav-link) !important; font-size: 13.5px; font-weight: 700; text-align: center; }

/* Notices */
.me-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--nt-soft); }
.me-notice > .wellness-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--nav-link); }
.me-notice strong { display: block; font-size: 14.5px; font-weight: 750; }
.me-notice p { margin-top: 3px !important; color: var(--muted); font-size: 13px; line-height: 1.5; }
.me-notice.is-ok { background: var(--me-green-bg); }
.me-notice.is-ok > .wellness-icon { color: var(--me-green); }
.me-notice.is-warn { background: var(--me-gold-bg); }
.me-notice.is-warn > .wellness-icon { color: var(--nt-gold); }
.me-notice.is-danger { background: var(--me-red-bg); }
.me-notice.is-danger > .wellness-icon { color: var(--me-red); }

/* Zone sensible et sections dépliables */
.me-zone summary { display: flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.me-zone[open] summary { margin-bottom: 6px; }
.me-more { padding: 0; gap: 0; }
.me-more > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 20px; cursor: pointer; list-style: none; }
.me-more > summary::-webkit-details-marker { display: none; }
.me-more > summary .wellness-icon { color: var(--nav-link); }
.me-more > summary span { font-size: 15px; font-weight: 750; }
.me-more > summary small { margin-left: auto; color: var(--muted); font-size: 12.5px; text-align: right; }
.me-more > :not(summary) { margin: 0 20px 20px; }

.me-legacy .card, .me-legacy .wiki-panel { margin: 0 0 12px; border: 0; background: transparent; box-shadow: none; padding: 0; }
.me-legacy label { margin-bottom: 6px; }

/* Étapes et listes */
.me-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.me-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.me-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--nt-soft); color: var(--nav-link); font-size: 12.5px; font-weight: 800; }
.me-bullets { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.8; }
.me-code { padding: 12px 14px; border-radius: 16px; background: var(--nt-hair); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* Champs */
.me-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.me-field > span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.me-field input, .me-textarea { width: 100%; min-height: 50px; margin: 0; padding: 0 16px; border: 1px solid var(--nt-line); border-radius: 16px; background: var(--nav-glass-hi); box-shadow: none; color: var(--ink); font: inherit; font-size: 16px; }
.me-textarea { min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.me-field input:focus, .me-textarea:focus { outline: none; border-color: var(--nt-blue); box-shadow: 0 0 0 3px var(--nt-soft-2); }
.me-meter { height: 6px; overflow: hidden; border-radius: 9px; background: var(--nt-track); }
.me-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--me-red); transition: width .4s var(--nav-ease), background .3s; }
.me-meter[data-score="2"] i { background: var(--nt-gold); }
.me-meter[data-score="3"] i, .me-meter[data-score="4"] i { background: var(--me-green); }

/* Segments, options, thèmes */
.me-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--nt-hair); }
.me-seg button { flex: 1; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.me-seg button:hover { background: var(--nt-hair); color: var(--ink); }
.me-seg button.is-on, .me-seg button.is-on:hover { background: var(--nav-glass-hi); color: var(--ink); box-shadow: 0 6px 16px -10px #0d2a5a59; }
.me-seg button:disabled { opacity: .5; cursor: not-allowed; }
.me-opts { display: grid; gap: 8px; }
.me-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 0; padding: 10px 14px; border: 1.5px solid transparent; border-radius: 18px; background: var(--nt-hair); box-shadow: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.me-opt:hover { background: var(--nt-line); color: var(--ink); }
.me-opt > .wellness-icon { width: 20px; height: 20px; color: var(--nav-link); }
.me-opt strong { font-size: 14.5px; font-weight: 750; }
.me-opt.is-on, .me-opt.is-on:hover { background: var(--nt-soft); border-color: var(--nt-blue); }
.me-opt.is-danger strong, .me-opt.is-danger > .wellness-icon { color: var(--me-red); }
.me-dot { flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--nt-line); border-radius: 50%; transition: border .25s; }
.me-opt.is-on .me-dot { border: 7px solid var(--nt-blue); }
.me-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.me-theme { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 10px 8px 12px; border: 1.5px solid transparent; border-radius: 18px; background: var(--nt-hair); box-shadow: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.me-theme:hover { background: var(--nt-line); color: var(--ink); }
.me-theme i { display: block; width: 100%; height: 64px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--nt-line); }
.me-theme.is-system i { background: linear-gradient(135deg, #f4f9fd 50%, #051b28 50%); }
.me-theme.is-light i { background: #f4f9fd; }
.me-theme.is-dark i { background: #051b28; }
.me-theme.is-on, .me-theme.is-on:hover { border-color: var(--nt-blue); background: var(--nt-soft); }

/* Stepper et repos */
.me-stepper { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 6px 6px 16px; border-radius: 18px; background: var(--nt-hair); }
.me-stepper-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.me-stepper-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.me-stepper-value { display: flex; align-items: baseline; gap: 4px; }
.me-stepper-value input { width: 6ch; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.me-stepper-value input::-webkit-inner-spin-button, .me-stepper-value input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.me-stepper-value input:focus { outline: none; box-shadow: 0 2px 0 var(--nt-blue); }
.me-stepper-value small { color: var(--muted); font-size: 13px; font-weight: 650; }
.me-stepper-hint { color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.me-stepper-btns { display: flex; gap: 6px; }
.me-total { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px; }
.me-total span { color: var(--muted); font-size: 13.5px; }
.me-total b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.me-rest { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 0; }
.me-rest b { min-width: 4ch; font-size: 54px; font-weight: 800; letter-spacing: -2px; text-align: center; font-variant-numeric: tabular-nums; }
.me-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.me-chip-btn { min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--nt-hair); box-shadow: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.me-chip-btn:hover { background: var(--nt-line); color: var(--ink); }
.me-chip-btn.is-on, .me-chip-btn.is-on:hover { background: var(--ink); color: var(--page); }

/* Feuilles */
.me-sheet { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: min(860px, calc(100dvh - 48px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--nav-edge); border-radius: 30px; background: var(--page); color: var(--ink); box-shadow: 0 40px 100px -30px #04101e99; }
.me-sheet::backdrop { background: #07102a59; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.me-sheet-inner { display: flex; flex-direction: column; gap: 12px; max-height: inherit; padding: 10px 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.me-sheet-inner > * { flex-shrink: 0; }
.me-grab { display: none; width: 40px; height: 5px; margin: 0 auto; border-radius: 9px; background: var(--nt-line); }
.me-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.me-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.me-sheet-sub { margin-top: -6px !important; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.me-sheet-body { display: flex; flex-direction: column; gap: 12px; }
.me-sheet .me-icon-btn { box-shadow: none; background: var(--nt-hair); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Mémoire */
.me-mem-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.me-mem-main, .me-mem-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.me-mem-side { gap: 20px; }
.me-search { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 16px; border: 1px solid var(--nav-edge); border-radius: 999px; background: var(--nav-glass-hi); box-shadow: var(--nav-inset), 0 10px 30px -22px #14386e80; }
.me-search .wellness-icon { color: var(--muted); }
.me-search input { flex: 1; min-width: 0; min-height: 50px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.me-search:focus-within { box-shadow: 0 0 0 3px var(--nt-soft-2); }
.me-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.me-filters button { flex-shrink: 0; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: var(--nt-hair); box-shadow: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.me-filters button:hover { background: var(--nt-line); color: var(--ink); }
.me-filters button.is-on, .me-filters button.is-on:hover { background: var(--ink); color: var(--page); }
.me-filters button b { margin-left: 5px; font-weight: 700; opacity: .65; }
.me-asks { display: flex; flex-direction: column; gap: 10px; }
.me-asks:empty { display: none; }
.me-ask { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #c4932f40; border-radius: 22px; background: var(--me-gold-bg); }
.me-ask .me-row-inline .wellness-icon { color: var(--nt-gold); }
.me-ask strong { font-size: 15px; font-weight: 750; }
.me-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.me-note { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; border: 1px solid var(--nav-edge); border-radius: 22px; background: var(--nav-glass-hi); box-shadow: 0 12px 30px -22px #14386e80; }
.me-note.is-pinned { box-shadow: 0 0 0 1.5px var(--nt-blue), 0 12px 30px -22px #14386e80; }
.me-note h3 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.2px; }
.me-note p { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.me-note .me-src { color: var(--muted); font-size: 12px; }
.me-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.me-ask .me-acts .me-btn { width: auto; min-height: 44px; font-size: 13.5px; }
.me-pin { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.me-pin .wellness-icon { width: 14px; height: 14px; }
.me-who { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.me-who .wellness-icon { width: 13px; height: 13px; }
.me-who.is-said { background: var(--nt-soft); color: var(--nav-link); }
.me-who.is-seen { background: var(--me-green-bg); color: var(--me-green); }
.me-who.is-guess { background: var(--me-gold-bg); color: var(--nt-gold); }
.me-who.is-deal { background: var(--me-violet-bg); color: var(--nt-violet); }
.me-legend { display: flex; flex-direction: column; gap: 10px; }
.me-legend > div { display: flex; align-items: flex-start; gap: 10px; }
.me-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.me-stat { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 18px; background: var(--nt-hair); }
.me-stat span { color: var(--muted); font-size: 12px; font-weight: 700; }
.me-stat b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.me-timeline { gap: 0; }
.me-ver { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 18px 28px; }
.me-ver::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 0; width: 2px; background: var(--nt-line); }
.me-ver:last-child::before { display: none; }
.me-ver::after { content: ''; position: absolute; left: 3px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--nt-blue); box-shadow: 0 0 0 4px var(--nt-soft); }
.me-ver.is-old::after { background: var(--muted); box-shadow: none; }
.me-ver.is-old > p:not(.me-tiny) { color: var(--muted); }
.me-ver p { font-size: 14px; line-height: 1.5; }
.me-ver .me-btn { align-self: flex-start; }
.me-graph { position: relative; height: 440px; overflow: hidden; border: 5px solid var(--nav-glass); border-radius: var(--me-r); background: var(--nt-core) padding-box; box-shadow: 0 0 0 1px var(--nav-edge); }
.me-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.me-graph line { stroke: var(--nt-line); stroke-width: 2; }
.me-graph line.is-conflict { stroke: var(--nt-gold); stroke-dasharray: 5 5; }
.me-gnode { position: absolute; max-width: 44%; min-height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--nav-edge); border-radius: 999px; background: var(--nav-glass-hi); box-shadow: 0 10px 20px -14px #14386e99; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translate(-50%, -50%); cursor: pointer; }
.me-gnode span { display: block; overflow: hidden; text-overflow: ellipsis; }
.me-gnode:hover { background: var(--nt-soft); color: var(--ink); }
.me-gnode.is-center, .me-gnode.is-center:hover { min-height: 46px; background: var(--nt-blue); color: #fff; font-size: 13.5px; cursor: default; }
.me-gnode.is-conflict { border-color: var(--nt-gold); }
.me .me-chips { justify-content: flex-start; }

/* Apparition */
@media (prefers-reduced-motion: no-preference) {
  .me.is-entering > * { animation: me-rise .55s var(--nav-ease) both; }
  .me.is-entering > :nth-child(2) { animation-delay: .05s; }
  .me.is-entering > :nth-child(3) { animation-delay: .1s; }
  .me.is-entering > :nth-child(n+4) { animation-delay: .15s; }
  .me.is-entering .me-grid > *:nth-child(2n) { animation: me-rise .55s .08s var(--nav-ease) both; }
  .me-sheet.is-entering { animation: me-pop .45s var(--nav-ease) both; }
  .me-sheet.is-entering::backdrop { animation: me-fade .35s ease both; }
  .me-switch::after { will-change: transform; }
}
body[data-today-motion="none"] :is(.me, .me-sheet), body[data-today-motion="none"] :is(.me, .me-sheet) * { animation: none !important; transition: none !important; }
@keyframes me-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes me-pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes me-fade { from { opacity: 0; } }
@keyframes me-sheet-up { from { transform: translateY(100%); } }

@media (max-width: 1000px) {
  .me-mem-grid { grid-template-columns: 1fr; }
  .me-notes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body:is([data-view="profile"],[data-view="memory"]) main { padding: 0 14px calc(var(--bottom-nav-space, 90px) + 40px); }
  .me-hero { flex-direction: column; text-align: center; gap: 14px; padding: 18px 0 20px; }
  .me-hero .me-eyebrow { display: none; }
  .me h1 { margin-top: 0; font-size: 30px; letter-spacing: -1px; }
  .me-hero h1 strong { display: block; }
  .me-page-head { padding: 10px 2px 16px; }
  .me-page-head h1 { font-size: 30px; }
  .me-grid { grid-template-columns: 1fr; gap: 14px; }
  .me-card { padding: 18px 16px; }
  .me-filters { flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; }
  .me-filters::-webkit-scrollbar { display: none; }
  .me-graph { height: 380px; }
  .me-gnode { max-width: 40%; font-size: 11.5px; }
  .me-more > summary small { display: none; }
  .me-sheet { width: 100vw; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; }
  .me-sheet-inner { padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); }
  .me-grab { display: block; }
  @media (prefers-reduced-motion: no-preference) { .me-sheet.is-entering { animation: me-sheet-up .45s var(--nav-ease) both; } }
}

.me-row.is-compact .me-grow strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
/* Panneau de synchronisation existant, dans le même verre */
body:is([data-view="profile"],[data-view="memory"]) #sync-panel { margin: 18px 0 0; padding: 16px 20px; border: 5px solid var(--nav-glass); border-radius: var(--me-r); background: var(--nt-core) padding-box; box-shadow: 0 0 0 1px var(--nav-edge), var(--nav-shadow); backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%); color: var(--ink); }
body:is([data-view="profile"],[data-view="memory"]) #sync-panel p { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }
body:is([data-view="profile"],[data-view="memory"]) #sync-panel a { color: var(--nav-link); font-size: 14px; font-weight: 700; }
