/* =============================================================
   Savvie · app styles
   Inherits all tokens from foundations.css (Vizit design system).
   Adds layout, components, and decay-system primitives.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--vz-body);
  font-size: 15px;
  background: var(--vz-cream);
  color: var(--vz-ink);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--vz-cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Page shell ============================================== */
.sv-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  max-width: 1480px;
  margin: 0 auto;
}

/* === Sidebar ================================================= */
.sv-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px 24px;
  border-right: 1px solid var(--vz-ink-15);
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--vz-cream);
}
.sv-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--vz-ink);
}
.sv-logo .savv { letter-spacing: -0.045em; }
.sv-logo-blob {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 1px;
  margin-right: 1px;
  background: var(--vz-orange);
  border: 1px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  transform: rotate(-12deg) translateY(-1px);
}
.sv-logo .ee { letter-spacing: -0.04em; }

.sv-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.sv-nav-section {
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
  margin: 16px 0 8px 8px;
}
.sv-nav-section:first-child { margin-top: 0; }
.sv-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-family: var(--vz-mono);
  font-size: 13px;
  color: var(--vz-ink);
  transition: background var(--d-fast) var(--ease);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}
.sv-nav-item:hover { background: var(--vz-cream-deep); }
.sv-nav-item.active {
  background: var(--vz-ink);
  color: var(--vz-cream);
}
.sv-nav-item .count {
  margin-left: auto;
  font-family: var(--vz-mono);
  font-size: 11px;
  opacity: 0.6;
}
.sv-nav-item.active .count { opacity: 0.7; }

.sv-sidebar-footer {
  border-top: 1px solid var(--vz-ink-15);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv-decay-mini {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 36px;
  border: 1px solid var(--vz-ink);
  border-radius: 8px;
  overflow: hidden;
}
.sv-decay-mini > span {
  flex: 1;
  font-family: var(--vz-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  color: var(--vz-ink);
}
.sv-decay-mini .seg-fresh { background: var(--vz-lime); }
.sv-decay-mini .seg-aging { background: var(--vz-pink); }
.sv-decay-mini .seg-stale { background: var(--vz-orange); }
.sv-decay-mini .count-bubble {
  font-family: var(--vz-mono);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: -2px;
}

/* === Main column ============================================= */
.sv-main {
  padding: 36px 5vw 80px;
  max-width: 1180px;
  position: relative;
}

.sv-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}
.sv-h1 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
}
.sv-h1 em { font-style: italic; font-weight: 400; }
.sv-eyebrow {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
  margin-bottom: 12px;
}
.sv-header-annotation {
  position: absolute;
  top: -22px;
  left: 280px;
  font-family: var(--vz-hand);
  font-size: 30px;
  color: var(--vz-cobalt);
  transform: rotate(-6deg);
  pointer-events: none;
  white-space: nowrap;
  line-height: 0.9;
}
.sv-header-annotation .arrow {
  display: inline-block;
  font-family: var(--vz-hand);
  font-size: 26px;
  transform: rotate(180deg);
  margin-left: 2px;
}

/* Toolbar above the inbox */
.sv-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--vz-ink-15);
}
.sv-filter-tab {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink-15);
  background: transparent;
  color: var(--vz-ink-60);
  transition: all var(--d-fast) var(--ease);
}
.sv-filter-tab:hover { border-color: var(--vz-ink); color: var(--vz-ink); }
.sv-filter-tab.active {
  background: var(--vz-ink);
  color: var(--vz-cream);
  border-color: var(--vz-ink);
}
.sv-filter-tab .count { opacity: 0.6; margin-left: 6px; }
.sv-toolbar-spacer { flex: 1; }

.sv-layout-toggle {
  display: inline-flex;
  border: 1px solid var(--vz-ink);
  border-radius: 999px;
  padding: 2px;
  background: var(--vz-cream-deep);
}
.sv-layout-toggle button {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
}
.sv-layout-toggle button.active {
  background: var(--vz-ink);
  color: var(--vz-cream);
}

.sv-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vz-orange);
  color: var(--vz-ink);
  font-family: var(--vz-body);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-save-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--vz-ink);
}
.sv-save-btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}
.sv-save-btn .plus { font-family: var(--vz-mono); font-weight: 400; }

/* === Filter bar ============================================== */
.sv-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--vz-ink-10);
  margin-bottom: 8px;
}
.sv-filter-pill {
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink-15);
  background: transparent;
  color: var(--vz-ink-60);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
  white-space: nowrap;
}
.sv-filter-pill:hover {
  border-color: var(--vz-ink-40);
  color: var(--vz-ink);
}
.sv-filter-pill.active {
  background: var(--vz-ink);
  color: var(--vz-cream);
  border-color: var(--vz-ink);
}
.sv-filter-pill.decay-fresh.active { background: var(--vz-lime); color: var(--vz-ink); border-color: var(--vz-lime); }
.sv-filter-pill.decay-aging.active { background: var(--vz-pink); color: var(--vz-ink); border-color: var(--vz-pink); }
.sv-filter-pill.decay-stale.active { background: var(--vz-orange); color: var(--vz-ink); border-color: var(--vz-orange); }
.sv-filter-sep {
  color: var(--vz-ink-15);
  font-size: 14px;
  user-select: none;
}

/* === Bulk action bar ========================================= */
.sv-bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--vz-cream-deep);
  border: 1px solid var(--vz-ink-15);
  border-radius: 12px;
  margin-bottom: 12px;
}
.sv-bulk-action {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--vz-ink-15);
  background: transparent;
  color: var(--vz-ink);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.sv-bulk-action:hover {
  background: var(--vz-ink);
  color: var(--vz-cream);
}
.sv-bulk-action.done {
  background: var(--vz-orange);
  color: white;
  border-color: var(--vz-orange);
  font-weight: 600;
}
.sv-bulk-action.done:hover {
  background: var(--vz-ink);
  border-color: var(--vz-ink);
}

/* === Decay timeline (top of inbox) =========================== */
.sv-decay-timeline {
  border: 1px solid var(--vz-ink);
  border-radius: 22px;
  padding: 20px 24px;
  background: var(--vz-cream-deep);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.sv-decay-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.sv-decay-timeline-head h3 {
  font-family: var(--vz-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.sv-decay-timeline-head em { font-style: italic; font-weight: 400; }
.sv-decay-timeline-head .meta {
  font-family: var(--vz-mono);
  font-size: 11px;
  color: var(--vz-ink-60);
}

.sv-decay-track {
  position: relative;
  height: 56px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.sv-decay-track .day {
  flex: 1;
  background: var(--vz-cream-deeper);
  border: 1px solid var(--vz-ink-15);
  border-radius: 4px;
  min-height: 6px;
  position: relative;
  transition: transform var(--d-fast) var(--ease);
  cursor: pointer;
}
.sv-decay-track .day:hover { transform: translateY(-2px); border-color: var(--vz-ink); }
.sv-decay-track .day.fresh { background: var(--vz-lime); border-color: var(--vz-ink); }
.sv-decay-track .day.aging { background: var(--vz-pink); border-color: var(--vz-ink); }
.sv-decay-track .day.stale { background: var(--vz-orange); border-color: var(--vz-ink); }
.sv-decay-track .axis {
  position: absolute;
  bottom: -18px;
  font-family: var(--vz-mono);
  font-size: 9px;
  color: var(--vz-ink-40);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sv-decay-track .axis.left { left: 0; }
.sv-decay-track .axis.right { right: 0; }
.sv-decay-track .axis.middle { left: 50%; transform: translateX(-50%); }

.sv-decay-annotation {
  position: absolute;
  font-family: var(--vz-hand);
  color: var(--vz-cobalt);
  font-size: 22px;
  transform: rotate(-4deg);
  line-height: 1;
  pointer-events: none;
}

/* === Item row (list view) ==================================== */
.sv-items { display: flex; flex-direction: column; }
.sv-item-row {
  display: grid;
  grid-template-columns: 22px 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--vz-cream-deeper);
  position: relative;
  transition: background var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease);
  text-align: left;
  width: 100%;
  cursor: grab;
}
.sv-item-row:active { cursor: grabbing; }
.sv-item-row.is-dragging { opacity: 0.45; }
.sv-item-row:hover { background: var(--vz-cream-deep); }
.sv-row-handle {
  font-family: var(--vz-mono);
  font-size: 13px;
  color: var(--vz-ink-15);
  letter-spacing: -0.1em;
  user-select: none;
  transition: color var(--d-fast) var(--ease);
}
.sv-item-row:hover .sv-row-handle { color: var(--vz-ink-40); }
.sv-item-row.compact { padding: 10px 8px; }
.sv-item-row.compact .sv-item-cat { width: 28px; height: 28px; font-size: 16px; }

.sv-item-cat {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
}
.sv-item-cat.has-thumb { padding: 0; overflow: hidden; }
.sv-item-cat .thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sv-item-cat .decay-ring {
  position: absolute;
  inset: -4px;
  border: 1.5px dashed var(--vz-orange);
  border-radius: 999px;
  opacity: 0;
  animation: ring-pulse 2.2s ease-in-out infinite;
}
.sv-item-row.stale .sv-item-cat .decay-ring { opacity: 1; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

.sv-item-body { min-width: 0; }
.sv-item-title {
  font-family: var(--vz-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--vz-ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-item-meta {
  display: flex;
  gap: 0;
  align-items: center;
  margin-top: 4px;
  font-family: var(--vz-mono);
  font-size: 11px;
  color: var(--vz-ink-40);
}
.sv-item-meta .dot { margin: 0 8px; }
.sv-item-meta .platform { color: var(--vz-ink-60); }
.sv-item-meta .category { color: var(--vz-cobalt); }
.sv-item-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sv-tag {
  font-family: var(--vz-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink-15);
  background: var(--vz-cream-deep);
  color: var(--vz-ink-60);
  letter-spacing: 0.02em;
}
.sv-item-row.compact .sv-item-tags { display: none; }

/* Decay badge */
.sv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  font-family: var(--vz-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.sv-badge.fresh { background: var(--vz-lime); }
.sv-badge.aging { background: var(--vz-pink); }
.sv-badge.stale { background: var(--vz-orange); animation: badge-pulse 2s ease-in-out infinite; }
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.68; }
}

/* Row actions */
.sv-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-action-buttons {
  display: flex;
  gap: 6px;
  opacity: 1;
  transition: opacity var(--d-fast) var(--ease);
}
.sv-btn {
  font-family: var(--vz-body);
  font-weight: 500;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream);
  color: var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--vz-ink);
}
.sv-btn:active { transform: none; box-shadow: none; }
.sv-btn.execute { background: var(--vz-cobalt); color: var(--vz-cream); }
.sv-btn.ghost { background: transparent; }
.sv-btn.archive { background: transparent; color: var(--vz-ink-60); }
.sv-btn.done { background: var(--vz-cream); color: var(--vz-ink-60); border: 1px solid var(--vz-ink); }
.sv-btn.done:hover { background: var(--vz-lime); color: var(--vz-ink); }

/* === Grid view =============================================== */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.sv-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vz-ink);
  border-radius: 22px;
  background: var(--vz-cream-deep);
  overflow: hidden;
  text-align: left;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  position: relative;
}
.sv-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--vz-ink);
}
.sv-card-media {
  aspect-ratio: 4/5;
  background: var(--vz-cream-deeper);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--vz-ink);
}
.sv-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sv-card-media .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.sv-card-media .corner-badge {
  position: absolute;
  top: 10px; right: 10px;
}
.sv-card-body { padding: 12px 14px 14px; }
.sv-card-title {
  font-family: var(--vz-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}
.sv-card-meta {
  font-family: var(--vz-mono);
  font-size: 10px;
  color: var(--vz-ink-40);
  letter-spacing: 0.04em;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sv-card-meta .cat { color: var(--vz-cobalt); }
.sv-card.stale { background: var(--vz-cream); }
.sv-card.stale .sv-card-title { color: var(--vz-ink-60); font-style: italic; }

/* === Save Modal (HUGE — dominates the viewport) =============== */
.sv-modal-veil {
  position: fixed; inset: 0;
  background: rgba(15,15,18,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 28px;
}
.sv-modal {
  width: min(960px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--vz-cream);
  border: 1.5px solid var(--vz-ink);
  border-radius: 32px;
  padding: 44px 56px 32px;
  position: relative;
  box-shadow: 8px 8px 0 var(--vz-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sv-modal .close {
  position: absolute;
  top: 20px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  font-family: var(--vz-mono);
  font-size: 18px;
  background: var(--vz-cream-deep);
  z-index: 2;
}
.sv-modal .close:hover { background: var(--vz-cream-deeper); }

.sv-modal-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.sv-modal h2 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}
.sv-modal h2 em { font-style: italic; font-weight: 400; }
.sv-modal .modal-sub {
  font-family: var(--vz-hand);
  color: var(--vz-cobalt);
  font-size: 30px;
  transform: rotate(-2deg);
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.sv-modal-tabs {
  display: flex;
  gap: 36px;
  margin: 8px 0 0;
  border-bottom: 1px solid var(--vz-ink-15);
}
.sv-modal-tab {
  font-family: var(--vz-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 0;
  color: var(--vz-ink-40);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--d-fast) var(--ease);
  position: relative;
}
.sv-modal-tab:hover { color: var(--vz-ink-60); }
.sv-modal-tab.active {
  color: var(--vz-ink);
  border-bottom-color: var(--vz-ink);
}
.sv-modal-tab .glyph {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  vertical-align: -1px;
}

/* The body — generous, occupies the bulk of the modal */
.sv-modal-body {
  flex: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.sv-dropzone {
  flex: 1;
  border: 1.5px dashed var(--vz-ink);
  border-radius: 24px;
  padding: 44px 40px;
  background: var(--vz-cream-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.sv-dropzone.dragover {
  border-style: solid;
  background: var(--vz-lime);
  border-width: 2px;
}
.sv-dropzone .corner-blob {
  position: absolute;
  top: 22px; right: 24px;
  width: 80px; height: 80px;
  background: var(--vz-orange);
  border: 1px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  opacity: 0.35;
  transform: rotate(-12deg);
}
.sv-dropzone .corner-blob.bl {
  top: auto; bottom: 22px; left: 24px; right: auto;
  background: var(--vz-cobalt);
  width: 50px; height: 50px;
  opacity: 0.18;
  transform: rotate(18deg);
}
.sv-dropzone .hero-blob {
  width: 110px;
  height: 110px;
  background: var(--vz-orange);
  border: 1.5px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  animation: blob-morph 8s ease-in-out infinite;
  margin-bottom: 4px;
}
.sv-dropzone .copy {
  font-family: var(--vz-hand);
  font-size: 42px;
  color: var(--vz-cobalt);
  transform: rotate(-1.5deg);
  max-width: 540px;
  line-height: 1.04;
}
.sv-dropzone .sub {
  font-family: var(--vz-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
}
.sv-dropzone .file-options {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.sv-dropzone .file-options button {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream);
  color: var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-dropzone .file-options button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--vz-ink);
}

/* Multi-file thumbnail grid (after files are added) */
.sv-dropzone.has-files {
  padding: 28px;
  gap: 14px;
  justify-content: flex-start;
}
.sv-dropzone.has-files .corner-blob { opacity: 0.18; }
.sv-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}
.sv-thumb {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--vz-ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--vz-cream);
}
.sv-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sv-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--vz-cream-deeper);
}
.sv-thumb-blob {
  width: 36px; height: 36px;
  background: var(--vz-orange);
  border: 1px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  transform: rotate(-12deg);
}
.sv-thumb-x {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream);
  font-family: var(--vz-mono);
  font-size: 13px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.sv-thumb-x:hover { background: var(--vz-orange); }
.sv-thumb-add {
  aspect-ratio: 1;
  border: 1.5px dashed var(--vz-ink-15);
  border-radius: 14px;
  background: var(--vz-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--vz-mono);
  font-size: 24px;
  color: var(--vz-ink-60);
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.sv-thumb-add:hover {
  border-color: var(--vz-ink);
  color: var(--vz-ink);
}
.sv-thumb-add .lbl {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sv-caption-input {
  width: 100%;
  background: var(--vz-cream);
  border: 1px solid var(--vz-ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--vz-body);
  font-size: 14px;
  color: var(--vz-ink);
}
.sv-caption-input::placeholder { color: var(--vz-ink-40); font-style: italic; }
.sv-caption-input:focus {
  outline: none;
  box-shadow: 2px 2px 0 var(--vz-cobalt);
}

/* Link tab — huge text input + preview area */
.sv-link-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
}
.sv-link-input {
  width: 100%;
  background: var(--vz-cream-deep);
  border: 1.5px solid var(--vz-ink);
  border-radius: 18px;
  padding: 22px 26px;
  font-family: var(--vz-mono);
  font-size: 22px;
  color: var(--vz-ink);
}
.sv-link-input::placeholder { color: var(--vz-ink-40); }
.sv-link-input:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--vz-orange);
}
.sv-link-preview {
  flex: 1;
  border: 1.5px dashed var(--vz-ink-15);
  border-radius: 18px;
  padding: 28px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: var(--vz-cream-deep);
}
.sv-link-preview .lbl {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
}
.sv-link-preview .hand {
  font-family: var(--vz-hand);
  font-size: 28px;
  color: var(--vz-cobalt);
  transform: rotate(-2deg);
}

/* Reminder tab — pretext chips + big stage */
.sv-reminder-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
}
.sv-pretext-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sv-pretext-row .lbl {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
  margin-right: 6px;
}
.sv-pretext {
  font-family: var(--vz-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  color: var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sv-pretext:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--vz-ink);
}
.sv-pretext .swatch {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
}
.sv-pretext.active {
  background: var(--vz-ink);
  color: var(--vz-cream);
  border-color: var(--vz-ink);
}
.sv-pretext.active .swatch { border-color: var(--vz-cream); }
.sv-pretext-hint {
  font-family: var(--vz-hand);
  font-size: 24px;
  color: var(--vz-cobalt);
  transform: rotate(-2deg);
  display: inline-block;
  margin-left: 6px;
}

.sv-reminder-stage {
  flex: 1;
  border: 1.5px solid var(--vz-ink);
  border-radius: 22px;
  background: var(--vz-cream-deep);
  padding: 24px 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  min-height: 220px;
}
.sv-reminder-stage .ribbon {
  font-family: var(--vz-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-orange);
  color: var(--vz-ink);
  white-space: nowrap;
  margin-top: 4px;
}
.sv-reminder-stage textarea {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--vz-body);
  font-size: 22px;
  color: var(--vz-ink);
  resize: none;
  min-height: 160px;
  outline: none;
  line-height: 1.35;
}
.sv-reminder-stage textarea::placeholder {
  color: var(--vz-ink-40);
  font-style: italic;
}
.sv-reminder-hint {
  font-family: var(--vz-mono);
  font-size: 12px;
  color: var(--vz-ink-40);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.sv-reminder-hint .cobalt { color: var(--vz-cobalt); }

.sv-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--vz-ink-15);
}
.sv-modal-hint {
  font-family: var(--vz-mono);
  font-size: 11px;
  color: var(--vz-ink-40);
  letter-spacing: 0.06em;
}
.sv-modal-hint kbd {
  font-family: var(--vz-mono);
  background: var(--vz-cream-deep);
  border: 1px solid var(--vz-ink-15);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
  color: var(--vz-ink-60);
  margin: 0 1px;
}
.sv-modal-foot .sv-save-btn {
  padding: 12px 26px;
  font-size: 15px;
}

/* === Toast =================================================== */
.sv-toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--vz-ink);
  color: var(--vz-cream);
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--vz-ink);
  z-index: 200;
  animation: toast-in 0.3s var(--ease-out);
  box-shadow: 4px 4px 0 var(--vz-orange);
}
.sv-toast .vz-hand {
  font-family: var(--vz-hand);
  color: var(--vz-lime);
  font-size: 22px;
  transform: rotate(-2deg);
  display: inline-block;
}
.sv-toast .label {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-cream);
  opacity: 0.6;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* === Empty state ============================================= */
.sv-empty {
  text-align: center;
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.sv-empty .big-blob {
  width: 140px;
  height: 140px;
  background: var(--vz-orange);
  border: 1px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  animation: blob-morph 9s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%; transform: rotate(-12deg); }
  25% { border-radius: 48% 52% 43% 57% / 60% 38% 62% 40%; transform: rotate(8deg); }
  50% { border-radius: 58% 42% 65% 35% / 38% 60% 40% 62%; transform: rotate(-6deg); }
  75% { border-radius: 52% 48% 38% 62% / 55% 45% 55% 45%; transform: rotate(14deg); }
}
@keyframes save-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.15); }
}
.sv-empty h2 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
}
.sv-empty h2 em { font-style: italic; font-weight: 400; }
.sv-empty .sub {
  font-family: var(--vz-hand);
  font-size: 26px;
  color: var(--vz-cobalt);
  transform: rotate(-4deg);
  margin-top: -8px;
}
.sv-empty-inputs {
  width: min(520px, 100%);
  margin-top: 24px;
  border: 1px solid var(--vz-ink);
  border-radius: 22px;
  padding: 18px;
  background: var(--vz-cream-deep);
}

/* === Detail panel ============================================ */
.sv-detail-veil {
  position: fixed; inset: 0;
  background: rgba(15,15,18,0.42);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: veil-in 0.18s var(--ease-out);
}
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
.sv-detail {
  width: min(680px, 100%);
  background: var(--vz-cream);
  border-left: 1px solid var(--vz-ink);
  padding: 28px 36px 36px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  animation: detail-in 0.28s var(--ease-out);
}
@keyframes detail-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.sv-detail .close {
  position: absolute; top: 18px; right: 22px;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  font-family: var(--vz-mono);
  font-size: 14px;
  background: var(--vz-cream-deep);
}
.sv-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--vz-mono);
  font-size: 11px;
  color: var(--vz-ink-60);
  letter-spacing: 0.04em;
}

/* === Detail toolbar (category pill + "call claude" button) === */
.sv-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sv-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  font-family: var(--vz-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--vz-ink);
}
.sv-cat-pill .glyph {
  font-size: 14px;
  color: var(--vz-cobalt);
}
.sv-call-claude {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--vz-ink);
  background: var(--vz-orange);
  font-family: var(--vz-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-call-claude:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--vz-ink);
}
.sv-call-claude:active { transform: none; box-shadow: none; }
.sv-call-claude:disabled { opacity: 0.5; cursor: default; }
.sv-call-claude .claude-blob {
  width: 12px; height: 12px;
  background: var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  display: inline-block;
  animation: blob-morph 8s ease-in-out infinite;
}
.sv-call-claude .arrow {
  font-family: var(--vz-mono);
  font-size: 14px;
  opacity: 0.6;
}
.sv-detail h1 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 10px;
  max-width: 90%;
}
.sv-detail h1 em { font-style: italic; font-weight: 400; }
.sv-detail-thumb {
  margin: 18px 0 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-detail-thumb img {
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.sv-detail-section {
  margin-top: 18px;
}
.sv-detail-section h4 {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
  margin: 0 0 8px;
}
.sv-detail-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--vz-ink);
  margin: 0;
}
.sv-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--vz-ink-15);
}
.sv-detail-action {
  flex: 1 0 auto;
  background: var(--vz-cream-deep);
  border: 1px solid var(--vz-ink);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  min-width: 180px;
}
.sv-detail-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--vz-ink);
}
.sv-detail-action .a-label {
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
}
.sv-detail-action .a-title {
  font-family: var(--vz-display);
  font-weight: 600;
  font-size: 16px;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.sv-detail-action.primary {
  background: var(--vz-cobalt);
  color: var(--vz-cream);
}
.sv-detail-action.primary .a-label { color: rgba(244,239,228,0.7); }
.sv-nudge-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--vz-cream-deep);
  border: 1px dashed var(--vz-ink);
  border-radius: 16px;
  font-family: var(--vz-hand);
  color: var(--vz-cobalt);
  font-size: 22px;
  line-height: 1.15;
  transform: rotate(-0.5deg);
}

/* === Weekly digest =========================================== */
.sv-digest {
  position: relative;
}
.sv-digest-hero {
  background: var(--vz-ink);
  color: var(--vz-cream);
  border-radius: 28px;
  padding: 40px 44px 44px;
  border: 1px solid var(--vz-ink);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.sv-digest-hero h1 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 720px;
  color: var(--vz-cream);
}
.sv-digest-hero h1 em { font-style: italic; font-weight: 400; color: var(--vz-orange); }
.sv-digest-hero .eyebrow {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vz-orange);
  margin-bottom: 14px;
}
.sv-digest-hero .blob {
  position: absolute;
  bottom: -60px; right: -40px;
  width: 280px; height: 280px;
  background: var(--vz-orange);
  border: 1px solid var(--vz-cream);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  animation: blob-morph 12s ease-in-out infinite;
  opacity: 0.95;
}
.sv-digest-hero .stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  position: relative;
  z-index: 1;
}
.sv-digest-hero .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv-digest-hero .stat-num {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.sv-digest-hero .stat.fresh .stat-num { color: var(--vz-lime); }
.sv-digest-hero .stat.aging .stat-num { color: var(--vz-pink); }
.sv-digest-hero .stat.stale .stat-num { color: var(--vz-orange); }
.sv-digest-hero .stat-label {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,239,228,0.7);
}

.sv-digest-section {
  margin-top: 36px;
}
.sv-digest-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--vz-ink-15);
}
.sv-digest-section-head h2 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}
.sv-digest-section-head h2 em { font-style: italic; font-weight: 400; }
.sv-digest-section-head .meta {
  font-family: var(--vz-mono);
  font-size: 11px;
  color: var(--vz-ink-60);
  letter-spacing: 0.04em;
}

.sv-nudge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.sv-nudge {
  border: 1px solid var(--vz-ink);
  border-radius: 22px;
  padding: 22px 22px 18px;
  background: var(--vz-cream-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv-nudge.stale .badge-row .sv-badge { background: var(--vz-orange); }
.sv-nudge .hand {
  font-family: var(--vz-hand);
  font-size: 24px;
  color: var(--vz-cobalt);
  line-height: 1.05;
  transform: rotate(-1deg);
}
.sv-nudge .what {
  font-family: var(--vz-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sv-nudge .badge-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.sv-nudge .nudge-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.sv-digest-row-cards {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vz-ink);
  border-radius: 22px;
  overflow: hidden;
  background: var(--vz-cream-deep);
}
.sv-digest-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--vz-ink-15);
}
.sv-digest-row:last-child { border-bottom: 0; }

/* === Reveal annotations toggle =============================== */
.no-annotations .sv-header-annotation,
.no-annotations .sv-decay-annotation,
.no-annotations .sv-nudge .hand,
.no-annotations .sv-empty .sub,
.no-annotations .sv-modal .modal-sub,
.no-annotations .sv-detail .vz-hand,
.no-annotations .sv-nudge-card { display: none !important; }

/* =============================================================
   WELCOME / first-time visitor
   Hero is a 2-column split: copy on left, live save module on right.
   ============================================================= */
.sv-welcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vh 5vw 80px;
  position: relative;
  overflow: hidden;
}
.sv-welcome-nav {
  width: 100%;
  max-width: 1320px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.sv-welcome-nav .meta {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
}

.sv-welcome-hero-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  max-width: 1320px;
  width: 100%;
  position: relative;
}

.sv-welcome-left {
  padding-top: 24px;
}
.sv-welcome-eyebrow {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
  margin-bottom: 18px;
}
.sv-welcome-h1 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0;
}
.sv-welcome-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--vz-cobalt);
}
.sv-welcome-hand {
  font-family: var(--vz-hand);
  font-size: 32px;
  color: var(--vz-cobalt);
  transform: rotate(-3deg);
  margin: 28px 0 0;
  display: inline-block;
  max-width: 480px;
  line-height: 1.05;
}
.sv-welcome-hand .pill {
  background: var(--vz-lime);
  color: var(--vz-ink);
  padding: 0 8px;
  border-radius: 4px;
}
.sv-welcome-blurb {
  margin-top: 26px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--vz-ink-60);
}

.sv-welcome-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.sv-welcome-secondary {
  font-family: var(--vz-mono);
  font-size: 12px;
  color: var(--vz-ink);
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: transparent;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-welcome-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--vz-ink);
}
.sv-welcome-secondary.primary {
  background: var(--vz-ink);
  color: var(--vz-cream);
}

/* === Supporting platforms row ============================== */
.sv-welcome-platforms {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sv-welcome-platforms-label {
  font-family: var(--vz-hand);
  font-size: 22px;
  color: var(--vz-cobalt);
  transform: rotate(-2deg);
  display: inline-block;
  line-height: 1;
}
.sv-welcome-platforms-label .arrow {
  display: inline-block;
  margin-left: 2px;
}
.sv-platform-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sv-platform {
  width: 38px;
  height: 38px;
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  border: 1px solid var(--vz-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vz-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--vz-cream);
  text-decoration: none;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  cursor: pointer;
  position: relative;
}
.sv-platform:hover {
  transform: translate(-2px, -2px) rotate(-6deg);
  box-shadow: 2px 2px 0 var(--vz-ink);
}
.sv-platform .glyph { line-height: 1; }
.sv-platform.p-youtube  { background: #FF1C1C; }
.sv-platform.p-instagram { background: linear-gradient(135deg, #FE6F31 0%, #DC2C7F 100%); }
.sv-platform.p-tiktok   { background: var(--vz-ink); }
.sv-platform.p-tiktok::after {
  content: '';
  position: absolute;
  top: 7px; right: 7px;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--vz-lime);
}
.sv-platform.p-x        { background: var(--vz-ink); color: var(--vz-cream); }
.sv-platform.p-x .glyph { font-size: 17px; }
.sv-platform.p-reddit   { background: #FF4500; }
.sv-platform.p-reddit .glyph { font-size: 13px; font-style: italic; }
.sv-platform.p-linkedin { background: #0A66C2; }
.sv-platform.p-linkedin .glyph { font-size: 13px; font-style: italic; }
.sv-platform.p-pinterest { background: #E60023; }
.sv-platform.p-plus {
  background: var(--vz-cream-deep);
  color: var(--vz-ink);
}

/* === Category constellation (right of hero) ================== */
.sv-constellation {
  position: relative;
  width: 100%;
  min-height: 580px;
  height: 100%;
}
.sv-cat-ball {
  position: absolute;
  border: 1.5px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation:
    blob-morph linear infinite,
    cat-float ease-in-out infinite alternate;
  transform-origin: center;
  cursor: default;
}
.sv-cat-ball.c-orange { background: var(--vz-orange); }
.sv-cat-ball.c-cobalt { background: var(--vz-cobalt); }
.sv-cat-ball.c-lime   { background: var(--vz-lime); }
.sv-cat-ball.c-pink   { background: var(--vz-pink); }
.sv-cat-ball .label {
  font-family: var(--vz-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--vz-ink);
  user-select: none;
  text-align: center;
  line-height: 1;
}
.sv-cat-ball.c-cobalt .label { color: var(--vz-cream); }
@keyframes cat-float {
  from { transform: translate(0, 0) rotate(-3deg); }
  to   { transform: translate(var(--drift, 14px), calc(var(--drift, 14px) * -1.1)) rotate(5deg); }
}
.constellation-sticker {
  position: absolute;
  font-family: var(--vz-hand);
  font-size: 22px;
  color: var(--vz-cobalt);
  line-height: 1.05;
  pointer-events: none;
  z-index: 2;
}
.constellation-sticker.tl {
  top: -10px;
  left: -4px;
  transform: rotate(-6deg);
}
.constellation-sticker.br {
  bottom: 4px;
  right: -8px;
  transform: rotate(4deg);
  color: var(--vz-ink);
  text-align: right;
}

/* === Step strip (between hero and save module) =============== */
.sv-step-strip {
  width: 100%;
  max-width: 1180px;
  margin: 56px 0 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.sv-step-card {
  flex: 1;
  border: 1.5px solid var(--vz-ink);
  border-radius: 22px;
  padding: 22px 24px 18px;
  background: var(--vz-cream-deep);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  min-width: 0;
}
.sv-step-card.primary {
  background: var(--vz-orange);
  box-shadow: 4px 4px 0 var(--vz-ink);
}
.sv-step-card .num {
  font-family: var(--vz-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
  margin-bottom: 6px;
}
.sv-step-card.primary .num { color: var(--vz-ink); }
.sv-step-card .big {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.sv-step-card.primary .big { font-size: 32px; }
.sv-step-card .big em { font-style: italic; font-weight: 400; }
.sv-step-card .sub {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--vz-ink-60);
  margin-top: 4px;
}
.sv-step-card.primary .sub { color: var(--vz-ink); opacity: 0.7; }
.sv-step-arrow {
  font-family: var(--vz-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--vz-ink-40);
  display: flex;
  align-items: center;
}

/* === Live save section · BELOW the hero ===================== */
.sv-welcome-save-section {
  width: 100%;
  max-width: 1180px;
  margin-top: 72px;
}
.sv-welcome-save-frame {
  background: var(--vz-cream);
  border: 1.5px solid var(--vz-ink);
  border-radius: 28px;
  padding: 36px 44px 30px;
  box-shadow: 8px 8px 0 var(--vz-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.sv-welcome-save-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sv-welcome-save-title {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.sv-welcome-save-title em { font-style: italic; font-weight: 400; }
.sv-welcome-save-sub {
  font-family: var(--vz-hand);
  color: var(--vz-cobalt);
  font-size: 24px;
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: 6px;
}
.sv-welcome-arrow-sticker {
  font-family: var(--vz-hand);
  color: var(--vz-cobalt);
  font-size: 22px;
  line-height: 1.1;
  text-align: right;
  position: relative;
  padding-right: 18px;
  transform: rotate(2deg);
}
.sv-welcome-arrow-sticker .curve {
  position: absolute;
  right: -2px;
  top: -10px;
  font-size: 36px;
  transform: rotate(40deg);
  color: var(--vz-cobalt);
}

@media (max-width: 1100px) {
  .sv-welcome-hero-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sv-welcome-h1 { font-size: clamp(48px, 9vw, 80px); }
  .sv-constellation { min-height: 420px; }
  .sv-step-strip { flex-wrap: wrap; }
  .sv-step-arrow { display: none; }
}

/* ── Mobile welcome ─────────────────────────────────── */
@media (max-width: 640px) {
  .sv-welcome {
    padding: 3vh 16px 48px;
  }
  .sv-welcome-nav { margin-bottom: 20px; }
  .sv-welcome-hero-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sv-welcome-left { padding-top: 8px; }
  .sv-welcome-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .sv-welcome-h1 { font-size: clamp(36px, 11vw, 56px); }
  .sv-welcome-blurb { font-size: 14px; margin-top: 16px; max-width: 100%; }
  .sv-welcome-cta-row { margin-top: 20px; gap: 12px; }
  .sv-welcome-platforms { margin-top: 20px; }
  .sv-platform { width: 32px; height: 32px; font-size: 12px; }
  .sv-platform.p-x .glyph { font-size: 14px; }

  /* Constellation: compact container for mobile */
  .sv-constellation {
    min-height: 220px;
    max-height: 240px;
    margin-top: 8px;
    overflow: hidden;
  }
  .constellation-sticker { font-size: 14px; }
  .constellation-sticker.tl { top: 2px; left: 2px; }
  .constellation-sticker.br { bottom: 6px; right: 2px; font-size: 12px; }

  /* Save module */
  .sv-welcome-save-section { margin-top: 40px; }
  .sv-welcome-save-frame {
    padding: 24px 18px 20px;
    border-radius: 22px;
    box-shadow: 5px 5px 0 var(--vz-ink);
  }
  .sv-welcome-save-title { font-size: 28px; }
  .sv-welcome-save-sub { font-size: 18px; }

  /* Step strip: vertical stack on mobile */
  .sv-step-strip {
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
  }
  .sv-step-arrow { display: none; }
  .sv-step-card {
    padding: 16px 18px 14px;
    border-radius: 16px;
  }
  .sv-step-card .big { font-size: 22px; }
  .sv-step-card.primary .big { font-size: 26px; }
  .sv-step-card .num { margin-bottom: 2px; }

  /* Footer */
  .sv-welcome-foot { margin-top: 36px; font-size: 10px; }
}

/* "How it works" row */
.sv-welcome-how {
  margin-top: 96px;
  width: 100%;
  max-width: 1180px;
}
.sv-welcome-how-eyebrow {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sv-welcome-how-eyebrow::before,
.sv-welcome-how-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--vz-ink-15);
}
.sv-welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sv-step {
  border: 1px solid var(--vz-ink);
  border-radius: 22px;
  padding: 24px 22px 22px;
  background: var(--vz-cream-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.sv-step .num {
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
}
.sv-step h3 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
}
.sv-step h3 em { font-style: italic; font-weight: 400; }
.sv-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--vz-ink-60);
  margin: 0;
}
.sv-step .step-blob {
  position: absolute;
  bottom: -28px; right: -22px;
  width: 110px; height: 110px;
  background: var(--vz-orange);
  border: 1px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  opacity: 0.18;
  transform: rotate(-12deg);
}
.sv-step.s2 .step-blob { background: var(--vz-cobalt); }
.sv-step.s3 .step-blob { background: var(--vz-lime); opacity: 0.32; }

.sv-welcome-foot {
  margin-top: 64px;
  text-align: center;
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
}


/* =============================================================
   CATEGORY-GROUPED INBOX
   ============================================================= */
.sv-cat-group {
  margin-bottom: 32px;
  border-radius: 18px;
  padding: 4px;
  transition: background var(--d-fast) var(--ease), outline-color var(--d-fast) var(--ease);
  outline: 1.5px dashed transparent;
  outline-offset: -2px;
}
.sv-cat-group.drop-hot {
  background: var(--vz-cream-deep);
  outline-color: var(--vz-cobalt);
}
.sv-cat-group.empty .sv-cat-head h2 {
  color: var(--vz-ink-40);
}
.sv-cat-group.empty .sv-cat-head .cat-glyph {
  color: var(--vz-ink-40);
}
.sv-cat-empty {
  padding: 14px 8px;
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--vz-ink-40);
  border-bottom: 1px solid var(--vz-cream-deeper);
}
.sv-cat-empty span {
  font-style: italic;
}
.sv-cat-head .drop-hint {
  font-family: var(--vz-hand);
  font-size: 18px;
  color: var(--vz-cobalt);
  margin-left: auto;
  transform: rotate(-2deg);
}

/* =============================================================
   NEW CATEGORY DROP ZONE — bottom of the inbox
   ============================================================= */
.sv-new-cat-drop {
  margin-top: 36px;
  border: 1.5px dashed var(--vz-ink-15);
  border-radius: 22px;
  padding: 26px 28px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.sv-new-cat-drop.drop-hot {
  border-color: var(--vz-orange);
  border-style: solid;
  background: var(--vz-cream-deep);
  box-shadow: 4px 4px 0 var(--vz-ink);
}
.sv-new-cat-drop .big-plus {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vz-display);
  font-weight: 400;
  font-size: 32px;
  color: var(--vz-ink);
  flex-shrink: 0;
  transition: background var(--d-fast) var(--ease);
}
.sv-new-cat-drop.drop-hot .big-plus {
  background: var(--vz-orange);
}
.sv-new-cat-drop .copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sv-new-cat-drop .line {
  font-family: var(--vz-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--vz-ink);
}
.sv-new-cat-drop.drop-hot .line {
  color: var(--vz-cobalt);
  font-style: italic;
}
.sv-new-cat-drop .hint {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--vz-ink-40);
}
.sv-cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 8px 10px;
  border-bottom: 1px solid var(--vz-ink);
  margin-bottom: 4px;
}
.sv-cat-head .cat-glyph {
  font-family: var(--vz-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--vz-cobalt);
  display: inline-block;
  width: 22px;
  text-align: center;
}
.sv-cat-head h2 {
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
}
.sv-cat-head .count {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--vz-ink-60);
}
.sv-cat-head .decay-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.sv-cat-head .decay-mini span {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  display: inline-block;
}
.sv-cat-head .decay-mini .s-fresh { background: var(--vz-lime); }
.sv-cat-head .decay-mini .s-aging { background: var(--vz-pink); }
.sv-cat-head .decay-mini .s-stale { background: var(--vz-orange); }
.sv-cat-head .decay-mini .n {
  font-family: var(--vz-mono);
  font-size: 10px;
  color: var(--vz-ink-60);
  width: auto; height: auto; border: 0; background: none;
  margin: 0 6px 0 2px;
}
.sv-cat-head .exec-all {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  color: var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-cat-head .exec-all:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--vz-ink);
}

/* =============================================================
   ITEM DETAIL · category actions panel
   ============================================================= */
.sv-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.sv-action-card {
  border: 1px solid var(--vz-ink);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--vz-cream-deep);
  text-align: left;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sv-action-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--vz-ink);
}
.sv-action-card.primary {
  background: var(--vz-cobalt);
  color: var(--vz-cream);
}
.sv-action-card .label {
  font-family: var(--vz-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.sv-action-card .desc {
  font-family: var(--vz-mono);
  font-size: 10.5px;
  color: var(--vz-ink-60);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.sv-action-card.primary .desc { color: rgba(244,239,228,0.7); }

/* Claude response area inside detail */
.sv-claude-panel {
  margin-top: 18px;
  border: 1px solid var(--vz-ink);
  border-radius: 16px;
  background: var(--vz-cream-deep);
  overflow: hidden;
  animation: claude-panel-in 0.3s var(--ease-out);
}
@keyframes claude-panel-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sv-claude-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--vz-ink);
  color: var(--vz-cream);
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sv-claude-head .claude-blob {
  width: 10px; height: 10px;
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  background: var(--vz-orange);
  border: 0;
  display: inline-block;
  animation: blob-morph 5s ease-in-out infinite;
}
.sv-claude-head .claude-blob.thinking {
  animation: blob-morph 1s ease-in-out infinite;
}
.sv-claude-head .running {
  margin-left: auto;
  color: var(--vz-orange);
  letter-spacing: 0.16em;
}
.sv-open-in-claude {
  margin-left: auto;
  color: var(--vz-lime);
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--vz-lime);
  text-decoration: none;
  transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.sv-open-in-claude:hover {
  background: var(--vz-lime);
  color: var(--vz-ink);
  text-decoration: none;
  transform: translate(-2px, -2px);
}
.sv-claude-body {
  padding: 18px 20px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--vz-ink);
  white-space: pre-wrap;
  min-height: 60px;
  font-family: var(--vz-body);
}
.sv-claude-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--vz-cobalt);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.sv-claude-foot {
  border-top: 1px dashed var(--vz-ink-15);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vz-ink-40);
}
.sv-claude-foot .actions {
  display: flex;
  gap: 6px;
}
.sv-claude-foot button {
  font-family: var(--vz-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink-15);
  background: var(--vz-cream);
  color: var(--vz-ink-60);
}
.sv-claude-foot button:hover { border-color: var(--vz-ink); color: var(--vz-ink); }

/* =============================================================
   CELEBRATION · the moment of actioning a save
   Fired when claude finishes an action OR an item is archived.
   ============================================================= */
.sv-celebration {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: celeb-bg 1.8s var(--ease-out) forwards;
}
@keyframes celeb-bg {
  0%   { background: rgba(15,15,18,0); }
  15%  { background: rgba(15,15,18,0.55); }
  85%  { background: rgba(15,15,18,0.55); }
  100% { background: rgba(15,15,18,0); }
}
.sv-celebration .stage {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-celebration .blob {
  width: 240px;
  height: 240px;
  background: var(--vz-lime);
  border: 2px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  animation: celeb-blob 1.8s var(--ease-out) forwards;
  position: relative;
  z-index: 1;
}
@keyframes celeb-blob {
  0%   { transform: scale(0.2) rotate(-30deg); opacity: 0; border-radius: 50%; }
  30%  { transform: scale(1.05) rotate(0deg); opacity: 1; border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%; }
  60%  { transform: scale(1.0) rotate(8deg); opacity: 1; }
  85%  { transform: scale(1.0) rotate(8deg); opacity: 1; }
  100% { transform: scale(1.6) rotate(-12deg); opacity: 0; }
}
.sv-celebration .check {
  position: absolute;
  z-index: 2;
  font-family: var(--vz-display);
  font-weight: 900;
  font-size: 96px;
  color: var(--vz-ink);
  animation: celeb-check 1.8s var(--ease-out) forwards;
}
@keyframes celeb-check {
  0%   { transform: scale(0); opacity: 0; }
  35%  { transform: scale(1.1); opacity: 1; }
  60%  { transform: scale(1); opacity: 1; }
  85%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.sv-celebration .celeb-caption {
  margin-top: 16px;
  font-family: var(--vz-hand);
  font-size: 56px;
  color: var(--vz-cream);
  animation: celeb-cap 1.8s var(--ease-out) forwards;
  white-space: nowrap;
  z-index: 3;
  text-shadow: 0 2px 12px rgba(15,15,18,0.5);
  transform: rotate(-3deg);
}
@keyframes celeb-cap {
  0%   { opacity: 0; transform: translateY(20px) rotate(-3deg); }
  30%  { opacity: 1; transform: translateY(0) rotate(-3deg); }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}
/* confetti dots — small lime/cobalt/orange dots fly outward */
.sv-celebration .confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  animation: confetti 1.8s var(--ease-out) forwards;
}
@keyframes confetti {
  0%   { transform: translate(0, 0) rotate(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: var(--end, translate(160px, -120px)) rotate(360deg); opacity: 0; }
}

/* =============================================================
   RE-ORG button — sits in inbox toolbar
   ============================================================= */
.sv-reorg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
  background: var(--vz-cream-deep);
  color: var(--vz-ink);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.sv-reorg-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--vz-ink);
}
.sv-reorg-btn .glyph {
  display: inline-block;
  font-size: 13px;
  transition: transform 0.6s var(--ease);
}
.sv-reorg-btn:hover .glyph { transform: rotate(180deg); }
.sv-reorg-btn.busy .glyph {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.sv-reorg-overlay {
  position: fixed; inset: 0;
  background: rgba(244,239,228,0.85);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: veil-in 0.18s var(--ease-out);
}
.sv-reorg-overlay .blob-pile {
  display: flex;
  gap: 14px;
  align-items: center;
}
.sv-reorg-overlay .blob-pile span {
  width: 36px; height: 36px;
  border: 1.5px solid var(--vz-ink);
  border-radius: 62% 38% 55% 45% / 50% 60% 40% 50%;
  animation: blob-bounce 1.2s ease-in-out infinite;
}
.sv-reorg-overlay .blob-pile span:nth-child(1) { background: var(--vz-orange); animation-delay: 0s; }
.sv-reorg-overlay .blob-pile span:nth-child(2) { background: var(--vz-cobalt); animation-delay: 0.18s; }
.sv-reorg-overlay .blob-pile span:nth-child(3) { background: var(--vz-lime); animation-delay: 0.36s; }
.sv-reorg-overlay .blob-pile span:nth-child(4) { background: var(--vz-pink); animation-delay: 0.54s; }
@keyframes blob-bounce {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-14px) rotate(14deg); }
}
.sv-reorg-overlay .caption {
  font-family: var(--vz-display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--vz-ink);
}
.sv-reorg-overlay .sub {
  font-family: var(--vz-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vz-ink-60);
}

/* =============================================================
   AGE chip (replaces decay badge in rows · neutral, no labels)
   ============================================================= */
.sv-age-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink-15);
  background: transparent;
  font-family: var(--vz-mono);
  font-size: 11px;
  color: var(--vz-ink-60);
  letter-spacing: 0.02em;
}
.sv-age-chip .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  border: 1px solid var(--vz-ink);
}
.sv-age-chip.fresh .dot  { background: var(--vz-lime); }
.sv-age-chip.aging .dot  { background: var(--vz-pink); }
.sv-age-chip.stale .dot  { background: var(--vz-orange); }

/* =============================================================
   READING category — extra-strong reader feel on hover
   ============================================================= */
.sv-item-row.reading:hover { background: var(--vz-cream-deep); }
.sv-cat-group.reading .sv-cat-head { border-bottom-color: var(--vz-cobalt); }

/* === Focus =================================================== */
button:focus-visible, .sv-input:focus-visible {
  outline: 2px solid var(--vz-cobalt);
  outline-offset: 2px;
}

/* === Tablet / small =========================================== */
@media (max-width: 900px) {
  .sv-app { grid-template-columns: 1fr; }
  .sv-sidebar { position: relative; height: auto; }
}

/* === Mobile app layout ======================================== */
@media (max-width: 640px) {
  .sv-app { grid-template-columns: 1fr; }
  .sv-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    padding: 12px 14px;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid var(--vz-ink-15);
    overflow: hidden;
  }
  .sv-sidebar .sv-logo { font-size: 22px; }
  .sv-sidebar .sv-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    flex: 0;
  }
  .sv-sidebar .sv-nav-section { display: none; }
  .sv-sidebar .sv-nav-item {
    padding: 5px 10px;
    font-size: 11px;
  }
  /* Hide collection items on mobile sidebar — only show main nav */
  .sv-sidebar .sv-nav-item:not(.active) {
    display: none;
  }
  /* But always show the main nav items (first two) */
  .sv-sidebar .sv-nav-item:nth-child(-n+3) {
    display: flex;
  }
  /* Hide account section on mobile sidebar */
  .sv-sidebar .sv-nav > div:last-child,
  .sv-sidebar .sv-nav > div[style*="marginTop"] {
    display: none;
  }
  .sv-main { padding: 16px 12px; }
  .sv-inbox-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  /* Modal on mobile */
  .sv-modal {
    padding: 28px 20px 24px;
    border-radius: 22px;
    box-shadow: 5px 5px 0 var(--vz-ink);
    width: min(960px, calc(100% - 24px));
  }
  .sv-modal h2 { font-size: 28px; }
  .sv-modal-foot { flex-wrap: wrap; gap: 10px; }
  .sv-modal-hint { display: none; }
}
