/* =============================================================================
   ACCOUNT DASHBOARD — the on-brand home for logged-in people. Cream/ink/rust,
   same type system as the rest of the site. One shell; role-aware tiles.
   ============================================================================= */

.sj-acc { max-width: 860px; margin: 0 auto; padding: 8px 20px 80px; }

/* ---- Header ---- */
.sj-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 0; margin-bottom: 20px; }
.sj-acc-ident { min-width: 0; }
.sj-acc-idrow { display: flex; align-items: center; gap: 18px; }
.sj-acc-avatar { flex: none; width: 68px; height: 68px; border-radius: 50%; background: var(--void); color: var(--white); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 900; font-size: 30px; overflow: hidden; }
.sj-acc-avatar.has-img { background-size: cover; background-position: center; color: transparent; }
.sj-acc-hello { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); margin: 0 0 12px; }
.sj-acc-name { font-family: var(--font-heading); font-weight: 900; font-size: clamp(28px, 5vw, 38px); letter-spacing: -.02em; color: var(--white); margin: 0; line-height: 1; }
.sj-acc-role { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--white); background: var(--violet); padding: 3px 10px; border-radius: 999px; }
.sj-acc-logout { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--paper-muted); text-decoration: none; }
.sj-acc-logout:hover { color: var(--violet); }

/* ---- Tiles ---- */
.sj-acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sj-acc-tile { position: relative; display: flex; align-items: flex-start; gap: 15px; background: var(--white); border: 1px solid rgba(var(--white-rgb), .12); border-radius: var(--radius-card); padding: 22px 22px; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.sj-acc-tile:hover { border-color: var(--violet); box-shadow: 0 10px 26px rgba(33, 31, 28, .10); transform: translateY(-2px); }
.sj-acc-tile-ico { flex: none; color: var(--violet); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--violet-rgb), .12); }
.sj-acc-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sj-acc-tile-title { font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: var(--plum); }
.sj-acc-tile-sub { font-size: 14px; line-height: 1.4; color: rgba(var(--plum-rgb), .7); }
.sj-acc-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--white); background: var(--violet); padding: 1px 7px; border-radius: 999px; vertical-align: middle; }

.sj-acc-tile.is-soon { opacity: .68; }
.sj-acc-soon { position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(var(--plum-rgb), .6); border: 1px solid rgba(var(--plum-rgb), .22); border-radius: 999px; padding: 2px 8px; }

/* full-width label that starts the author-tools group */
.sj-acc-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 14px 0 2px; }
.sj-acc-divider span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--violet); }
.sj-acc-divider::after { content: ""; flex: 1; height: 1px; background: rgba(var(--white-rgb), .14); }

.sj-acc-foot { margin: 40px 0 0; }
.sj-acc-foot a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--violet); text-decoration: none; }
.sj-acc-foot a:hover { text-decoration: underline; }

@media (max-width: 620px) {
    .sj-acc-grid { grid-template-columns: 1fr; }
    .sj-acc-avatar { width: 56px; height: 56px; font-size: 24px; }
}

/* =============================================================================
   PROFILE — display name + self-serve avatar cropper.
   ============================================================================= */
.sj-profile { max-width: 480px; }
.sj-acc-saved { background: rgba(120, 145, 90, .14); border: 1px solid rgba(120, 145, 90, .4); color: #4a5a30; font-size: 14px; border-radius: 9px; padding: 11px 14px; margin-bottom: 24px; }
.sj-prof-back { margin: 0 0 18px; }
.sj-prof-back a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--violet); text-decoration: none; }
.sj-prof-back a:hover { text-decoration: underline; }
.sj-prof-title { font-family: var(--font-heading); font-weight: 900; font-size: clamp(26px, 5vw, 34px); letter-spacing: -.02em; color: var(--white); margin: 0 0 26px; }

.sj-prof-avatar { text-align: center; margin-bottom: 26px; }
.sj-crop { width: 240px; height: 240px; border-radius: 50%; overflow: hidden; position: relative; background: #EDE7DC; margin: 0 auto 14px; touch-action: none; user-select: none; }
.sj-crop.has-image { cursor: grab; }
.sj-crop.is-grabbing { cursor: grabbing; }
.sj-crop-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 900; font-size: 84px; color: var(--white); background-color: var(--void); }
.sj-crop-ph.has-img { background-size: cover; background-position: center; color: transparent; }
.sj-crop.has-image .sj-crop-ph { display: none; }
.sj-crop img { position: absolute; top: 0; left: 0; max-width: none; display: none; -webkit-user-drag: none; }
.sj-crop.has-image img { display: block; }

#sj-crop-zoom { display: none; width: 240px; margin: 0 auto 16px; accent-color: var(--violet); }
#sj-crop-zoom.is-on { display: block; }

.sj-crop-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.sj-crop-pick { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--violet); border: 1px solid var(--violet); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sj-crop-pick:hover { background: var(--violet); color: var(--white); }
.sj-crop-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sj-crop-remove { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--paper-muted); background: none; border: 0; cursor: pointer; }
.sj-crop-remove:hover { color: var(--violet); }
.sj-crop-hint { font-size: 13px; color: var(--paper-muted); margin: 14px 0 0; }

.sj-prof-form .sj-auth-field { margin-bottom: 22px; }

/* =============================================================================
   FOLLOWING — what's new + the list you follow.
   ============================================================================= */
.sj-fol-page { max-width: 660px; }
.sj-fol-quiet { color: var(--paper-muted); font-size: 15px; }
.sj-fol-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sj-fol-item { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid rgba(var(--white-rgb), .14); border-radius: var(--radius-pill, 999px); padding: 5px 6px 5px 16px; }
.sj-fol-name { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--plum); text-decoration: none; }
.sj-fol-name:hover { color: var(--violet); }
.sj-fol-btn.sj-ab-act { font-size: 10px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--violet); color: var(--violet); }
.sj-fol-btn.sj-ab-act.is-on { color: var(--white); background: var(--violet); }
.sj-fol-btn.sj-ab-act.is-on svg { stroke: var(--plum); fill: var(--plum); }

/* =============================================================================
   MY COMMENTS — replies to you + everything you've said.
   ============================================================================= */
.sj-mine-page { max-width: 660px; }
.sj-mine-sub { font-family: var(--font-heading); font-weight: 900; font-size: 18px; letter-spacing: -.01em; color: var(--white); margin: 30px 0 14px; }
.sj-mine-sub:first-of-type { margin-top: 4px; }
.sj-mine-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sj-mine-item { background: var(--white); border: 1px solid rgba(var(--white-rgb), .12); border-radius: var(--radius-card); padding: 14px 16px; }
.sj-mine-item.is-reply { border-left: 3px solid var(--violet); }
.sj-mine-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sj-mine-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(var(--plum-rgb), .7); }
.sj-mine-meta strong { color: var(--plum); }
.sj-mine-meta em { color: var(--violet); font-style: italic; }
.sj-mine-on { font-family: var(--font-body); font-size: 14px; line-height: 1.25; color: rgba(var(--plum-rgb), .7); margin-top: 0; }
.sj-mine-on em { color: var(--violet); font-style: italic; }
.sj-mine-body { gap: 0; }
.sj-mine-dot { margin: 0 7px; color: rgba(var(--plum-rgb), .4); }
.sj-mine-body .sj-mine-text { margin-top: 3px; }
.sj-mine-replies { margin-top: 8px; }
.sj-mine-div { height: 1px; background: rgba(var(--white-rgb), .12); margin: 28px 0 22px; }
.sj-mine-text { font-size: 15px; line-height: 1.5; color: var(--plum); text-decoration: none; }
.sj-mine-text:hover { color: var(--plum); }
.sj-mine-replies { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--violet); text-decoration: none; }
.sj-mine-replies:hover { text-decoration: underline; }

/* =============================================================================
   AUTHOR TOOLS — write an article + my submissions.
   ============================================================================= */
.sj-write-page, .sj-subs-page { max-width: 640px; }
.sj-write-intro { color: var(--paper-muted); font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.sj-write-content { width: 100%; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--white); background: var(--void); border: 1px solid rgba(var(--white-rgb), .2); border-radius: 9px; padding: 14px 16px; resize: vertical; min-height: 300px; }
.sj-write-content:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.sj-write-form input[type="file"] { font-size: 14px; color: var(--paper-muted); }
.sj-write-note { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--paper-muted); margin: 4px 0 18px; }

.sj-subs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sj-subs-new { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--violet); text-decoration: none; white-space: nowrap; }
.sj-subs-new:hover { text-decoration: underline; }
.sj-subs-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sj-subs-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border: 1px solid rgba(var(--white-rgb), .12); border-radius: var(--radius-card); padding: 16px 18px; }
.sj-subs-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sj-subs-title { font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--plum); text-decoration: none; }
a.sj-subs-title:hover { color: var(--violet); }
.sj-subs-date { font-family: var(--font-mono); font-size: 11px; color: rgba(var(--plum-rgb), .7); }
.sj-subs-status { flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.sj-subs-status.is-pending { color: #8a6d2f; background: rgba(184, 147, 74, .16); }
.sj-subs-status.is-live { color: #3f5a2e; background: rgba(120, 145, 90, .18); }
.sj-subs-status.is-draft { color: rgba(var(--plum-rgb), .7); background: rgba(var(--white-rgb), .08); }

/* =============================================================================
   AUTH PAGES (login / register) — a single centred card on the paper ground.
   ============================================================================= */
.sj-auth { display: flex; justify-content: center; padding: 20px 20px 80px; }
.sj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sj-auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid rgba(var(--white-rgb), .12); border-radius: var(--radius-card); padding: 40px 36px 34px; box-shadow: 0 14px 40px rgba(33, 31, 28, .08); }
.sj-auth-brand { display: block; text-align: center; font-family: var(--font-heading); font-weight: 900; font-size: 15px; letter-spacing: .01em; color: var(--violet); text-decoration: none; margin-bottom: 22px; }
.sj-auth-title { font-family: var(--font-heading); font-weight: 900; font-size: 28px; letter-spacing: -.02em; color: var(--plum); text-align: center; margin: 0 0 6px; }
.sj-auth-sub { text-align: center; color: rgba(var(--plum-rgb), .7); font-size: 15px; margin: 0 0 24px; }
.sj-auth-error { background: rgba(179, 74, 36, .08); border: 1px solid rgba(179, 74, 36, .3); color: #8a3a1c; font-size: 14px; border-radius: 9px; padding: 11px 14px; margin-bottom: 18px; }

.sj-auth-field { margin-bottom: 16px; }
.sj-auth-field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--plum-rgb), .7); font-weight: 700; margin-bottom: 7px; }
.sj-auth-field input { width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--plum); background: #f4f2f7; border: 1px solid rgba(var(--plum-rgb), .2); border-radius: 9px; padding: 12px 14px; }
.sj-auth-field input:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.sj-auth-field textarea { width: 100%; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--plum); background: #f4f2f7; border: 1px solid rgba(var(--plum-rgb), .2); border-radius: 9px; padding: 12px 14px; resize: vertical; min-height: 84px; }
.sj-auth-field textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.sj-auth-field input::placeholder, .sj-auth-field textarea::placeholder { color: rgba(var(--plum-rgb), .45); }
/* Keep the light field on browser autofill instead of the jarring white/yellow flash. */
.sj-auth-field input:-webkit-autofill,
.sj-auth-field input:-webkit-autofill:hover,
.sj-auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--plum);
    -webkit-box-shadow: 0 0 0 1000px #f4f2f7 inset;
    caret-color: var(--plum);
}
.sj-field-note { font-size: 13px; color: rgba(var(--plum-rgb), .7); margin: -2px 0 8px; }
.sj-bio-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: rgba(var(--plum-rgb), .7); text-align: right; margin: 6px 0 0; }
.sj-auth-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(var(--plum-rgb), .7); margin: 0 0 20px; }
.sj-auth-btn { width: 100%; font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--white); background: var(--violet); border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer; transition: background .18s ease; }
.sj-auth-btn:hover { background: #6f4f98; }
.sj-auth-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 14px; }
.sj-auth-links a { color: var(--violet); text-decoration: none; }
.sj-auth-links a:hover { text-decoration: underline; }
.sj-auth-links span { color: var(--paper-muted); }

/* =============================================================================
   ILYPIO LIGHT-NATIVE OVERRIDE  (see the twin block in comments.css)
   Dashboard + profile were authored for shawnjason's dark theme-global page;
   ILYPIO's sheet is WHITE, so their white headings, light-muted text and
   white-alpha card borders rendered white-on-white / invisible. Flip just those
   to read on white; pink (--violet) stays the accent. The auth cards already
   worked on white — only their button hover (stray shawnjason purple) is fixed.
   ============================================================================= */

/* headings → dark ink on white */
.sj-acc-name, .sj-prof-title, .sj-mine-sub { color: var(--plum); }

/* muted / secondary text → dark-muted (was light-muted, ~2.4:1 on white) */
.sj-acc-hello, .sj-acc-logout, .sj-crop-hint, .sj-crop-remove,
.sj-write-intro, .sj-write-note, .sj-write-form input[type="file"],
.sj-fol-quiet { color: rgba(var(--plum-rgb), .60); }

/* white cards on a white page: make the hairline visible + a soft lift so they
   read as cards instead of vanishing */
.sj-acc-tile, .sj-fol-item, .sj-mine-item, .sj-subs-item {
    border-color: rgba(var(--plum-rgb), .12);
    box-shadow: 0 1px 3px rgba(33, 31, 28, .06);
}
/* dividers that were white-alpha */
.sj-acc-divider::after, .sj-mine-div { background: rgba(var(--plum-rgb), .14); }

/* auth submit hover was shawnjason purple (#6f4f98) → ILYPIO pink */
.sj-auth-btn:hover { background: #cc00a3; }
