/* My Zjell Portfolio app — ZJELL Models design tokens (same as the website child theme). Mobile-first. */
:root {
  --ink: #111111; --ink-2: #4a4a4a; --ink-3: #8a8a8a; --ink-4: #c7c2ba;
  --paper: #ffffff; --paper-2: #f6f4f1; --paper-3: #efece6;
  --line: #e6e2dc; --line-2: #d7d1c7;
  --gold: #b8894a; --gold-tint: #f4ead9;
  --ok: #1f7a5a; --ok-tint: #e6f2ee;
  --danger: #b3261e; --danger-tint: #fbe9e7;
  --info: #1e5b8c; --info-tint: #e7eff6;
  --wa: #25d366; --wa-dark: #1fb355; --tg: #26a5e4; --tg-dark: #1d8fc9;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(17,17,17,.06), 0 8px 24px rgba(17,17,17,.06);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px; --bar-h: 56px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper-2); -webkit-font-smoothing: antialiased; text-size-adjust: 100%; overscroll-behavior-y: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boot */
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--ink); }
.boot__mark { width: 72px; height: 72px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }

/* App shell */
.app { min-height: 100vh; }
.screen { min-height: 100vh; padding-top: calc(var(--bar-h) + var(--safe-top)); padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px); }
.screen--nonav { padding-bottom: calc(var(--safe-bottom) + 32px); }
.screen--flush { padding-top: 0; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(var(--bar-h) + var(--safe-top)); padding-top: var(--safe-top); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: 640px; height: var(--bar-h); margin: 0 auto; padding: 0 8px; display: flex; align-items: center; gap: 4px; }
.topbar__title { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }
.topbar__brand { flex: 1; padding-left: 8px; display: flex; align-items: center; }
.topbar__brand img { height: 22px; width: auto; }
.topbar--dark { background: rgba(17,17,17,.94); border-bottom-color: #222; color: #fff; }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: inherit; }
.iconbtn:active { background: var(--paper-3); }
.iconbtn svg { width: 22px; height: 22px; }

.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding-bottom: var(--safe-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav__in { max-width: 640px; margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .02em; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }

/* Type */
.h1 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; margin: 0; }
.h3 { font-size: 16px; font-weight: 600; margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; color: var(--ink-3); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 10px; }
.section-title .h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .08s ease, opacity .15s; width: 100%; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn--ig { background: linear-gradient(92deg, #d62976 0%, #962fbf 60%, #4f5bd5 100%); border-color: transparent; color: #fff; }
.btn--danger { background: var(--danger); border-color: var(--danger); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-stack { display: grid; gap: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* Cards & lists */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card--flat { box-shadow: none; }
.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; text-decoration: none; color: inherit; }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--paper-2); }
.row__icon { flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); }
.row__icon svg { width: 20px; height: 20px; }
.row__body { flex: 1; min-width: 0; }
.row__title { font-weight: 600; font-size: 15px; display: block; }
.row__sub { font-size: 13px; color: var(--ink-3); display: block; margin-top: 1px; }
.row__end { flex: 0 0 auto; color: var(--ink-3); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.row__end svg { width: 18px; height: 18px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--paper-3); color: var(--ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill--live { background: var(--ok-tint); color: var(--ok); }
.pill--review { background: var(--gold-tint); color: #8a5f22; }
.pill--draft { background: var(--paper-3); color: var(--ink-2); }
.pill--private { background: #e9e7f3; color: #4a3f8a; }
.badge-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 22px; }
.tick--ok { background: var(--ok); color: #fff; }
.tick--todo { border: 2px solid var(--line-2); }
.tick svg { width: 14px; height: 14px; }

/* Notices */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.45; }
.notice svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.notice--info { background: var(--info-tint); color: #163f60; }
.notice--warn { background: var(--gold-tint); color: #6d4a17; }
.notice--danger { background: var(--danger-tint); color: #7d1a15; }
.notice--ok { background: var(--ok-tint); color: #155a42; }
.notice--dark { background: #1b1b1b; color: #e8e4dd; }
.offline { position: fixed; z-index: 40; left: 12px; right: 12px; top: calc(var(--safe-top) + var(--bar-h) + 8px); }

/* Login */
.login { min-height: 100vh; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.login__hero { position: relative; height: 46vh; min-height: 300px; max-height: 460px; overflow: hidden; }
.login__hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.9); }
.login__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.35) 0%, rgba(17,17,17,0) 30%, rgba(17,17,17,.2) 60%, var(--ink) 100%); }
.login__brand { position: absolute; z-index: 1; top: calc(var(--safe-top) + 20px); left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; }
.login__brand img { height: 26px; width: auto; }
.login__brand span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.login__body { flex: 1; padding: 0 20px calc(var(--safe-bottom) + 28px); margin-top: -64px; position: relative; z-index: 2; max-width: 520px; width: 100%; align-self: center; }
.login__title { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.02; margin: 0 0 10px; }
.login__lede { color: #cfc9bf; margin: 0 0 22px; font-size: 15px; }
.login .field__label { color: #e8e4dd; }
.login .input { background: #1c1c1c; border-color: #333; color: #fff; }
.login .input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.login .input::placeholder { color: #777; }
.login__links { display: flex; justify-content: space-between; margin: 14px 2px 22px; font-size: 14px; }
.login__links button { color: #e8e4dd; }
.login__join { border-top: 1px solid #2a2a2a; padding-top: 20px; text-align: center; }
.login__join p { color: #cfc9bf; margin: 0 0 12px; font-size: 14px; }
.login__free { margin-top: 18px; font-size: 12.5px; color: #8f8a82; text-align: center; line-height: 1.5; }
.login .btn--ghost { color: #fff; border-color: #444; }

/* Forms */
.field { margin-bottom: 18px; }
.field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__help { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.field__error { font-size: 13px; color: var(--danger); margin-top: 6px; font-weight: 500; }
.field--error .input { border-color: var(--danger); background: #fffafa; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; pointer-events: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter { text-align: right; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--paper); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓"; font-size: 12px; }

.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.switch-row__label { flex: 1; font-size: 15px; font-weight: 500; }
.switch { position: relative; flex: 0 0 52px; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17,17,17,.2); }

.savebar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.savebar__in { max-width: 608px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.savebar__note { flex: 1; font-size: 13px; color: var(--ink-3); }
.savebar .btn { width: auto; min-width: 140px; }

/* Home */
.hero { position: relative; margin: 0 -16px; height: 300px; background: #1a1a1a; overflow: hidden; color: #fff; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%); }
.hero__empty { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 70px; background: linear-gradient(135deg, #1a1a1a, #2b2824); }
.hero__empty img { width: 64px; height: 64px; opacity: .3; object-fit: contain; }
.hero__text { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 44px; }
.hero__name { font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1; margin: 8px 0 4px; }
.hero__sub { font-size: 14px; opacity: .85; }
.hero .pill { background: rgba(255,255,255,.92); }

.progress { height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .4s ease; }
.statcard { margin-top: -28px; position: relative; z-index: 2; }
.statcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statcard__pct { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.check:last-child { border-bottom: 0; }
.check__label { flex: 1; font-size: 15px; font-weight: 500; }
.check__hint { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.check--ok .check__label { color: var(--ink-3); font-weight: 400; text-decoration: line-through; text-decoration-color: var(--ink-4); }
.check svg.chev { width: 18px; height: 18px; color: var(--ink-3); margin-top: 2px; }

/* Photos */
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 520px) { .photos-grid { grid-template-columns: repeat(4, 1fr); } }
.ph { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--paper-3); border: 0; padding: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__main { position: absolute; left: 6px; top: 6px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; }
.ph__low { position: absolute; right: 6px; top: 6px; background: var(--danger); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ph__num { position: absolute; right: 6px; bottom: 6px; background: rgba(17,17,17,.7); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.ph--add { display: grid; place-items: center; border: 1.5px dashed var(--line-2); background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: center; }
.ph--add > span { display: flex; flex-direction: column; align-items: center; }
.ph--add svg { width: 28px; height: 28px; margin: 0 auto 6px; }
.ph--uploading img { opacity: .5; }
.ph__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; background: rgba(255,255,255,.6); border-radius: 3px; overflow: hidden; }
.ph__bar span { display: block; height: 100%; background: var(--ink); transition: width .2s; }
.cover { aspect-ratio: 851 / 315; border-radius: var(--r); overflow: hidden; background: var(--paper-3); display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Visibility */
.choice { display: block; position: relative; padding: 18px 18px 18px 56px; border: 1.5px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); margin-bottom: 12px; cursor: pointer; }
.choice input { position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; accent-color: var(--ink); }
.choice__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.choice__title svg { width: 18px; height: 18px; }
.choice__desc { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Sheet & toast */
.sheet-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(17,17,17,.45); animation: fade .15s ease; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: 22px 22px 0 0; padding: 10px 16px calc(16px + var(--safe-bottom)); animation: up .2s ease; max-height: 88vh; overflow: auto; }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 12px; }
.sheet__title { font-weight: 600; font-size: 17px; margin: 4px 4px 12px; }
.sheet__img { border-radius: var(--r); overflow: hidden; margin-bottom: 12px; max-height: 42vh; display: grid; place-items: center; background: var(--paper-2); }
.sheet__img img { max-height: 42vh; width: auto; }
.sheet .row { border-radius: 12px; border-bottom: 0; }
.sheet .row--danger { color: var(--danger); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 36px); max-width: 480px; margin: 0 auto; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s ease; }
.toast.is-on { transform: none; opacity: 1; }
.toast--error { background: var(--danger); }

.spinner { width: 22px; height: 22px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--ink-3); }
.skeleton { background: linear-gradient(90deg, var(--paper-3) 25%, var(--paper-2) 50%, var(--paper-3) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 28px 8px; }
.empty__art { width: 88px; height: 88px; border-radius: 26px; background: var(--ink); display: grid; place-items: center; margin: 0 auto 18px; }
.empty__art img { width: 52px; height: 52px; }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 28px; line-height: 1.6; }

@media (min-width: 700px) {
  .hero { margin: 16px 0 0; border-radius: var(--r-lg); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

details.done > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 10px; }
details.done > summary::-webkit-details-marker { display: none; }
details.done > summary .h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
details.done > summary .xsmall::after { content: " · Show"; }
details.done[open] > summary .xsmall::after { content: " · Hide"; }
