/** Instant skeleton while SettingsPage loads. */
export default function SettingsLoading() {
  return (
    <div className="page">
      <div className="page-head" style={{ marginBottom: 24 }}>
        <div className="skeleton sk-title" style={{ width: 120, marginBottom: 8 }} />
      </div>
      {Array.from({ length: 3 }).map((_, i) => (
        <div key={i} className="skeleton-card" style={{ marginBottom: 14, padding: 24 }}>
          <div className="skeleton sk-line" style={{ width: 160, marginBottom: 18 }} />
          <div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>
            {Array.from({ length: 3 }).map((_, j) => (
              <div key={j} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
                <div>
                  <div className="skeleton sk-line" style={{ width: 140, marginBottom: 6 }} />
                  <div className="skeleton sk-line-sm" style={{ width: 200 }} />
                </div>
                <div className="skeleton" style={{ width: 72, height: 32, borderRadius: 8 }} />
              </div>
            ))}
          </div>
        </div>
      ))}
    </div>
  )
}
