/* Jurnified profile pages: Your Profile, Your Move, Your Data */
.me-page .main { gap: 32px; }
.me-card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.me-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--heading); display: flex; align-items: center; gap: 16px; }
.me-ic { color: var(--accent); font-size: 22px; width: 22px; height: 22px; flex: none; }
.me-text { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 760px; }
.me-text strong { color: var(--heading); font-weight: 600; }
.me-sub { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); margin-top: 6px; }
.me-shared { margin: 0 0 16px; max-width: 640px; }
.me-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.me-status { font-size: 15px; color: var(--brand-deep); font-weight: 500; min-height: 1px; }
.me-status:empty { display: none; }
.me-status.warn { color: #b42318; }

/* Change password (Your account) */
.me-pw { display: grid; gap: 16px; max-width: 440px; padding-top: 20px; border-top: 1px solid var(--border); }
.me-pw-form { display: grid; gap: 14px; }
.me-pw[hidden], .me-pw-form[hidden], .me-pw-mail[hidden] { display: none; }
.me-pw-mail { display: grid; gap: 14px; }
.me-pw-user { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.me-pass { position: relative; }
.me-pass input { padding-right: 52px; }
.me-eye { position: absolute; right: 2px; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.me-eye .i { width: 20px; height: 20px; }
.me-eye[aria-pressed="true"] { color: var(--brand); }
@media (hover: hover) and (pointer: fine) { .me-eye:hover { color: var(--brand); background: var(--row-hover); } }
.me-eye:active { scale: .97; }
.btn.link.me-pw-forgot { margin-left: 0; padding: 0; color: var(--brand); }

/* About You */
.me-name { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.me-name .field { flex: 1 1 260px; max-width: 360px; }

/* Your Journey */
.me-stages { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.me-stages li { padding: 12px 12px; border-radius: 12px; background: var(--page); text-align: center; font: 600 14px var(--font-display); color: var(--muted); }
.me-stages li.done { color: var(--brand-deep); background: var(--tint-teal); }
.me-stages li.cur { color: var(--card); background: var(--brand-deep); }
.me-prog { display: grid; gap: 8px; }
.me-prog-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.me-prog-lab { color: var(--body-strong); font-weight: 500; }
.me-prog-val { color: var(--heading); font: 600 15px var(--font-display); }
.me-bar { height: 10px; border-radius: 999px; background: rgba(14,133,159,.14); overflow: hidden; }
.me-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .3s ease-out; }

/* Your Answers */
.me-answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.me-answers > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px; border-radius: 16px; background: var(--page); }
.me-answers .me-a-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-teal); color: var(--brand); flex: none; }
.me-answers .me-a-ic .i { font-size: 16px; width: 15px; height: 15px; }
.me-answers dt { font-size: 13px; color: var(--muted); }
.me-answers dd { margin: 2px 0 0; font: 600 15px var(--font-display); color: var(--heading); }
.me-answers dd.unset { color: var(--muted); font-weight: 500; }
.me-notset { margin: 0; }

/* Your Data */
.me-saved { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.me-saved li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--page); }
.me-saved .me-s-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--card); color: var(--brand); flex: none; }
.me-saved .me-s-ic .i { font-size: 14px; width: 14px; height: 14px; }
.me-saved .me-s-name { font: 600 15px var(--font-display); color: var(--heading); display: block; }
.me-saved .me-s-st { font-size: 13px; color: var(--muted); display: block; }
.me-saved li.has .me-s-st { color: var(--brand-deep); }
.me-danger-solid { background: #b42318; color: #fff; }
@media (hover: hover) and (pointer: fine) { .me-danger-solid:hover { background: #912018; } }
.me-confirm { padding: 20px 20px; border-radius: 16px; background: #fef3f2; border: 1px solid #f2c4bf; display: grid; gap: 16px; }
.me-confirm-t { font-weight: 600; color: #7a271a; font-size: 15px; }

@media (max-width: 900px) {
  .me-card { padding: 28px 20px; border-radius: 24px; gap: 16px; }
  .me-title { font-size: 22px; }
  .me-stages { grid-template-columns: 1fr; }
  .me-stages li { text-align: left; padding: 12px 16px; }
}
.btn.me-danger { color: #b42318; border-color: #f2c4bf; }
@media (hover: hover) and (pointer: fine) { .btn.me-danger:hover { color: #912018; border-color: #b42318; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.me-danger { color: #fda29b; border-color: #7a271a; }
  @media (hover: hover) and (pointer: fine) { :root:not([data-theme="light"]) .btn.me-danger:hover { color: #fecdca; border-color: #f97066; } }
  :root:not([data-theme="light"]) .me-confirm { background: rgba(240,68,56,.12); border-color: #7a271a; }
  :root:not([data-theme="light"]) .me-confirm-t { color: #fecdca; }
  :root:not([data-theme="light"]) .me-status.warn { color: #fda29b; }
}
:root[data-theme="dark"] .btn.me-danger { color: #fda29b; border-color: #7a271a; }
  @media (hover: hover) and (pointer: fine) { :root[data-theme="dark"] .btn.me-danger:hover { color: #fecdca; border-color: #f97066; } }
  :root[data-theme="dark"] .me-confirm { background: rgba(240,68,56,.12); border-color: #7a271a; }
  :root[data-theme="dark"] .me-confirm-t { color: #fecdca; }
  :root[data-theme="dark"] .me-status.warn { color: #fda29b; }

/* Profile photo */
.me-photo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.me-photo-pic { width: 96px; height: 96px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--tint-teal); color: var(--brand); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--border-teal); }
.me-photo-pic svg { width: 56%; height: 56%; }
.me-photo-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-photo-pic.has-photo svg { display: none; }
.me-photo-body { display: grid; gap: 8px; min-width: 0; flex: 1 1 220px; }
.me-photo-btn { position: relative; cursor: pointer; }
.me-photo-btn:focus-within { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.me-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.btn.link.me-photo-rm { margin-left: 0; }
.me-hint { font-size: 14px; color: var(--muted); }

/* Your own dates */
.me-date-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.me-date-form .field { flex: 1 1 200px; max-width: 320px; }
.me-dates { list-style: none; display: grid; gap: 8px; }
.me-dates li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--page); }
.me-dates li.kd-empty { color: var(--muted); font-size: 15px; }
.me-d-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-teal); color: var(--brand); flex: none; }
.me-d-b { flex: 1; min-width: 0; display: grid; }
.me-d-t { font: 600 15px var(--font-display); color: var(--heading); overflow-wrap: anywhere; }
.me-d-s { font-size: 13px; color: var(--muted); }
.me-dates .ibtn { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--body); cursor: pointer; display: grid; place-items: center; }
@media (hover: hover) and (pointer: fine) { .me-dates .ibtn:hover { border-color: #b3261e; color: #b3261e; } }

/* Opening without jumps (12 Nov 2026): the "Your account" card is filled in once the sign-in check finishes;
   hold its finished size until then (measured 12 Nov 2026) */
#acctText { min-height: 79px; }
#acctActs:empty { min-height: 44px; }
@media (max-width: 640px) { #acctText { min-height: 158px; } }
/* Your move: hold the space of the seven setup answers until profile.js fills them (finished setup only) */
.jf-done #answers:empty { min-height: 332px; }
@media (min-width: 1101px) { .jf-done #answers:empty { min-height: 246px; } }
@media (max-width: 640px) { .jf-done #answers:empty { min-height: 591px; } }
/* Your data: hold the space of the list of what's saved until profile.js fills it */
#saved:empty { min-height: 283px; }
@media (min-width: 1101px) { #saved:empty { min-height: 246px; } }
@media (max-width: 640px) { #saved:empty { min-height: 588px; } }

/* Appearance (14 Nov 2026, appearance.html / appearance.js) */
.ap-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-opt { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--card); cursor: pointer; }
.ap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt:has(input:checked) { border-color: var(--brand); background: var(--tint-teal); }
.ap-opt:has(input:focus-visible) { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ap-opt:hover { border-color: var(--brand); } }
.ap-opt:active { scale: .97; }
.ap-name { display: flex; align-items: center; gap: 8px; font: 600 15px var(--font-display); color: var(--heading); }
.ap-name .i { color: var(--brand); flex: none; }
.ap-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
/* small picture of a page in each theme */
.ap-prev { display: flex; flex-direction: column; gap: 6px; height: 72px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.ap-prev::before { content: ""; height: 12px; border-radius: 4px; background: #0b7c95; }
.ap-prev i { display: block; height: 8px; border-radius: 4px; }
.ap-prev i + i { width: 60%; }
.ap-prev-light { background: #f3f4f6; } .ap-prev-light i { background: #fff; box-shadow: 0 0 0 1px #e5e7eb; }
.ap-prev-dark { background: #0a1316; } .ap-prev-dark::before { background: #0a5f73; } .ap-prev-dark i { background: #1d2c33; }
.ap-prev-sys { background: linear-gradient(115deg, #f3f4f6 50%, #0a1316 50%); } .ap-prev-sys i { background: linear-gradient(115deg, #fff 50%, #1d2c33 50%); }
.ap-size { align-items: center; text-align: center; padding: 16px 12px; }
.ap-size .ap-name { justify-content: center; font-size: 14px; }
.ap-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 400px) { .ap-sizes { gap: 8px; } .ap-size { padding: 14px 4px; } .ap-size .ap-name { font-size: 13px; } }
.ap-aa { font-family: var(--font-display); font-weight: 600; color: var(--heading); line-height: 1; height: 28px; display: grid; place-items: end center; }
.ap-aa0 { font-size: 13px; } .ap-aa1 { font-size: 16px; } .ap-aa2 { font-size: 21px; } .ap-aa3 { font-size: 26px; }
.ap-sample { padding: 12px 16px; border-radius: var(--radius-md); background: var(--page); font-size: 15px; line-height: 1.5; color: var(--body); }
.ap-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.ap-sw-t { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ap-sw-t strong { font: 600 16px var(--font-display); color: var(--heading); }
.ap-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-track { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--chip); border: 1px solid var(--border); transition: background .2s; }
.ap-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.ap-switch input:checked + .ap-track { background: var(--brand); border-color: var(--brand); }
.ap-switch input:checked + .ap-track::after { transform: translateX(20px); }
.ap-switch input:focus-visible + .ap-track { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.ap-foot { gap: 12px; }
@media (max-width: 640px) {
  .ap-themes { grid-template-columns: minmax(0, 1fr); }
  .ap-themes .ap-opt { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "p n" "p d"; column-gap: 12px; row-gap: 2px; align-items: center; }
  .ap-themes .ap-prev { grid-area: p; height: 60px; padding: 8px; gap: 4px; } .ap-themes .ap-prev::before { height: 10px; }
  .ap-themes .ap-name { grid-area: n; align-self: end; } .ap-themes .ap-desc { grid-area: d; align-self: start; }
}
