/* ── Signed-in home hub (2026-10-06) — see js/home.js ───────────────────── */
#continue-banner.visible { display: block; }

.home-hub {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 4px;
  display: flex; flex-direction: column; gap: 18px;
}
.home-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.home-hello-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 700; letter-spacing: -.01em; line-height: 1.1; color: var(--text);
}
.home-stats { display: flex; gap: 28px; margin: 0; }
.home-stat { display: flex; flex-direction: column-reverse; text-align: right; }
.home-stat dd { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1.15; }
.home-stat dt { font-size: .78rem; color: var(--text-3); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.home-grid--single { grid-template-columns: minmax(0, 1fr); }

.home-hero {
  display: flex; gap: 26px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%, var(--surface) 62%);
}
.home-hero-cover { flex: none; display: block; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.45); background: var(--surface-hi); }
.home-hero-cover img { display: block; width: 132px; height: 198px; object-fit: cover; }
.home-hero-body { flex: 1; min-width: 0; }
.home-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.home-hero-title {
  margin: 6px 0 2px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-hero-author { margin: 0; color: var(--text-2); font-size: .92rem; }
.home-hero-meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 7px; font-size: .8rem; color: var(--text-2); }
.home-hero-ch { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-hero-meta > span:last-child { flex: none; }
.home-bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
.home-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.home-bar--thin { height: 3px; margin-top: 7px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.home-hero-actions .btn { border-radius: 999px; padding: 10px 20px; }
.home-hero-actions .btn-ghost { color: var(--text); }

.home-side { padding: 16px 18px 8px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.home-side-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.home-side-sub { min-height: 1em; }
.home-side-hint { margin: -2px 0 4px; font-size: .78rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-side-list { list-style: none; margin: 0; padding: 0; }
.home-side-list li + li { border-top: 1px solid var(--border); }
.home-side-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--text); text-decoration: none; }
.home-side-item:hover .home-side-name { color: var(--accent); }
.home-side-cover { flex: none; border-radius: 3px; overflow: hidden; background: var(--surface-hi); line-height: 0; }
.home-side-cover img { width: 44px; height: 66px; object-fit: cover; }
.home-side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-side-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.home-side-sub { font-size: .76rem; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-side-play {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent); padding-left: 2px;
}
.home-side-item:hover .home-side-play { border-color: var(--accent); }
.home-cover-blank { display: block; aspect-ratio: 2/3; background: var(--surface-hi); }

.home-plan {
  display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap;
  padding: 13px 18px; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
}
.home-plan-icon { flex: none; color: var(--accent); }
.home-plan-text { flex: 1 1 320px; margin: 0; font-size: .88rem; color: var(--text-2); line-height: 1.45; }
.home-plan-text strong { color: var(--text); }
.home-plan-price { font-size: .82rem; color: var(--text-3); white-space: nowrap; }
.home-plan .btn { border-radius: 999px; }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .home-hub { padding: 20px 16px 0; gap: 14px; }
  .home-hello { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-stats { gap: 22px; }
  .home-stat { text-align: left; }
  .home-hero { padding: 14px; gap: 14px; align-items: flex-start; }
  .home-hero-cover img { width: 84px; height: 126px; }
  .home-hero-title { font-size: 1.25rem; margin-top: 3px; }
  .home-hero-meta { margin-top: 10px; flex-direction: column; gap: 2px; }
  .home-hero-actions { margin-top: 12px; }
  .home-hero-actions .btn { padding: 8px 16px; }
  .home-hero-actions .btn-ghost { display: none; }
  .home-plan-price { display: none; }
}
