/* Shared component baseline across design-derived and application pages. */
html body .nav-item { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-left: 2px solid transparent; color: var(--color-ink-2); text-decoration: none; font-size: 13px; transition: background-color .16s, color .16s, border-color .16s; }
html body .nav-item.active { background: var(--color-state-success-surface); border-left-color: var(--color-brand-500); color: var(--color-brand-500); }
html body .topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: var(--color-surface-1); border-bottom: 1px solid var(--color-line); }
html body .page-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.25; }
html body .search { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; width: 288px; padding: 0 12px; background: var(--color-surface-2); border: 1px solid var(--color-line); }
html body .icon-btn { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-2); border: 1px solid var(--color-line); color: var(--color-ink-2); cursor: pointer; }
html body .avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-3); border: 1px solid var(--color-line); color: var(--color-brand-500); font-size: 14px; font-weight: 600; }
html body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid transparent; font-family: inherit; font-size: 12px; letter-spacing: .06em; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .16s, border-color .16s, color .16s, transform .12s; }
html body .btn-primary { background: var(--color-brand-500); border-color: var(--color-brand-500); color: #050505; font-weight: 700; }
html body .btn-primary:hover { background: var(--color-brand-400); }
html body .btn-ghost { background: transparent; border-color: var(--color-line); color: var(--color-ink-2); }
html body .btn-ghost:hover { color: var(--color-ink-1); border-color: var(--color-ink-3); background: var(--color-surface-3); }
html body .btn-sm { height: 28px; padding: 0 10px; font-size: 11px; }
html body .fld { display: grid; gap: 6px; font-size: 12px; color: var(--color-ink-2); }
html body .input { width: 100%; background: var(--color-surface-3); border: 1px solid var(--color-line); color: var(--color-ink-1); padding: 9px 10px; font-size: 12px; font-family: inherit; outline: none; resize: vertical; }
html body .input:focus { border-color: var(--color-brand-500); }

html body .btn, html body .icon-btn, html body .input, html body .avatar { border-radius: 0; }
html body .btn:focus-visible, html body .nav-item:focus-visible, html body .icon-btn:focus-visible { outline: 2px solid var(--color-brand-400); outline-offset: 3px; }
html body.auth-page { min-width: 0; }
html body.auth-page .login-wrap { min-height: 100dvh; padding: 24px 16px; }
html body.auth-page .login-card { width: 400px; max-width: 100%; }
html body.auth-page .btn-block { width: 100%; height: 40px; margin-top: 4px; }
@media (max-width: 480px) {
  html body.auth-page .login-card { padding: 24px; }
}
