/* Auth chrome + reading widgets. Uses the site's editorial palette variables where present. */
.jv-auth { position: relative; display: inline-flex; align-items: center; margin-right: 10px; }
.jv-avatar { border: 0; background: none; padding: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.jv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jv-ini { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2b2b2b; color: #fff; font-weight: 600; }
.jv-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid #e3ded3; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; min-width: 160px; z-index: 90; }
.jv-menu-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.jv-menu-item:hover { background: #f4f1ea; }

/* Sign-in trigger — a pill that matches the language selector next to it */
.jv-signin.btn {
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line, #e3ded3);
  background: var(--surface-2, #fbf9f4);
  color: var(--ink-soft, #4a4a4a);
  transition: border-color .2s, color .2s, background .2s;
}
.jv-signin.btn:hover { border-color: var(--accent-1, #6e59e8); color: var(--ink, #1a1a1a); }
.jv-signin-menu { min-width: 220px; padding: 10px; }
.jv-gis { display: grid; place-items: center; }

/* Per-item reading control */
.jv-reading { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; padding: 10px 14px; border: 1px solid #e3ded3; border-radius: 12px; background: #fbf9f4; }
.jv-reading[hidden] { display: none; }
.jv-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.jv-count { display: inline-flex; align-items: center; gap: 8px; }
.jv-step { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #d7d1c4; background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.jv-step:disabled { opacity: .4; cursor: default; }
.jv-count-n { min-width: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }
.jv-signin-hint { font-size: .92em; color: #6b6357; }
.jv-signin-hint a { text-decoration: underline; cursor: pointer; }

/* List badge */
.jv-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .8em; color: #4a7c59; margin-left: 8px; }

/* Dashboard */
.jv-dash-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 26px; }
.jv-stat { font-size: 1.05rem; }
.jv-stat b { font-size: 1.6rem; display: block; }
.jv-dash-group h3 { margin: 22px 0 8px; }
.jv-dash-list { list-style: none; padding: 0; margin: 0; }
.jv-dash-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eee6d8; }
.jv-danger { color: #a33; background: none; border: 1px solid #a33; border-radius: 8px; padding: 8px 14px; cursor: pointer; margin-top: 26px; }
