/* ============================================================
   NOVA, outreach companion and board
   Page-scoped styles. Built on the portal tokens in site.css.
   ============================================================ */
:root {
  --nv-glow: #3fb8ad;
  --nv-glow-soft: rgba(63, 184, 173, 0.18);
  --nv-glass: rgba(255, 255, 255, 0.78);
  --nv-hair: rgba(16, 42, 53, 0.08);
  --nv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nv-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* ---------------- floating companion ---------------- */
.nv-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; font-family: var(--font-body); }
.nv-float.nv-left { right: auto; left: 22px; }
.nv-orb {
  position: relative; width: 64px; height: 64px; border: 0; padding: 0; border-radius: 50%;
  background: transparent; cursor: grab; touch-action: none;
  filter: drop-shadow(0 10px 22px rgba(16, 42, 53, 0.22)) drop-shadow(0 2px 4px rgba(16, 42, 53, 0.12));
  animation: nv-bob 5.2s ease-in-out infinite;
  transition: transform 0.35s var(--nv-spring);
}
.nv-orb:hover { transform: scale(1.06); }
.nv-orb:active { cursor: grabbing; transform: scale(0.96); }
.nv-orb:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.nv-dragging .nv-orb { animation: none; transition: none; }
.nv-face { width: 64px; height: 64px; display: block; overflow: visible; position: relative; z-index: 1; }
.nv-halo {
  position: absolute; inset: -5px; border-radius: 50%; opacity: 0; transition: opacity 0.4s var(--nv-ease);
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(127, 227, 216, 0.95) 75%, transparent 92%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 67%, transparent 68%);
          mask: radial-gradient(circle, transparent 60%, #000 61%, #000 67%, transparent 68%);
  animation: nv-spin 3.4s linear infinite;
}
.nv-waiting .nv-halo { opacity: 1; }
.nv-eyes { transition: transform 0.25s var(--nv-ease); }
.nv-open { transform-box: fill-box; transform-origin: center; animation: nv-blink 5.6s infinite; }
.nv-happy, .nv-rest { opacity: 0; transition: opacity 0.2s; }
.nv-float[data-mood="happy"] .nv-open, .nv-float[data-mood="rest"] .nv-open { opacity: 0; }
.nv-float[data-mood="happy"] .nv-happy { opacity: 1; }
.nv-float[data-mood="happy"] .nv-orb { animation: nv-hop 0.7s var(--nv-spring) 2; }
.nv-float[data-mood="rest"] .nv-rest { opacity: 1; }
.nv-float[data-mood="rest"] .nv-tip { fill: #9cc9c3; }
.nv-tip { animation: nv-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.nv-badge {
  position: absolute; top: -2px; right: -2px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--ink); color: #fff; border: 2px solid #fff;
  font: 700 11px/18px var(--font-display); text-align: center; letter-spacing: 0.01em;
}
.nv-pop {
  position: absolute; right: 0; bottom: 78px; width: min(340px, calc(100vw - 32px));
  background: var(--nv-glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 22px; padding: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 60px -20px rgba(16, 42, 53, 0.35), 0 0 0 1px var(--nv-hair);
  transform-origin: bottom right; animation: nv-pop-in 0.34s var(--nv-spring);
}
.nv-left .nv-pop { right: auto; left: 0; transform-origin: bottom left; }
.nv-pop[hidden] { display: none; }
.nv-pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.nv-pop-head strong { display: block; font: 800 15px/1.2 var(--font-display); letter-spacing: 0.06em; color: var(--ink); }
.nv-pop-head span { font-size: 12.5px; color: var(--stone); }
.nv-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16, 42, 53, 0.06); color: var(--stone); cursor: pointer; display: grid; place-items: center; }
.nv-x svg { width: 14px; height: 14px; }
.nv-x:hover { background: rgba(16, 42, 53, 0.1); color: var(--ink); }
.nv-person { display: flex; gap: 12px; align-items: center; }
.nv-person strong { display: block; font: 700 15px/1.25 var(--font-display); color: var(--ink); }
.nv-person small { display: block; font-size: 12.5px; color: var(--stone); line-height: 1.35; }
.nv-ava, .nova-ava {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px var(--font-display); color: var(--ink);
  background: linear-gradient(145deg, #e9f6f4, #cdede8); box-shadow: inset 0 0 0 1px rgba(0, 123, 114, 0.12);
}
.nv-why { margin: 10px 0 12px; font-size: 12.5px; color: var(--teal-hover); background: var(--teal-quiet); padding: 6px 10px; border-radius: 10px; }
.nv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nv-btn { white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 13px var(--font-display); cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--nv-ease), background 0.2s, border-color 0.2s;
}
.nv-btn:hover { border-color: var(--line-strong); }
.nv-btn:active { transform: scale(0.97); }
.nv-btn.nv-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.nv-btn.nv-primary:hover { background: var(--ink-soft); }
.nv-btn:disabled { opacity: 0.6; cursor: progress; }
.nv-wide { width: 100%; margin-top: 10px; }
.nv-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.nv-count { margin-left: auto; font-size: 12px; color: var(--stone-light); font-variant-numeric: tabular-nums; }
.nv-link { background: none; border: 0; padding: 0; font: 600 13px var(--font-display); color: var(--teal); cursor: pointer; text-decoration: none; }
.nv-link:hover { color: var(--teal-hover); text-decoration: underline; }
.nv-quiet { color: var(--stone); font-weight: 500; }
.nv-pop-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--nv-hair); }
.nv-muted { margin: 0; font-size: 13.5px; color: var(--stone); line-height: 1.5; }
.nv-done { margin: 0 0 4px; font: 700 15px var(--font-display); color: var(--ink); }
.nv-peek {
  position: fixed; right: 0; bottom: 96px; z-index: 60; width: 14px; height: 54px; border: 0; cursor: pointer;
  border-radius: 10px 0 0 10px; background: linear-gradient(180deg, #7fe3d8, #3fb8ad); box-shadow: -4px 6px 16px rgba(16, 42, 53, 0.18);
  transition: width 0.2s var(--nv-ease);
}
.nv-peek:hover, .nv-peek:focus-visible { width: 22px; }
.nv-on-page .nv-pop-foot .nv-link:first-child { visibility: hidden; }

@keyframes nv-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes nv-spin { to { transform: rotate(360deg); } }
@keyframes nv-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes nv-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.75; } }
@keyframes nv-hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -12px; } }
@keyframes nv-pop-in { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }

/* ---------------- NOVA board page ---------------- */
.nova-app { max-width: 980px; margin: 0 auto; }
.nova-app [hidden], .nv-float [hidden] { display: none !important; }
.nova-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.nova-id { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nova-id .eyebrow { margin: 0 0 2px; }
.nova-id .nova-title { margin: 0; font: 800 clamp(1.8rem, 3.6vw, 2.4rem)/1 var(--font-display); letter-spacing: 0.04em; color: var(--ink); }
.nova-mark {
  width: 46px; height: 46px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 34% 28%, #fff, #eaf5f3 55%, #bcded9);
  box-shadow: 0 8px 18px -6px rgba(16, 42, 53, 0.35), inset 0 0 0 1px rgba(0, 123, 114, 0.1);
}
.nova-mark::before { content: ""; position: absolute; left: 10px; right: 10px; top: 17px; height: 15px; border-radius: 8px; background: linear-gradient(#16333f, #0a1c24); }
.nova-mark::after { content: ""; position: absolute; top: 20.5px; left: 16.5px; width: 4px; height: 8px; border-radius: 2px; background: #7fe3d8; box-shadow: 9px 0 0 #7fe3d8; animation: nv-blink 5.6s infinite; }
.nova-ring { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nova-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.nova-ring circle { fill: none; stroke-width: 4; }
.nova-ring .t { stroke: var(--line); }
.nova-ring .v { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--nv-ease); }
.nova-ring strong { display: block; font: 800 18px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.nova-ring strong small { font-size: 13px; color: var(--stone-light); font-weight: 600; }
.nova-ring span { font-size: 12.5px; color: var(--stone); }
.nova-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(16, 42, 53, 0.06); }
.nova-seg button { border: 0; background: none; padding: 7px 16px; border-radius: 9px; font: 600 13.5px var(--font-display); color: var(--stone); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.nova-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 42, 53, 0.12), 0 0 0 0.5px rgba(16, 42, 53, 0.06); }
.nova-icon {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.nova-icon svg { width: 18px; height: 18px; }
.nova-icon:hover { border-color: var(--line-strong); }
.nova-icon:active { transform: scale(0.94); }
.nova-icon.ok:hover { background: var(--ok-bg); color: var(--ok); border-color: #b9dcc7; }
.nova-icon:disabled { opacity: 0.35; cursor: default; }
.nova-staff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--interview-bg); }
.nova-staff label { font: 600 13px var(--font-display); color: var(--ink); }
.nova-staff select { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; font: inherit; background: #fff; }
.nova-note { font-size: 12.5px; color: var(--interview); }
.nova-sync { margin-bottom: 12px; padding: 9px 14px; border-radius: 12px; font-size: 13px; background: var(--teal-quiet); color: var(--teal-hover); }
.nova-sync.off { background: var(--warn-bg); color: var(--warn); }
.nova-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.nova-banner span { margin-right: auto; }
.nova-banner.soft { background: var(--linen); }
.nova-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--slate); font: 600 12.5px var(--font-display); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nova-chip b { font-weight: 700; color: var(--stone-light); font-variant-numeric: tabular-nums; }
.nova-chip:hover { border-color: var(--line-strong); }
.nova-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.nova-chip.on b { color: rgba(255, 255, 255, 0.7); }
.nova-chip.ok { background: var(--ok-bg); border-color: #b9dcc7; color: var(--ok); }

/* Focus card */
.nova-focus { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.nova-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform 0.15s, opacity 0.2s; }
.nova-nav svg { width: 18px; height: 18px; }
.nova-nav:disabled { opacity: 0.3; cursor: default; }
.nova-nav:not(:disabled):active { transform: scale(0.92); }
.nova-card {
  background: #fff; border-radius: 28px; padding: clamp(20px, 3.4vw, 34px);
  box-shadow: 0 1px 2px rgba(16, 42, 53, 0.04), 0 24px 60px -28px rgba(16, 42, 53, 0.28), 0 0 0 1px var(--nv-hair);
  animation: nova-in 0.42s var(--nv-spring);
}
.nova-card.nova-leave { animation: nova-out 0.24s var(--nv-ease) forwards; }
.nova-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.nova-kind { font: 700 11.5px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--teal-quiet); color: var(--teal-hover); }
.nova-kind.k-recruiter { background: var(--interview-bg); color: var(--interview); }
.nova-kind.k-leader, .nova-kind.k-executive { background: var(--warn-bg); color: var(--warn); }
.nova-kind.k-peer { background: var(--linen-warm); color: var(--stone); }
.nova-pos { font-size: 12.5px; color: var(--stone-light); font-variant-numeric: tabular-nums; }
.nova-person { display: flex; gap: 16px; align-items: center; }
.nova-person .nova-ava { width: 64px; height: 64px; font-size: 20px; }
.nova-person h2 { margin: 0 0 4px; font: 800 clamp(1.35rem, 2.8vw, 1.75rem)/1.15 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.nova-person p { margin: 0; font-size: 15px; color: var(--slate); line-height: 1.4; }
.nova-person .nova-where { color: var(--stone); font-size: 14px; }
.nova-why { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font-size: 13.5px; color: var(--teal-hover); }
.nova-why svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.nova-note-box { margin-top: 18px; background: var(--linen); border-radius: 18px; padding: 12px 14px 10px; border: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.nova-note-box:focus-within { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px var(--nv-glow-soft); }
.nova-note-box label { display: block; font: 700 11.5px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 4px; }
.nova-note-box textarea { width: 100%; border: 0; background: transparent; resize: none; font: 400 15px/1.55 var(--font-body); color: var(--slate); padding: 0; min-height: 72px; field-sizing: content; }
.nova-note-box textarea:focus { outline: none; }
.nova-note-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--stone-light); font-variant-numeric: tabular-nums; }
.nova-note-meta .near { color: var(--warn); font-weight: 600; }
.nova-link { background: none; border: 0; padding: 0; font: 600 13px var(--font-display); color: var(--teal); cursor: pointer; }
.nova-link:hover { text-decoration: underline; }
.nova-link:disabled { opacity: 0.5; }
.nova-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.nova-step {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 14px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none;
  font: 700 14.5px var(--font-display); transition: transform 0.16s var(--nv-ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.nova-step svg { width: 18px; height: 18px; }
.nova-step b { position: absolute; top: 6px; left: 10px; font-size: 10.5px; color: var(--stone-light); font-weight: 700; }
.nova-step kbd, .nova-ghost kbd { font: 600 10.5px var(--font-body); color: var(--stone-light); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-left: 2px; }
.nova-step:hover { border-color: var(--line-strong); }
.nova-step:active { transform: scale(0.97); }
.nova-step.now { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 12px 26px -12px rgba(16, 42, 53, 0.6); }
.nova-step.now b, .nova-step.now kbd { color: rgba(255, 255, 255, 0.65); border-color: rgba(255, 255, 255, 0.25); }
.nova-step.done { background: var(--teal-quiet); border-color: transparent; color: var(--teal-hover); }
.nova-card-foot { display: flex; gap: 6px; margin-top: 14px; }
.nova-ghost { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font: 600 13.5px var(--font-display); color: var(--stone); cursor: pointer; }
.nova-ghost svg { width: 16px; height: 16px; }
.nova-ghost:hover { background: rgba(16, 42, 53, 0.05); color: var(--ink); }
.nova-ghost.quiet { margin-left: auto; font-weight: 500; color: var(--stone-light); }
.nova-ro { margin: 18px 0 0; font-size: 14px; color: var(--stone); }
.nova-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 6px; flex-wrap: wrap; }
.nova-dot { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: width 0.3s var(--nv-ease), background 0.2s; }
.nova-dot.s-copied, .nova-dot.s-opened { background: var(--teal); opacity: 0.55; }
.nova-dot.s-later { background: var(--warn); opacity: 0.5; }
.nova-dot.on { width: 22px; background: var(--ink); opacity: 1; }
.nova-keys { text-align: center; font-size: 12px; color: var(--stone-light); margin: 6px 0 0; }

/* Queue */
.nova-qbar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.nova-filters, .nova-qactions { display: flex; gap: 6px; flex-wrap: wrap; }
.nova-queue { list-style: none; margin: 0; padding: 6px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--nv-hair), 0 18px 40px -26px rgba(16, 42, 53, 0.25); }
.nova-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 10px; border-radius: 14px; transition: background 0.2s; }
.nova-row + .nova-row { border-top: 1px solid var(--nv-hair); }
.nova-row:hover { background: var(--linen); }
.nova-ava.sm { width: 38px; height: 38px; font-size: 13px; }
.nova-row-main { min-width: 0; }
.nova-row-main strong { display: block; font: 700 14.5px/1.25 var(--font-display); color: var(--ink); }
.nova-row-main span, .nova-row-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nova-row-main span { font-size: 13.5px; color: var(--slate); }
.nova-row-main small { font-size: 12.5px; color: var(--stone); }
.nova-row.s-sent, .nova-row.s-skipped { opacity: 0.7; }
.nova-row-acts, .nova-outcomes { display: flex; gap: 6px; flex-wrap: wrap; }
.nova-pill { font: 700 11px var(--font-display); letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; background: var(--linen-warm); color: var(--stone); white-space: nowrap; }
.nova-pill.p-opened, .nova-pill.p-copied { background: var(--teal-quiet); color: var(--teal-hover); }
.nova-pill.p-sent, .nova-pill.p-connected, .nova-pill.p-replied, .nova-pill.p-referral { background: var(--ok-bg); color: var(--ok); }
.nova-pill.p-later { background: var(--warn-bg); color: var(--warn); }
.nova-pill.p-skipped, .nova-pill.p-do_not_contact { background: var(--danger-bg); color: var(--danger); }
.nova-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.nova-stats div { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 0 0 1px var(--nv-hair); }
.nova-stats strong { display: block; font: 800 24px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.nova-stats span { font-size: 12.5px; color: var(--stone); }

/* Empty, loading, thinking */
.nova-empty, .nova-think { text-align: center; padding: clamp(32px, 7vw, 64px) 20px; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px var(--nv-hair), 0 24px 60px -34px rgba(16, 42, 53, 0.3); }
.nova-empty h2 { margin: 18px 0 8px; font: 800 1.5rem var(--font-display); color: var(--ink); }
.nova-empty p, .nova-think p { max-width: 460px; margin: 0 auto; color: var(--stone); line-height: 1.55; }
.nova-empty-orb { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; position: relative; background: radial-gradient(circle at 34% 28%, #fff, #eaf5f3 55%, #bcded9); box-shadow: 0 18px 36px -12px rgba(16, 42, 53, 0.35); animation: nv-bob 5s ease-in-out infinite; }
.nova-empty-orb::before { content: ""; position: absolute; left: 18px; right: 18px; top: 32px; height: 26px; border-radius: 13px; background: linear-gradient(#16333f, #0a1c24); }
.nova-empty-orb::after { content: ""; position: absolute; top: 38px; left: 30px; width: 7px; height: 14px; border-radius: 4px; background: #7fe3d8; box-shadow: 17px 0 0 #7fe3d8; animation: nv-blink 5.6s infinite; }
.nova-empty-orb.thinking::after { animation: nova-scan 1.2s ease-in-out infinite alternate; }
.nova-think p { margin-top: 18px; }
.nova-focus-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.nova-focus-tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--teal-quiet); color: var(--teal-hover); }
.nova-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.nova-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 700 14.5px var(--font-display); cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.nova-btn svg { width: 18px; height: 18px; }
.nova-btn:hover { border-color: var(--line-strong); }
.nova-btn:active { transform: scale(0.97); }
.nova-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 12px 26px -12px rgba(16, 42, 53, 0.6); }
.nova-btn.primary:hover { background: var(--ink-soft); }
.nova-btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.nova-btn:disabled { opacity: 0.6; cursor: progress; }
.nova-skeleton { display: grid; gap: 12px; }
.nova-skeleton span { height: 76px; border-radius: 20px; background: linear-gradient(90deg, #f1efe8 0%, #f8f7f3 50%, #f1efe8 100%); background-size: 200% 100%; animation: nova-shimmer 1.3s linear infinite; }
.nova-skeleton span:first-child { height: 220px; }
.nova-muted { color: var(--stone); font-size: 14px; }
.nova-muted.small { font-size: 12.5px; }
.nova-muted.center { text-align: center; padding: 24px; }
.nova-foot { margin: 22px auto 0; max-width: 640px; text-align: center; font-size: 12.5px; color: var(--stone-light); line-height: 1.5; }
.nova-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 18px; border-radius: 16px; background: rgba(16, 42, 53, 0.92); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s var(--nv-ease), transform 0.35s var(--nv-spring); max-width: calc(100vw - 32px);
}
.nova-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nova-toast button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; border-radius: 10px; padding: 6px 10px; font: 700 13px var(--font-display); cursor: pointer; }
.nova-toast button svg { width: 14px; height: 14px; }

/* Preferences sheet */
.nova-sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(10, 28, 36, 0.36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: end center; padding: 16px; animation: nova-fade 0.2s; }
.nova-sheet-wrap[hidden] { display: none; }
.nova-sheet { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 28px; padding: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45); animation: nova-rise 0.4s var(--nv-spring); align-self: center; }
.nova-sheet:focus { outline: none; }
.nova-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.nova-sheet-head h2 { margin: 0; font: 800 1.35rem var(--font-display); color: var(--ink); }
.nova-field { display: block; margin-top: 16px; }
.nova-field > span { display: flex; justify-content: space-between; font: 700 13px var(--font-display); color: var(--ink); margin-bottom: 6px; }
.nova-field input:not([type="range"]) { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font: 15px var(--font-body); color: var(--slate); background: var(--linen); }
.nova-field input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px var(--nv-glow-soft); }
.nova-field input[type="range"] { width: 100%; accent-color: var(--teal); }
.nova-field small { display: block; margin-top: 4px; font-size: 12px; color: var(--stone-light); }
.nova-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.nova-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nova-toggle { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--slate); }
.nova-toggle input { width: 18px; height: 18px; accent-color: var(--teal); }
.nova-sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@keyframes nova-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes nova-out { to { opacity: 0; transform: translateX(-24px) scale(0.98); } }
@keyframes nova-shimmer { to { background-position: -200% 0; } }
@keyframes nova-scan { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
@keyframes nova-fade { from { opacity: 0; } }
@keyframes nova-rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 720px) {
  .nova-head { gap: 12px; }
  .nova-seg { order: 3; width: 100%; }
  .nova-seg button { flex: 1; }
  .nova-focus { grid-template-columns: 1fr; }
  .nova-nav { display: none; }
  .nova-steps { grid-template-columns: 1fr; }
  .nova-step { min-height: 52px; justify-content: flex-start; padding-left: 34px; }
  .nova-step kbd, .nova-ghost kbd, .nova-keys { display: none; }
  .nova-row { grid-template-columns: 38px minmax(0, 1fr); }
  .nova-row .nova-pill { justify-self: start; grid-column: 2; }
  .nova-row-acts, .nova-outcomes { grid-column: 2; }
  .nova-stats { grid-template-columns: 1fr 1fr; }
  .nova-two { grid-template-columns: 1fr; }
  .nv-float { right: 14px; bottom: 14px; }
  .nv-float.nv-left { left: 14px; }
  .nova-toast { bottom: 24px; }
  .nv-float.nv-on-page { display: none; }
  .nova-note-box textarea { min-height: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-orb, .nv-halo, .nv-open, .nv-tip, .nova-empty-orb, .nova-empty-orb::after, .nova-mark::after, .nova-card, .nova-skeleton span { animation: none !important; }
  .nv-float * , .nova-app * { transition-duration: 0.01ms !important; }
}
@media print { .nv-float, .nv-peek, .nova-toast { display: none !important; } }

/* Staff: prepare boards for several candidates */
.nova-btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.nova-all { margin: 4px 0 8px; }
.nova-roster { list-style: none; margin: 0 0 16px; padding: 0; max-height: min(46vh, 380px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nova-roster li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.nova-roster li:first-child { border-top: 0; }
.nova-roster label { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.nova-roster input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.nova-roster-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nova-roster-meta { font-size: 12.5px; color: var(--slate); text-align: right; }
.nova-roster-meta.busy { color: var(--teal-hover); }
.nova-roster-meta.done { color: var(--teal-hover); font-weight: 600; }
.nova-roster-meta.warn { color: var(--warn); }
@media (max-width: 560px) { .nova-roster li { flex-direction: column; align-items: flex-start; gap: 2px; } .nova-roster-meta { text-align: left; padding-left: 28px; } }
