/* Shared styles for account / privacy / terms (loads after kinaquest.css) */
html, body { overflow: auto; height: auto; }
body { background: var(--bg); color: var(--text-primary); font-family: var(--font-sans); min-height: 100vh; display: flex; flex-direction: column; }
.pg-bar { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--bg-panel); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-soft); position: sticky; top: 0; z-index: 5; }
.pg-bar a.brand { text-decoration: none; }
.pg-bar__right { display: flex; align-items: center; gap: 8px; }
.pg-back { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-right: 8px; }
.pg-back:hover { text-decoration: underline; }
.pg-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 48px 24px 72px; }
.pg-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-mid); background: var(--accent-soft); padding: 3px 10px; border-radius: 20px; display: inline-block; }
.pg-title { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 6px; }
.pg-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px; }
.pg-note { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 28px; }
.pg-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.pg-toc { position: sticky; top: calc(var(--bar-h) + 24px); display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; }
.pg-toc a { color: var(--text-secondary); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-sm); }
.pg-toc a:hover { background: var(--accent-soft); color: var(--accent); }
.pg-body section { margin-bottom: 30px; scroll-margin-top: calc(var(--bar-h) + 20px); }
.pg-body h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.pg-body p, .pg-body li { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); }
.pg-body p { margin-bottom: 10px; }
.pg-body ul { padding-left: 20px; margin-bottom: 10px; }
.pg-body a { color: var(--accent); }
.pg-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; }
.pg-foot { border-top: 1px solid var(--border); background: var(--bg-panel); padding: 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.pg-foot nav { display: flex; gap: 18px; }
.pg-foot a { color: var(--text-secondary); text-decoration: none; }
.pg-foot a:hover { color: var(--accent); }

/* Account */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tabs { display: flex; gap: 4px; background: var(--bg-panel-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px; width: fit-content; margin-bottom: 20px; }
.tab { border: none; background: none; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); padding: 8px 20px; border-radius: 999px; cursor: pointer; }
.tab.is-active { background: var(--accent); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.field input { font: inherit; font-size: 0.9rem; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel-alt); color: var(--text-primary); }
.field input:focus { outline: none; border-color: var(--accent); }
.btn { font: inherit; font-weight: 600; font-size: 0.9rem; border: none; border-radius: var(--radius-sm); padding: 12px 22px; background: var(--accent); color: #fff; cursor: pointer; width: 100%; }
.btn:hover { background: var(--accent-mid); }
.btn--ghost { background: var(--bg-panel-alt); color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }
.form-msg { font-size: 0.82rem; margin-top: 12px; color: var(--accent); min-height: 1.2em; }
.hidden { display: none !important; }
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile__avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #7c5cf9, #a98fff); flex-shrink: 0; }
.profile b { display: block; font-size: 1.05rem; }
.profile span { font-size: 0.82rem; color: var(--text-muted); }
.lib-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg-panel-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-primary); }
.lib-list li span { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.pg-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
@media (max-width: 720px) { .pg-layout, .acct-grid { grid-template-columns: 1fr; } .pg-toc { position: static; flex-direction: row; flex-wrap: wrap; } .pg-title { font-size: 1.9rem; } }
