/* ══════════════════════════════════════════════════════════════
   JobRock design system v1 (Phase 1)
   One stylesheet for every page. Change a token here and it
   changes everywhere. Don't add page-level colours or fonts.
   Fonts: Outfit (headings) + DM Sans (body)
══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --jr-brand:        #E8590C;   /* JobRock orange (accessible on white) */
  --jr-brand-hover:  #C94A06;
  --jr-brand-soft:   #FFF1E8;
  --jr-ink:          #111418;   /* headings, dark sections */
  /* Neutrals */
  --jr-bg:           #FFFFFF;
  --jr-bg-alt:       #F6F5F2;
  --jr-surface:      #FFFFFF;
  --jr-text:         #1F2328;
  --jr-muted:        #5B636D;
  --jr-line:         #E4E2DD;
  /* Status */
  --jr-ok:           #1F8A4C;
  --jr-ok-soft:      #E6F4EC;
  --jr-warn:         #B26A00;
  --jr-bad:          #C62828;
  /* Type */
  --jr-font-head: 'Outfit', system-ui, -apple-system, sans-serif;
  --jr-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  /* Spacing scale 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* Shape */
  --jr-radius:    12px;
  --jr-radius-sm: 8px;
  --jr-shadow:    0 1px 2px rgba(17,20,24,.06), 0 8px 24px rgba(17,20,24,.06);
  --jr-max:       1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --jr-brand:       #FF6B1A;
    --jr-brand-hover: #FF8540;
    --jr-brand-soft:  #2A1A10;
    --jr-ink:         #F3F3F1;
    --jr-bg:          #0E0F11;
    --jr-bg-alt:      #15171A;
    --jr-surface:     #1A1C20;
    --jr-text:        #E9E9E6;
    --jr-muted:       #A3A9B1;
    --jr-line:        #2A2D33;
    --jr-ok-soft:     #12261A;
    --jr-shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --jr-brand:#FF6B1A; --jr-brand-hover:#FF8540; --jr-brand-soft:#2A1A10; --jr-ink:#F3F3F1;
  --jr-bg:#0E0F11; --jr-bg-alt:#15171A; --jr-surface:#1A1C20; --jr-text:#E9E9E6; --jr-muted:#A3A9B1;
  --jr-line:#2A2D33; --jr-ok-soft:#12261A; --jr-shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--jr-bg); color: var(--jr-text);
  font: 16px/1.6 var(--jr-font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--jr-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--jr-font-head); color: var(--jr-ink); line-height: 1.15; margin: 0 0 var(--s3); letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
p  { margin: 0 0 var(--s4); }
:focus-visible { outline: 3px solid var(--jr-brand); outline-offset: 2px; border-radius: 4px; }
.jr-skip { position: absolute; left: -999px; top: 8px; background: var(--jr-ink); color: var(--jr-bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.jr-skip:focus { left: 8px; }

/* ── Layout ───────────────────────────────────────────────── */
.jr-wrap    { width: 100%; max-width: var(--jr-max); margin: 0 auto; padding: 0 var(--s4); }
.jr-section { padding: var(--s8) 0; }
.jr-section.alt { background: var(--jr-bg-alt); }
.jr-section.dark { background: #111418; color: #E9E9E6; }
.jr-section.dark h2, .jr-section.dark h3 { color: #fff; }
.jr-section.dark .jr-lead, .jr-section.dark .jr-muted { color: #B8BDC4; }
.jr-grid   { display: grid; gap: var(--s5); }
.jr-grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.jr-grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.jr-grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .jr-grid.c3, .jr-grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .jr-grid.c2, .jr-grid.c3, .jr-grid.c4 { grid-template-columns: 1fr; }
  .jr-section { padding: var(--s7) 0; }
}
.jr-eyebrow { display: inline-block; font: 700 13px/1 var(--jr-font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--jr-brand); margin-bottom: var(--s3); }
.jr-lead  { font-size: 19px; color: var(--jr-muted); max-width: 640px; }
.jr-muted { color: var(--jr-muted); }
.jr-center { text-align: center; }
.jr-center .jr-lead { margin-left: auto; margin-right: auto; }
.jr-head  { margin-bottom: var(--s6); }

/* ── Buttons ──────────────────────────────────────────────── */
.jr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--jr-radius-sm);
  font: 700 16px/1 var(--jr-font-head); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.jr-btn.primary   { background: var(--jr-brand); color: #fff; }
.jr-btn.primary:hover { background: var(--jr-brand-hover); }
.jr-btn.secondary { background: transparent; color: var(--jr-ink); border-color: var(--jr-ink); }
.jr-btn.secondary:hover { background: var(--jr-ink); color: var(--jr-bg); }
.jr-btn.ghost     { background: transparent; color: var(--jr-text); }
.jr-btn.ghost:hover { background: var(--jr-bg-alt); }
.jr-btn.light     { background: #fff; color: #111418; }
.jr-btn.sm { min-height: 40px; padding: 0 var(--s4); font-size: 15px; }
.jr-btn.block { width: 100%; }
.jr-btns { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ── Header / nav ─────────────────────────────────────────── */
.jr-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--jr-bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--jr-line); }
.jr-header .jr-wrap { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.jr-logo { font: 800 22px/1 var(--jr-font-head); color: var(--jr-ink); text-decoration: none; letter-spacing: -.02em; }
.jr-logo em { font-style: normal; color: var(--jr-brand); }
.jr-nav { display: flex; gap: var(--s1); margin-left: var(--s4); }
.jr-nav a { color: var(--jr-text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.jr-nav a:hover, .jr-nav a[aria-current="page"] { background: var(--jr-bg-alt); color: var(--jr-ink); }
.jr-header-cta { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.jr-menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--jr-line); border-radius: 8px; width: 44px; height: 44px; color: var(--jr-ink); font-size: 20px; cursor: pointer; }
@media (max-width: 860px) {
  .jr-nav, .jr-header-cta .hide-sm { display: none; }
  .jr-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .jr-header-cta { margin-left: 0; }
  .jr-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--jr-bg); border-bottom: 1px solid var(--jr-line); padding: var(--s3) var(--s4) var(--s4); margin: 0; }
  .jr-nav.open a { padding: 12px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.jr-hero { padding: var(--s8) 0 var(--s7); }
.jr-hero h1 { max-width: 820px; }
.jr-hero h1 span { color: var(--jr-brand); }
.jr-hero .jr-lead { font-size: 20px; margin-bottom: var(--s5); }
.jr-hero-note { margin-top: var(--s4); font-size: 14px; color: var(--jr-muted); }

/* ── Choice cards (I'm hiring / I'm looking) ──────────────── */
.jr-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); max-width: 1080px; margin-top: var(--s5); }
.jr-choice a {
  display: block; padding: var(--s5); border-radius: var(--jr-radius); text-decoration: none;
  border: 2px solid var(--jr-line); background: var(--jr-surface); color: var(--jr-text); transition: border-color .15s, transform .15s;
}
.jr-choice a:hover { border-color: var(--jr-brand); transform: translateY(-2px); }
.jr-choice b { display: block; font: 750 22px/1.2 var(--jr-font-head); color: var(--jr-ink); margin-bottom: 6px; }
.jr-choice span { display: block; color: var(--jr-muted); font-size: 15px; }
.jr-choice .go { display: inline-block; margin-top: var(--s3); color: var(--jr-brand); font-weight: 700; }
@media (max-width: 820px) { .jr-choice { grid-template-columns: 1fr; } }

/* ── Cards ────────────────────────────────────────────────── */
.jr-card { background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: var(--jr-radius); padding: var(--s5); }
.jr-card.shadow { box-shadow: var(--jr-shadow); border-color: transparent; }
.jr-card h3 { margin-bottom: var(--s2); }
.jr-card p:last-child { margin-bottom: 0; }
.jr-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--jr-brand-soft); color: var(--jr-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s4); }
.jr-icon svg { width: 22px; height: 22px; }

/* ── Steps ────────────────────────────────────────────────── */
.jr-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s4); }
.jr-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); align-items: start; }
.jr-steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--jr-ink); color: var(--jr-bg); display: flex; align-items: center; justify-content: center; font: 800 18px/1 var(--jr-font-head); }
.jr-steps b { display: block; font: 700 18px/1.3 var(--jr-font-head); color: var(--jr-ink); margin: 8px 0 2px; }
.jr-steps span { color: var(--jr-muted); }

/* ── Stats ────────────────────────────────────────────────── */
.jr-stats { display: flex; flex-wrap: wrap; gap: var(--s6); padding: var(--s5) 0; border-top: 1px solid var(--jr-line); border-bottom: 1px solid var(--jr-line); }
.jr-stat b { display: block; font: 800 32px/1 var(--jr-font-head); color: var(--jr-ink); }
.jr-stat span { font-size: 14px; color: var(--jr-muted); }

/* ── Job cards ────────────────────────────────────────────── */
.jr-job { display: flex; flex-direction: column; gap: 6px; padding: var(--s4) var(--s5); background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: var(--jr-radius); text-decoration: none; color: var(--jr-text); transition: border-color .15s; }
.jr-job:hover { border-color: var(--jr-brand); }
.jr-job b { font: 700 17px/1.3 var(--jr-font-head); color: var(--jr-ink); }
.jr-job .meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 14px; color: var(--jr-muted); }
.jr-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.4 var(--jr-font-body); background: var(--jr-bg-alt); color: var(--jr-muted); }
.jr-badge.brand { background: var(--jr-brand-soft); color: var(--jr-brand); }
.jr-badge.ok    { background: var(--jr-ok-soft); color: var(--jr-ok); }

/* ── Pricing ──────────────────────────────────────────────── */
.jr-price { display: flex; flex-direction: column; }
.jr-price .amt { font: 800 40px/1 var(--jr-font-head); color: var(--jr-ink); margin: var(--s3) 0 var(--s1); }
.jr-price .amt small { font-size: 16px; font-weight: 500; color: var(--jr-muted); }
.jr-price ul { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); display: grid; gap: var(--s2); }
.jr-price li { padding-left: 26px; position: relative; }
.jr-price li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--jr-ok); border-bottom: 2.5px solid var(--jr-ok); transform: rotate(-45deg); }
.jr-price .jr-btn { margin-top: auto; }
.jr-price.featured { border: 2px solid var(--jr-brand); }
.jr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.jr-table th, .jr-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--jr-line); }
.jr-table th { font-family: var(--jr-font-head); color: var(--jr-ink); }
.jr-table-wrap { overflow-x: auto; }

/* ── Callout / CTA band ───────────────────────────────────── */
.jr-cta { background: var(--jr-ink); color: var(--jr-bg); border-radius: 20px; padding: var(--s7) var(--s6); display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: space-between; }
.jr-cta h2 { color: var(--jr-bg); margin: 0 0 var(--s2); }
.jr-cta p { margin: 0; opacity: .8; }
@media (max-width: 640px) { .jr-cta { padding: var(--s6) var(--s5); } }

.jr-checks { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s3); }
.jr-checks li { padding-left: 30px; position: relative; }
.jr-checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--jr-brand); border-bottom: 2.5px solid var(--jr-brand); transform: rotate(-45deg); }

.jr-note { background: var(--jr-brand-soft); border-left: 4px solid var(--jr-brand); padding: var(--s4) var(--s5); border-radius: var(--jr-radius-sm); }

/* ── Forms ────────────────────────────────────────────────── */
.jr-input { width: 100%; min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--jr-line); border-radius: var(--jr-radius-sm); background: var(--jr-surface); color: var(--jr-text); font: 16px var(--jr-font-body); }
.jr-input:focus { border-color: var(--jr-brand); outline: none; }
.jr-inline-form { display: flex; gap: var(--s2); max-width: 460px; }
@media (max-width: 480px) { .jr-inline-form { flex-direction: column; } }

/* ── Footer ───────────────────────────────────────────────── */
.jr-footer { border-top: 1px solid var(--jr-line); padding: var(--s7) 0 var(--s6); font-size: 15px; }
.jr-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s5); }
.jr-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--jr-muted); margin-bottom: var(--s3); }
.jr-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.jr-footer a { color: var(--jr-text); text-decoration: none; }
.jr-footer a:hover { color: var(--jr-brand); }
.jr-footer .base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--jr-line); color: var(--jr-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; }
@media (max-width: 760px) { .jr-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ── Install bar (PWA) ────────────────────────────────────── */
.jr-install { position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 60; max-width: 520px; margin: 0 auto; display: none; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--jr-ink); color: var(--jr-bg); border-radius: var(--jr-radius); box-shadow: var(--jr-shadow); }
.jr-install.show { display: flex; }
.jr-install span { flex: 1; font-size: 14px; }
.jr-install button { border: 0; cursor: pointer; font: 700 14px var(--jr-font-head); border-radius: 8px; padding: 10px 14px; }
.jr-install .yes { background: var(--jr-brand); color: #fff; }
.jr-install .no  { background: transparent; color: inherit; opacity: .7; }
.jr-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--jr-ink); color: var(--jr-bg); padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 70; }
.jr-toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.jr-nav .show-sm-only { display: none; }
@media (max-width: 860px) { .jr-nav.open .show-sm-only { display: block; } }
.jr-checks.no li::before { content: "✕"; border: 0; transform: none; width: auto; height: auto; top: 0; left: 4px; color: var(--jr-bad); font-weight: 700; }
details.jr-card summary { cursor: pointer; list-style-position: outside; }
.jr-inline-form .jr-btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 860px) { .jr-header-cta { margin-left: auto; } .jr-menu-btn { margin-left: 0; } }

/* ── Auth pages (login / register) ────────────────────────── */
.jr-auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--jr-bg-alt); }
.jr-auth-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s4); max-width: var(--jr-max); width: 100%; margin: 0 auto; }
.jr-auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: var(--s4) var(--s4) var(--s8); }
.jr-auth-card { width: 100%; max-width: 440px; background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: 16px; padding: var(--s6) var(--s5); box-shadow: var(--jr-shadow); }
.jr-auth-card h1 { font-size: 28px; margin-bottom: 4px; }
.jr-field { margin-bottom: var(--s4); }
.jr-field label, .jr-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--jr-ink); }
.jr-field .hint { font-size: 13px; color: var(--jr-muted); margin-top: 6px; }
.jr-pw { position: relative; }
.jr-pw .jr-input { padding-right: 72px; }
.jr-pw button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--jr-muted); font: 600 13px var(--jr-font-body); cursor: pointer; border-radius: 6px; }
.jr-pw button:hover { background: var(--jr-bg-alt); color: var(--jr-ink); }
.jr-alert { padding: 12px 14px; border-radius: var(--jr-radius-sm); margin-bottom: var(--s4); font-size: 15px; }
.jr-alert.bad { background: color-mix(in srgb, var(--jr-bad) 10%, var(--jr-surface)); border: 1px solid color-mix(in srgb, var(--jr-bad) 35%, transparent); color: var(--jr-text); }
.jr-alert.ok  { background: var(--jr-ok-soft); border: 1px solid color-mix(in srgb, var(--jr-ok) 35%, transparent); color: var(--jr-text); }
.jr-or { display: flex; align-items: center; gap: var(--s3); color: var(--jr-muted); font-size: 14px; margin: var(--s5) 0; }
.jr-or::before, .jr-or::after { content: ""; flex: 1; height: 1px; background: var(--jr-line); }
.jr-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1.5px solid var(--jr-line); border-radius: var(--jr-radius-sm); color: var(--jr-text); text-decoration: none; font-weight: 700; background: var(--jr-surface); }
.jr-google:hover { border-color: var(--jr-ink); }
.jr-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.jr-roles input { position: absolute; opacity: 0; pointer-events: none; }
.jr-roles label { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 6px; border: 1.5px solid var(--jr-line); border-radius: var(--jr-radius-sm); cursor: pointer; font-weight: 700; font-size: 14px; color: var(--jr-text); }
.jr-roles label small { font-weight: 500; font-size: 12px; color: var(--jr-muted); }
.jr-roles input:checked + label { border-color: var(--jr-brand); background: var(--jr-brand-soft); }
.jr-roles input:focus-visible + label { outline: 3px solid var(--jr-brand); outline-offset: 2px; }
.jr-meter { height: 6px; border-radius: 3px; background: var(--jr-line); margin-top: 8px; overflow: hidden; }
.jr-meter i { display: block; height: 100%; width: 0; background: var(--jr-bad); transition: width .2s, background .2s; }
.jr-reqs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: 13px; color: var(--jr-muted); }
.jr-reqs li::before { content: "○ "; }
.jr-reqs li.ok { color: var(--jr-ok); }
.jr-reqs li.ok::before { content: "✓ "; }
.jr-small { font-size: 14px; color: var(--jr-muted); text-align: center; margin-top: var(--s5); }

/* ── App shell (logged-in pages) ──────────────────────────── */
.jr-app { background: var(--jr-bg-alt); min-height: 100vh; padding-bottom: 84px; }
.jr-app-top { position: sticky; top: 0; z-index: 50; background: var(--jr-surface); border-bottom: 1px solid var(--jr-line); }
.jr-app-top .jr-wrap { display: flex; align-items: center; gap: var(--s4); height: 60px; }
.jr-app-nav { display: flex; gap: 2px; margin-left: var(--s4); }
.jr-app-nav a { position: relative; color: var(--jr-text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.jr-app-nav a:hover, .jr-app-nav a[aria-current="page"] { background: var(--jr-bg-alt); color: var(--jr-ink); }
.jr-app-nav a[aria-current="page"] { font-weight: 700; }
.jr-app-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.jr-icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 0; background: transparent; color: var(--jr-text); cursor: pointer; }
.jr-icon-btn:hover { background: var(--jr-bg-alt); }
.jr-dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--jr-brand); color: #fff; font: 700 11px/18px var(--jr-font-body); text-align: center; }
.jr-app-nav .jr-dot { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.jr-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--jr-brand-soft); color: var(--jr-brand); display: inline-flex; align-items: center; justify-content: center; font: 700 14px var(--jr-font-head); text-decoration: none; flex-shrink: 0; }
.jr-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jr-app-main { width: 100%; max-width: 980px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); }
.jr-bottom { display: none; }
@media (max-width: 860px) {
  .jr-app-nav, .jr-hide-sm { display: none !important; }
  .jr-bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--jr-surface); border-top: 1px solid var(--jr-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .jr-bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--jr-muted); text-decoration: none; font-size: 11px; font-weight: 600; padding: 4px 0; }
  .jr-bottom a .ic { position: relative; display: inline-flex; }
  .jr-bottom a .ic .jr-dot { top: -6px; right: -12px; }
  .jr-bottom a[aria-current="page"] { color: var(--jr-brand); }
  .jr-bottom a.post .ic { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--jr-brand); color: #fff; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(232,89,12,.35); }
}
@media (min-width: 861px) { .jr-app { padding-bottom: 0; } }

/* ── App building blocks ──────────────────────────────────── */
.jr-hello { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.jr-hello h1 { font-size: clamp(24px, 4vw, 32px); margin: 0; }
.jr-hello p { margin: 4px 0 0; color: var(--jr-muted); }
.jr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.jr-tile { display: block; background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: var(--jr-radius); padding: var(--s4); text-decoration: none; color: var(--jr-text); }
a.jr-tile:hover { border-color: var(--jr-brand); }
.jr-tile b { display: block; font: 800 28px/1 var(--jr-font-head); color: var(--jr-ink); }
.jr-tile span { font-size: 13px; color: var(--jr-muted); }
.jr-tile.hot b { color: var(--jr-brand); }
@media (max-width: 480px) { .jr-tiles { gap: var(--s2); } .jr-tile { padding: var(--s3); } .jr-tile b { font-size: 24px; } }
.jr-panel { background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: var(--jr-radius); margin-bottom: var(--s5); overflow: hidden; }
.jr-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--jr-line); }
.jr-panel-head h2 { font-size: 18px; margin: 0; }
.jr-panel-head a { font-size: 14px; font-weight: 700; text-decoration: none; }
.jr-rows { list-style: none; margin: 0; padding: 0; }
.jr-rows li + li { border-top: 1px solid var(--jr-line); }
.jr-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); text-decoration: none; color: var(--jr-text); min-height: 64px; }
a.jr-row:hover { background: var(--jr-bg-alt); }
.jr-row .main { flex: 1; min-width: 0; }
.jr-row .main b { display: block; font-weight: 700; color: var(--jr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-row .main small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--jr-muted); font-size: 13px; overflow: hidden; }
.jr-row .end { flex-shrink: 0; display: flex; align-items: center; gap: var(--s2); color: var(--jr-muted); }
.jr-empty { padding: var(--s5); text-align: center; color: var(--jr-muted); }
.jr-empty .jr-btn { margin-top: var(--s3); }
.jr-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.jr-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s4) var(--s2); background: var(--jr-surface); border: 1px solid var(--jr-line); border-radius: var(--jr-radius); text-decoration: none; color: var(--jr-text); font-size: 13px; font-weight: 600; text-align: center; position: relative; }
.jr-quick a:hover { border-color: var(--jr-brand); }
.jr-quick a svg { color: var(--jr-brand); }
@media (max-width: 480px) { .jr-quick { grid-template-columns: repeat(2, 1fr); } }
.jr-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--s3); overflow-x: auto; padding: var(--s4) var(--s5); scroll-snap-type: x mandatory; }
.jr-scroll > * { scroll-snap-align: start; }
.jr-mini { display: block; border: 1px solid var(--jr-line); border-radius: var(--jr-radius-sm); overflow: hidden; text-decoration: none; color: var(--jr-text); background: var(--jr-surface); }
.jr-mini .img { aspect-ratio: 16/10; background: var(--jr-bg-alt); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.jr-mini .img img { width: 100%; height: 100%; object-fit: cover; }
.jr-mini .tx { padding: var(--s3); }
.jr-mini b { display: block; font-weight: 700; color: var(--jr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-mini small { color: var(--jr-muted); font-size: 13px; }
.jr-live { color: var(--jr-bad); font-weight: 700; }
