/* ==========================================================================
   EVN Design System — NOVA student portal. Same tokens as admin/assets/nova.css (brand navy, one type scale, one
   radius / shadow set), but calmer and mobile first: bigger touch targets, guided cards, a phone bottom bar.
   Scoped to .evn-portal.evn-nova (added only when the NOVA interface is on).
   ========================================================================== */
.evn-portal.evn-nova {
  --nv-navy-900: #0f2440; --nv-navy-800: #172e4d; --nv-navy-700: #1f3d63; --nv-blue-600: #1f5fbf; --nv-blue-500: #2f6fdb; --nv-blue-50: #f2f6fd; --nv-blue-100: #e6eefb;
  --nv-teal-600: #23766a; --nv-teal-100: #dcf1ec; --nv-amber-700: #94590f; --nv-amber-100: #fbefd9; --nv-red-700: #a8323f; --nv-red-100: #fbe3e5; --nv-gold: #ceaf79;
  --nv-ink: #16243a; --nv-ink-2: #3c4b60; --nv-muted: #57677c; --nv-line: #e3e8ef; --nv-bg: #f4f6fa;
  --nv-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --nv-font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --nv-r-md: 12px; --nv-r-lg: 18px; --nv-sh-1: 0 1px 2px rgba(16, 36, 64, .05), 0 1px 1px rgba(16, 36, 64, .03); --nv-sh-2: 0 8px 24px rgba(16, 36, 64, .08);
  --nv-focus: 0 0 0 3px rgba(47, 111, 219, .35); --nv-ease: cubic-bezier(.2, .7, .2, 1);
  font-family: var(--nv-font); color: var(--nv-ink);
}
.evn-portal.evn-nova .evn-portal-body { background: var(--nv-bg); }
.evn-portal.evn-nova .evn-nav { background: linear-gradient(180deg, var(--nv-navy-900), var(--nv-navy-800)); }

.nvp { display: flex; flex-direction: column; gap: 18px; }
.nvp h1, .nvp h2, .nvp h3 { font-family: var(--nv-font-display); color: var(--nv-ink); letter-spacing: -.01em; }
.nvp-eyebrow { margin: 0 0 6px; font: 650 12px/1 var(--nv-font); letter-spacing: .08em; text-transform: uppercase; color: var(--nv-blue-600); }
.nvp-muted { color: var(--nv-muted); }

/* hero */
.nvp-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--nv-r-lg); background: radial-gradient(120% 140% at 100% 0, #2d5f93 0, transparent 55%), linear-gradient(135deg, var(--nv-navy-900), var(--nv-navy-700)); color: var(--evn-on-accent, #fff); box-shadow: var(--nv-sh-2); }
.nvp-hero h1 { color: var(--evn-on-accent, #fff); margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.nvp-hero p { margin: 0; color:#d6e2f2; font-size: 16px; line-height: 1.55; }
.nvp-hero .nvp-eyebrow { color:#9ec2f5; }
.nvp-hero-progress { display: flex; align-items: center; gap: 14px; flex: none; }
.nvp-hero-progress svg { width: 96px; height: 96px; }
.nvp-ring-bg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 10; }
.nvp-ring { fill: none; stroke: var(--nv-gold); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 600ms var(--nv-ease); }
.nvp-hero-progress strong { display: block; font: 700 26px/1 var(--nv-font-display); }
.nvp-hero-progress span { font-size: 13px; color:#c9d8ec; }

/* next action */
.nvp-next { padding: 22px 26px; border-radius: var(--nv-r-lg); background: linear-gradient(135deg, #fff8ec, #fff); border:1px solid #f0d9ae; box-shadow: var(--nv-sh-1); }
.nvp-next h2 { margin: 0 0 6px; font-size: 22px; }
.nvp-next p { margin: 0 0 8px; color: var(--nv-ink-2); line-height: 1.5; }
.nvp-next .nvp-eyebrow { color: var(--nv-amber-700); }
.nvp-next-due { font-weight: 650; color: var(--nv-amber-700) !important; }

/* grid + cards */
.nvp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.nvp-span-2 { grid-column: span 2; }
.nvp-card { background: var(--nv-surface, #fff); border: 1px solid var(--nv-line); border-radius: var(--nv-r-lg); box-shadow: var(--nv-sh-1); padding: 20px 22px; min-width: 0; }
.nvp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nvp-card-head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.nvp-card-head a { font-size: 14px; font-weight: 650; color: var(--nv-blue-600); text-decoration: none; white-space: nowrap; }
.nvp-card-head a:hover { text-decoration: underline; }
.nvp-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--nv-red-100); color: var(--nv-red-700); font: 700 12px/1 var(--nv-font); }
.nvp-page-head h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.nvp-page-head p { margin: 0; color: var(--nv-ink-2); max-width: 720px; line-height: 1.55; }

/* buttons */
.nvp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--nv-r-md); border:1px solid #ccd6e3; background: var(--nv-surface, #fff); color: var(--nv-ink); font: 650 15px/1 var(--nv-font); text-decoration: none; cursor: pointer; transition: transform 120ms var(--nv-ease), background 160ms var(--nv-ease); }
.nvp-btn:hover { background: var(--nv-blue-50); color: var(--nv-ink); }
.nvp-btn:active { transform: translateY(1px); }
.nvp-btn:focus-visible, .nvp a:focus-visible, .nvp button:focus-visible { outline: none; box-shadow: var(--nv-focus); }
.nvp-btn-primary { background: var(--nv-navy-800); border-color: var(--nv-navy-800); color: var(--evn-on-accent, #fff); }
.nvp-btn-primary:hover { background: var(--nv-navy-700); color: var(--evn-on-accent, #fff); }
.nvp-btn-light { background: var(--nv-navy-800); border-color: var(--nv-navy-800); color: var(--evn-on-accent, #fff); }
.nvp-btn-light:hover { background: var(--nv-navy-700); color: var(--evn-on-accent, #fff); }
.nvp-link { display: inline-block; margin-top: 8px; color: var(--nv-blue-600); font-weight: 650; text-decoration: none; }
.nvp-link-btn { background: none; border: 0; padding: 4px 0; color: var(--nv-blue-600); font: 650 13px var(--nv-font); cursor: pointer; }

/* pills */
.nvp-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 650 12px/1 var(--nv-font); white-space: nowrap; background:#edf1f6; color: var(--nv-ink-2); }
.nvp-pill-done { background: var(--nv-teal-100); color: var(--nv-teal-600); }
.nvp-pill-action { background: var(--nv-amber-100); color: var(--nv-amber-700); }
.nvp-pill-active { background: var(--nv-blue-100); color: var(--nv-blue-600); }
.nvp-pill-waiting { background:#eef1f5; color: var(--nv-muted); }
.nvp-pill-late { background: var(--nv-red-100); color: var(--nv-red-700); }

/* to-dos */
.nvp-todos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nvp-todo { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--nv-line); border-radius: var(--nv-r-md); background: var(--nv-surface, #fff); }
.nvp-todo-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--nv-blue-50) var(--ic, url('../../assets/ui/icons/tasks.svg')) center / 20px no-repeat; }
.nvp-ico-doc { --ic: url('../../assets/ui/icons/upload.svg'); background-color: var(--nv-amber-100); }
.nvp-ico-fix { --ic: url('../../assets/ui/icons/document.svg'); background-color: var(--nv-red-100); }
.nvp-todo-body { flex: 1; min-width: 0; }
.nvp-todo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nvp-todo h3 { margin: 0; font: 650 16px/1.35 var(--nv-font); overflow-wrap: anywhere; }
.nvp-todo p { margin: 4px 0 0; color: var(--nv-ink-2); font-size: 14px; line-height: 1.5; }
.nvp-todo-actions { margin-top: 10px; }
.nvp-wait { margin-top: 12px; font-size: 14px; color: var(--nv-ink-2); }
.nvp-wait summary { cursor: pointer; font-weight: 650; color: var(--nv-muted); }
.nvp-wait ul, .nvp-wait-list { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.nvp-done ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.8; }
.nvp-done small { color: var(--nv-muted); }
.nvp-empty { text-align: center; padding: 28px 12px; color: var(--nv-muted); }
.nvp-empty h3 { margin: 10px 0 4px; }

/* documents */
.nvp-doc-area { display: block; padding: 12px 14px; border: 1px solid var(--nv-line); border-radius: var(--nv-r-md); margin-bottom: 10px; text-decoration: none; color: var(--nv-ink); transition: border-color 160ms var(--nv-ease), background 160ms var(--nv-ease); }
.nvp-doc-area:hover { border-color:#b9c9de; background:#fbfdff; color: var(--nv-ink); }
.nvp-doc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.nvp-doc-top span { font-weight: 700; font-variant-numeric: tabular-nums; }
.nvp-doc-area small { color: var(--nv-muted); font-size: 13px; }
.nvp-meter { display: flex; height: 8px; border-radius: 4px; background:#e6ebf2; overflow: hidden; margin: 8px 0 6px; }
.nvp-meter span { height: 100%; }
.nvp-meter .ok, .nvp-legend .ok { background: var(--nv-teal-600); }
.nvp-meter .rv, .nvp-legend .rv { background:#d9a03f; }
.nvp-legend { font-size: 12px; color: var(--nv-muted); margin: 6px 0 0; }
.nvp-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; vertical-align: -1px; }
.nvp-legend span:first-child { margin-left: 0; }
.nvp-legend .ms { background:#e6ebf2; }

/* applications, dates, notifications */
.nvp-apps, .nvp-dates, .nvp-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nvp-apps li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nv-line); }
.nvp-apps li:last-child, .nvp-dates li:last-child, .nvp-notes li:last-child { border-bottom: 0; }
.nvp-apps strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.nvp-apps small { display: block; color: var(--nv-muted); font-size: 13px; margin-top: 3px; }
.nvp-app-state { text-align: right; flex: none; max-width: 52%; }
.nvp-dates li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--nv-line); }
.nvp-dates time { flex: none; width: 50px; height: 52px; border-radius: 12px; background: var(--nv-blue-50); display: grid; place-content: center; text-align: center; }
.nvp-dates time strong { font: 700 19px/1 var(--nv-font-display); color: var(--nv-navy-800); }
.nvp-dates time span { font-size: 12px; text-transform: uppercase; color: var(--nv-blue-600); font-weight: 650; }
.nvp-dates p { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.nvp-dates small { color: var(--nv-muted); }
.nvp-notes li { position: relative; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--nv-line); }
.nvp-notes li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--nv-blue-500); }
.nvp-notes li.evn-read::before { background:#cfd8e3; }
.nvp-notes li[data-type="warning"]::before { background:#d9a03f; }
.nvp-notes li[data-type="danger"]::before { background: var(--nv-red-700); }
.nvp-notes strong { font-size: 15px; }
.nvp-notes p { margin: 3px 0; font-size: 14px; color: var(--nv-ink-2); }
.nvp-notes small { color: var(--nv-muted); margin-right: 10px; }
.nvp-notes li.evn-read strong { font-weight: 500; color: var(--nv-ink-2); }
.nvp-support { background: linear-gradient(135deg, #f6f9fe, #fff); }
.nvp-support h2 { margin: 0 0 6px; font-size: 19px; }
.nvp-support p { color: var(--nv-ink-2); line-height: 1.55; }

/* journey */
.nvp-journey { list-style: none; margin: 0; padding: 0; position: relative; }
.nvp-stage { position: relative; display: flex; gap: 16px; padding: 0 0 22px; }
.nvp-stage:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background:#e1e7ef; }
.nvp-stage[data-state="done"]:not(:last-child)::after { background: var(--nv-teal-600); }
.nvp-stage-dot { position: relative; z-index: var(--evn-z-raised, 1); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--nv-font); background: var(--nv-surface, #fff); border:2px solid #cfd9e6; color: var(--nv-muted); }
.nvp-stage[data-state="done"] .nvp-stage-dot { background: var(--nv-teal-600); border-color: var(--nv-teal-600); color: var(--evn-on-accent, #fff); }
.nvp-stage[data-state="action"] .nvp-stage-dot { border-color:#d9a03f; color: var(--nv-amber-700); background:#fffaf0; box-shadow: 0 0 0 5px #fbefd9; }
.nvp-stage[data-state="active"] .nvp-stage-dot { border-color: var(--nv-blue-500); color: var(--nv-blue-600); box-shadow: 0 0 0 5px var(--nv-blue-100); }
.nvp-stage-body { flex: 1; min-width: 0; padding-top: 6px; }
.nvp-stage-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nvp-stage h3 { margin: 0; font-size: 17px; }
.nvp-stage p { margin: 6px 0 0; color: var(--nv-ink-2); line-height: 1.55; font-size: 15px; }
.nvp-stage-docs { font-size: 14px !important; }
.nvp-stage[data-state="waiting"] h3 { color: var(--nv-muted); }
.nvp-journey-compact .nvp-stage { padding-bottom: 14px; }
.nvp-journey-compact .nvp-stage p { font-size: 14px; }

/* bottom navigation (phones) */
.nvp-bottom { display: none; }
@media (max-width: 768px) {
  .evn-portal.evn-nova .evn-portal-body { padding-bottom: 92px !important; }
  .nvp-bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--evn-z-appbar, 9990); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--nv-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16, 36, 64, .08); }
  .nvp-bottom a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; font: 600 12px/1.1 var(--nv-font); color: var(--nv-muted); text-decoration: none; border-radius: 12px; }
  .nvp-bottom a[aria-current="page"] { color: var(--nv-navy-800); background: var(--nv-blue-50); }
  .nvp-bi { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
  .nvp-bottom b { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--nv-red-700); color: var(--evn-on-accent, #fff); font-size: 12px; display: grid; place-items: center; }
  .nvp-grid { grid-template-columns: 1fr; gap: 14px; }
  .nvp-span-2 { grid-column: auto; }
  .nvp-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .nvp-hero-progress svg { width: 72px; height: 72px; }
  .nvp-card { padding: 16px; border-radius: 16px; }
  .nvp-next { padding: 18px; }
  .nvp-next h2 { font-size: 19px; }
  .nvp-next .nvp-btn, .nvp-todo .nvp-btn { width: 100%; }
  .nvp-app-state { max-width: 48%; }
}
@media (max-width: 400px) { .nvp-apps li { flex-direction: column; } .nvp-app-state { text-align: left; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .evn-portal.evn-nova * { transition: none !important; animation: none !important; } }

/* review round 2: neutralise the older portal card styles on NOVA elements */
.evn-portal.evn-nova .nvp-hero h1 { color: var(--evn-on-accent, #fff); }
.evn-portal.evn-nova .nvp-hero p, .evn-portal.evn-nova .nvp-hero span { color:#d6e2f2; }
.evn-portal.evn-nova .nvp-hero strong { color: var(--evn-on-accent, #fff); }
.evn-portal.evn-nova .nvp-todo.evn-task-card { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px; margin: 0; border: 1px solid var(--nv-line); border-left-width: 1px; border-radius: var(--nv-r-md); background: var(--nv-surface, #fff); box-shadow: none; }
.evn-portal.evn-nova .nvp-todo.evn-task-card[data-kind="fix"] { border-color:#f0c7cb; }
.evn-portal.evn-nova .nvp-notes .evn-notif-item { margin: 0; border: 0; border-bottom: 1px solid var(--nv-line); border-radius: 0; background: none; box-shadow: none; padding: 10px 0 10px 16px; }
.evn-portal.evn-nova .nvp-notes .evn-notif-item:last-child { border-bottom: 0; }
.evn-portal.evn-nova .nvp-card h2, .evn-portal.evn-nova .nvp-card h3 { margin-top: 0; }
.evn-portal.evn-nova .evn-notif-list > .evn-notif-item.evn-unread { border-left: 4px solid var(--nv-blue-500); }
.evn-portal.evn-nova .evn-notif-list > .evn-notif-item.evn-read { opacity: .8; }
.evn-portal.evn-nova .evn-notif-list > .evn-notif-item.evn-read .evn-badge { display: none; }

/* ==========================================================================
   VISUAL PASS (rc.31): compact grouped to-dos, in-place upload, journey lines, new states, phone bar behaviour
   ========================================================================== */
.nvp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evn-portal.evn-nova .nvp-row.evn-task-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; margin: 0; border: 0; border-bottom: 1px solid var(--nv-line); border-radius: 0; background: none; box-shadow: none; }
.evn-portal.evn-nova .nvp-row.evn-task-card:last-child { border-bottom: 0; }
.nvp-row-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--nv-blue-50) var(--ic, url('../../assets/ui/icons/tasks.svg')) center / 18px no-repeat; }
.nvp-row-ico.nvp-ico-doc { --ic: url('../../assets/ui/icons/upload.svg'); background-color: var(--nv-amber-100); }
.nvp-row-ico.nvp-ico-fix { --ic: url('../../assets/ui/icons/document.svg'); background-color: var(--nv-red-100); }
.nvp-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvp-row-main strong { font: 600 15px/1.35 var(--nv-font); color: var(--nv-ink); overflow-wrap: anywhere; }
.nvp-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nvp-row-meta:empty { display: none; }
.nvp-row-area, .nvp-row-also { font-size: 12px; color: var(--nv-muted); }
.nvp-row-also { color: var(--nv-teal-600); font-weight: 600; }
.nvp-row-area + .nvp-row-also::before { content: "· "; color: var(--nv-muted); font-weight: 400; }
.nvp-row-note { color: var(--nv-ink-2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nvp-row-act { display: flex; gap: 6px; }
.nvp-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.nvp-upload { position: relative; cursor: pointer; }
.nvp-upload:focus-within { box-shadow: var(--nv-focus); }
.evn-portal.evn-nova .nvp-row .evn-dc-bar { display: block; height: 4px; border-radius: 2px; background:#e6ebf2; overflow: hidden; margin-top: 4px; }
.evn-portal.evn-nova .nvp-row .evn-dc-bar[hidden] { display: none; }
.evn-portal.evn-nova .nvp-row .evn-dc-bar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--nv-blue-500); transition: transform 120ms linear; }
.evn-portal.evn-nova .nvp-row .evn-dc-msg { font-size: 12px; color: var(--nv-muted); }
.evn-portal.evn-nova .nvp-row .evn-dc-msg:empty { display: none; }
.evn-portal.evn-nova .nvp-row .evn-dc-msg.is-error { color: var(--nv-red-700); font-weight: 600; }
.evn-portal.evn-nova .nvp-row .evn-dc-msg.is-ok { color: var(--nv-teal-600); font-weight: 600; }
.nvp-groupchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.nvp-groupchips a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--nv-line); border-radius: 999px; background: var(--nv-surface, #fff); color: var(--nv-ink-2); font: 600 12.5px/1 var(--nv-font); text-decoration: none; }
.nvp-groupchips a b { color: var(--nv-ink); }
.nvp-groupchips a:hover { border-color:#b9c9de; }
.nvp-count-soft { background:#eef2f7; color: var(--nv-ink-2); }
.nvp-group[data-group="urgent"] { border-top: 4px solid var(--nv-red-700); }
.nvp-group { scroll-margin-top: 16px; }
.nvp-wait-list { list-style: none; margin: 8px 0 0; padding: 0; }
.nvp-wait-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--nv-line); font-size: 14px; }
.nvp-wait-list li:last-child { border-bottom: 0; }
.nvp-wait-list li span { color: var(--nv-muted); font-size: 13px; text-align: right; }
/* journey: one line per stage, details on demand */
.nvp-pill-review { background:#fff4e0; color: var(--nv-amber-700); }
.nvp-pill-negative { background:#f1f3f6; color: var(--nv-ink-2); border:1px dashed #b9c3d0; }
.nvp-stage[data-state="review"] .nvp-stage-dot { border-color:#d9a03f; color: var(--nv-amber-700); }
.nvp-stage[data-state="negative"] .nvp-stage-dot { border-style: dashed; color: var(--nv-muted); }
.nvp-stage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 36px; }
summary.nvp-stage-line { cursor: pointer; list-style: none; }
summary.nvp-stage-line::-webkit-details-marker { display: none; }
summary.nvp-stage-line::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid var(--nv-muted); border-bottom: 2px solid var(--nv-muted); transform: rotate(45deg); transition: transform 160ms var(--nv-ease); }
details[open] > summary.nvp-stage-line::after { transform: rotate(-135deg); }
.nvp-stage-title { font: 650 16px/1.3 var(--nv-font-display); color: var(--nv-ink); }
.nvp-stage[data-state="waiting"] .nvp-stage-title { color: var(--nv-muted); }
.nvp-stage-meta { flex-basis: 100%; font-size: 13px; color: var(--nv-ink-2); }
.nvp-stage-more { padding: 4px 0 6px; }
.nvp-stage-more p { margin: 4px 0; font-size: 14px; }
.evn-portal.evn-nova details.nvp-stage-body { border: 0; padding: 0; margin: 0; background: none; }
.nvp-stage-body { padding-top: 0 !important; }
.nvp-journey-compact .nvp-stage { padding-bottom: 10px; }
.nvp-journey-compact .nvp-stage-title { font-size: 15px; }
/* phone bar: never over the keyboard or a dialog; content always clears it */
.evn-portal.evn-nova.nvp-kb .nvp-bottom, .evn-portal.evn-nova.nvp-modal .nvp-bottom { display: none !important; }
@media (max-width: 768px) {
  .evn-portal.evn-nova .evn-portal-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .evn-portal.evn-nova .nvp-row.evn-task-card { grid-template-columns: 30px minmax(0, 1fr); }
  .nvp-row-ico { width: 30px; height: 30px; background-size: 16px; }
  .nvp-row-act { grid-column: 2; }
  .nvp-row-act .nvp-btn { width: auto; min-width: 140px; }
  .nvp-wait-list li { flex-direction: column; gap: 2px; } .nvp-wait-list li span { text-align: left; }
  .nvp-stage-title { font-size: 15px; }
}
/* round 2: rows keep the action on the right on phones too; small buttons */
@media (max-width: 768px) {
  .evn-portal.evn-nova .nvp-row.evn-task-card { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .nvp-row-act { grid-column: auto; }
  .evn-portal.evn-nova .nvp-row-act .nvp-btn { min-width: 0; width: auto; min-height: 36px; padding: 0 12px; font-size: 13px; }
}
summary.nvp-stage-line { position: relative; padding-right: 28px; }
summary.nvp-stage-line::after { position: absolute; right: 6px; top: 13px; margin: 0; }
details[open] > summary.nvp-stage-line::after { top: 16px; }
