/* Empty state: hero card with 3 steps on the blank canvas; only the card (and the privacy notice) catches the mouse */
.empty-hint { position: fixed; inset: 0 0 var(--footer-h) 0; z-index: 14; display: flex; align-items: center; justify-content: center; pointer-events: none; padding: 88px 20px 130px; }
.empty-hint[hidden] { display: none; }
.empty-stack { pointer-events: auto; width: min(760px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: flex; flex-direction: column; gap: 12px; }
.empty-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 36px 24px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: var(--shadow-float);
}
.empty-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 190px; pointer-events: none; background: radial-gradient(62% 100% at 50% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%); }
.empty-card > * { position: relative; }
.empty-logo { display: grid; place-items: center; }
.empty-logo::before { content: ""; position: absolute; width: 104px; height: 104px; border-radius: 30px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 74%); }
.empty-logo .logo { position: relative; display: block; }
.empty-title { margin: 16px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.empty-tagline { margin: 8px 0 0; font-size: var(--fs-lead); font-weight: 500; }
.empty-text { margin: 6px 0 0; font-size: var(--fs-body); line-height: 1.5; color: var(--text-muted); }
.howto { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; text-align: left; }
.howto li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 14px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-2) 78%, transparent); border: 1px solid var(--border); }
.howto li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -9px; width: 7px; height: 7px; border-right: 1.5px solid var(--text-faint); border-bottom: 1.5px solid var(--text-faint); transform: translateY(-50%) rotate(-45deg); opacity: 0.75; }
.howto-ico { position: relative; flex: none; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.howto b { display: block; font-size: var(--fs-body); font-weight: 600; }
.howto li > div > span { display: block; margin-top: 3px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.empty-card .empty-actions button { height: 42px; padding: 0 18px; font-size: var(--fs-small); border-radius: var(--radius-md); justify-content: center; }
.empty-card .ghost { border: 1px solid var(--border-strong); background: var(--surface); }
.empty-privacy { margin: 18px 0 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text-muted); }
.empty-privacy[hidden] { display: none; }
.empty-privacy svg { color: var(--accent); flex: none; }
#import-dialog #import-cancel { border-color: var(--border-strong); }
@media (max-width: 760px) {
  .howto { grid-template-columns: 1fr; gap: 6px; margin-top: 16px; }
  .howto li { padding: 9px 10px; gap: 10px; }
  .howto li:not(:last-child)::after { display: none; }
  .howto-ico { width: 30px; height: 30px; }
}
@media (max-width: 640px) {
  .empty-hint { padding: 72px 12px 90px; }
  .empty-card { padding: 20px 14px 14px; border-radius: var(--radius-lg); }
  .empty-logo .logo { width: 48px; height: 48px; }
  .empty-title { margin-top: 12px; font-size: 24px; }
  .empty-tagline { font-size: var(--fs-h3); }
  .empty-text { display: none; }
  .empty-actions { width: 100%; margin-top: 16px; }
  .empty-card .empty-actions button { flex: 1 1 auto; height: 40px; }
}
