/* Mobiele shell v2 — parallel aan klassieke UI (alleen @media max-width 980px) */

/* ── Verberg v2-chrome standaard en op desktop ── */
.v2m-topbar,
.v2m-subnav,
.v2m-tabbar-wrap,
.v2m-tabbar,
.v2m-sheet,
.v2m-scope-banner {
  display: none;
}

@media (max-width: 980px) {
  html[data-shell="v2-mobile"] {
    --v2m-tabbar-space: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  html[data-shell="v2-mobile"] .v2m-topbar,
  html[data-shell="v2-mobile"] .v2m-subnav,
  html[data-shell="v2-mobile"] .v2m-tabbar,
  html[data-shell="v2-mobile"] .v2m-scope-banner {
    display: flex;
  }

  html[data-shell="v2-mobile"] .v2m-tabbar-wrap {
    display: block;
    width: 100%;
  }

  html[data-shell="v2-mobile"] .v2m-subnav {
    display: block;
  }

  html[data-shell="v2-mobile"] .v2m-sheet:not([hidden]) {
    display: block;
  }

  /* Klassieke shell verbergen */
  html[data-shell="v2-mobile"] .topbar,
  html[data-shell="v2-mobile"] .sidebar,
  html[data-shell="v2-mobile"] .mobile-tabbar,
  html[data-shell="v2-mobile"] .more-sheet,
  html[data-shell="v2-mobile"] .scrim {
    display: none !important;
  }

  html[data-shell="v2-mobile"] .app-shell {
    display: flex;
  }

  html[data-shell="v2-mobile"] body.app-body-root:has(.app--has-v2m) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  html[data-shell="v2-mobile"] .app--has-v2m {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  html[data-shell="v2-mobile"] .v2m-app > .v2m-topbar,
  html[data-shell="v2-mobile"] .v2m-app > .v2m-subnav {
    flex-shrink: 0;
  }

  html[data-shell="v2-mobile"] .page-content {
    padding-bottom: var(--v2m-tabbar-space);
  }

  html[data-shell="v2-mobile"] .page-header {
    display: none;
  }

  html[data-shell="v2-mobile"] .page-header--v2m-show {
    display: block;
  }
}

/* ── V2 topbar ── */
.v2m-topbar {
  position: sticky;
  top: 0;
  z-index: 85;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.v2m-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.v2m-topbar__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2m-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v2m-topbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: var(--panel);
  color: var(--muted);
  touch-action: manipulation;
}

.v2m-topbar__btn .icon {
  width: 18px;
  height: 18px;
}

/* ── Scope banner (agents/settings op mobiel) ── */
.v2m-scope-banner {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  font-size: 0.75rem;
  background: var(--amber-soft);
  color: var(--amber);
  border-bottom: 1px solid var(--line);
}

.v2m-scope-banner a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Sub-nav: Markten pills ── */
.v2m-subnav {
  position: sticky;
  top: 48px;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.v2m-subnav__pills,
.v2m-subnav__segments {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v2m-subnav__pills::-webkit-scrollbar,
.v2m-subnav__segments::-webkit-scrollbar {
  display: none;
}

.v2m-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--card2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
}

.v2m-pill--active {
  background: var(--blue);
  color: #fff;
}

.v2m-pill--more {
  min-width: 40px;
  padding: 0 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Gelijke labels naast elkaar (Markten / Bank), geen horizontaal scrollen */
.v2m-subnav__pills--equal {
  gap: 4px;
  padding: 8px 10px;
  overflow-x: hidden;
}

.v2m-subnav__pills--equal .v2m-pill {
  flex: 1 1 0;
  flex-shrink: 1;
  min-width: 0;
  min-height: 30px;
  padding: 0 4px;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sub-nav: Nieuws segment ── */
.v2m-segment {
  flex: 1;
  text-align: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--r-ctrl);
  background: var(--card2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.v2m-segment--active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow-card);
}

/* ── Bottom tabbar ── */
.v2m-tabbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 100%;
}

.v2m-tabbar {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  width: 100%;
  min-height: 64px;
  padding: 8px max(4px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left));
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}

.v2m-tabbar__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 2px 2px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s var(--ease);
}

.v2m-tabbar__item--active {
  color: var(--blue);
  font-weight: 600;
}

.v2m-tabbar__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v2m-tabbar__label {
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Meer / overflow sheet ── */
.v2m-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.v2m-sheet[hidden] {
  display: none;
}

.v2m-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}

.v2m-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(86vh, 640px);
  overflow-y: auto;
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.14);
}

.v2m-sheet__grab {
  width: 36px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: var(--line);
}

.v2m-sheet__title {
  margin: 0 0 10px;
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
}

.v2m-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2m-sheet__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 10px;
  border: none;
  border-radius: var(--r-ctrl);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.v2m-sheet__item:active {
  background: var(--card2, color-mix(in srgb, var(--ink) 4%, var(--panel)));
}

.v2m-sheet__item--active {
  background: var(--accent-soft);
  color: var(--accent);
}

.v2m-sheet__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}

.v2m-sheet__item-icon .icon {
  width: 18px;
  height: 18px;
}

.v2m-sheet__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.v2m-sheet__item-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.v2m-sheet__item-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.v2m-sheet__item-chevron {
  color: var(--muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.v2m-sheet__item-chevron .icon {
  width: 14px;
  height: 14px;
}

button.v2m-tabbar__item {
  border: none;
  background: none;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* ── V2 home feed ── */
.v2m-home__head {
  margin-bottom: 16px;
}

.v2m-home__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.v2m-home__sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.v2m-home__section {
  margin: 20px 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.v2m-feed-card {
  display: block;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.v2m-feed-card--markten {
  border-left: 3px solid var(--amber);
}

.v2m-feed-card--news {
  border-left: 3px solid var(--blue);
}

.v2m-feed-card--wa {
  border-left: 3px solid var(--green);
}

.v2m-feed-card__label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.v2m-feed-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.v2m-feed-card__value {
  font-size: 1.25rem;
  font-weight: 700;
}

.v2m-feed-card__meta,
.v2m-feed-card__hint,
.v2m-feed-card__snippet {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Lichte v2-layout (geen klassieke shell in DOM) ── */
html[data-shell="v2-mobile"] body.app-body-root:has(.v2m-app) {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

html[data-shell="v2-mobile"] .v2m-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

html[data-shell="v2-mobile"] .v2m-main {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html[data-shell="v2-mobile"] .v2m-main .page-content {
  padding: 12px 16px var(--v2m-tabbar-space, calc(72px + env(safe-area-inset-bottom, 0px)));
}

/* ── Skeleton + navigatie-feedback ── */
.v2m-skeleton {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line) 25%, rgba(255, 255, 255, 0.55) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: v2m-shimmer 1.1s ease-in-out infinite;
}

.v2m-skeleton--value {
  width: 4.5rem;
  height: 1.25rem;
  vertical-align: middle;
}

.v2m-feed-card--loading {
  opacity: 0.92;
}

@keyframes v2m-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html[data-shell="v2-mobile"].v2m-pending .v2m-tabbar__item--active {
  opacity: 1;
}

html[data-shell="v2-mobile"].v2m-pending .v2m-main {
  opacity: 0.72;
  transition: opacity 0.12s var(--ease);
}

html[data-shell="v2-mobile"].v2m-pending::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: var(--blue);
  animation: v2m-nav-progress 0.9s ease-in-out infinite;
}

@keyframes v2m-nav-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

html[data-shell="v2-mobile"] .pull-refresh-indicator--v2 {
  z-index: 90;
}

/* ── Nieuwsbrief-lijst (v2) ── */

.v2m-briefing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2m-briefing-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--blue);
}

.v2m-briefing-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.v2m-briefing-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 143, 255, 0.12);
  color: var(--blue);
  font: 600 0.625rem var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2m-briefing-card__date {
  font: 500 0.6875rem var(--font-mono);
  color: var(--muted);
}

.v2m-briefing-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.v2m-briefing-card__hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Nieuwsbrief-lezer (v2) ── */

html[data-shell="v2-mobile"] .briefing-reader--v2m {
  margin: -4px -16px 0;
}

.briefing-reader__v2m-head {
  padding: 0 16px 14px;
}

.briefing-reader__v2m-date {
  margin: 0 0 6px;
  font: 500 0.6875rem var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.briefing-reader__v2m-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.briefing-reader__v2m-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.briefing-reader__v2m-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
}

.briefing-reader__v2m-action .icon {
  width: var(--icon-btn);
  height: var(--icon-btn);
}

html[data-shell="v2-mobile"] .briefing-reader--v2m .briefing-reader__canvas {
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: calc(100dvh - 220px);
}

html[data-shell="v2-mobile"] .v2m-tabbar__item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.activity-feed--compact .activity-feed__item {
  padding: 10px 0;
}

/* ── Sport workspace ── */
.v2m-feed-card--sport {
  border-left: 3px solid #ea580c;
}

.v2m-sport__head {
  margin-bottom: 16px;
}

.v2m-sport__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.v2m-sport__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.v2m-sport__sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.v2m-sport__streak {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
}

.v2m-sport__progress {
  position: relative;
  margin-top: 12px;
  height: 28px;
  border-radius: 999px;
  background: var(--faint);
  overflow: hidden;
}

.v2m-sport__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #fb923c, #ea580c);
  border-radius: 999px;
  transition: width 0.25s var(--ease);
}

.v2m-sport__progress-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.v2m-sport-coach {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(79, 107, 255, 0.06);
}

.v2m-sport-coach__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.v2m-sport-coach__text {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.v2m-sport-exercises {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2m-sport-ex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.v2m-sport-ex--next {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.08);
}

.v2m-sport-ex--done {
  opacity: 0.85;
}

.v2m-sport-ex__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.v2m-sport-ex__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.v2m-sport-ex__check {
  color: var(--green);
  font-weight: 700;
}

.v2m-sport-ex__dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #ea580c;
  flex: none;
}

.v2m-sport-ex__name {
  font-weight: 600;
}

.v2m-sport-ex__meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.v2m-sport-ex__prev {
  color: var(--faint);
}

.v2m-sport-ex__action {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.v2m-sport-finish {
  margin-top: 18px;
}

.v2m-sport-done {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.btn--block {
  display: block;
  width: 100%;
}

.v2m-sport-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.875rem;
  text-decoration: none;
}

.v2m-sport-log__title {
  margin: 0;
  font-size: 1.375rem;
}

.v2m-sport-log__sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.v2m-sport-stepper {
  margin: 20px 0;
}

.v2m-sport-stepper__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.v2m-sport-stepper__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2m-sport-stepper__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 1.25rem;
}

.v2m-sport-stepper__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font: 700 1.75rem var(--font-mono);
}

.v2m-sport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.v2m-sport-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.8125rem;
}

.v2m-sport-setlist {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.v2m-sport-timer__display {
  margin: 24px 0;
  text-align: center;
  font: 700 3rem var(--font-mono);
  letter-spacing: 0.04em;
}

.v2m-sport-timer__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.v2m-sport-timer__actions .btn {
  flex: 1;
}

.v2m-sport-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2m-sport-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}

.v2m-sport-stat__name {
  margin: 0;
  font-size: 1rem;
}

.v2m-sport-stat__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.v2m-sport-stat__count {
  color: var(--muted);
}

.v2m-sport-stat__last {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.v2m-sport-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.v2m-sport__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2m-sport-edit-toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.v2m-sport-ex--edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v2m-sport-ex__edit-actions {
  display: flex;
  gap: 4px;
}

.v2m-sport-ex__mini {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 1rem;
  line-height: 1;
}

.v2m-sport-ex__mini--danger {
  color: var(--red);
}

.v2m-sport-add {
  margin-top: 12px;
}

.v2m-sport-catalog__search {
  margin-top: 12px;
}

.v2m-sport-catalog__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 0.9375rem;
}

.v2m-sport-catalog__filters {
  margin-top: 10px;
}

.v2m-sport-chip--active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}

.v2m-sport-catalog__section {
  margin-top: 20px;
}

.v2m-sport-catalog__section-title {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.v2m-sport-catalog__count {
  font-weight: 400;
}

.v2m-sport-catalog__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2m-sport-catalog__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}

.v2m-sport-catalog__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

.v2m-sport-catalog__info {
  flex: 1;
  min-width: 0;
}

.v2m-sport-catalog__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.v2m-sport-catalog__tags {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.v2m-sport-catalog__chev {
  color: var(--muted);
  font-size: 1.25rem;
}

.v2m-sport-detail__image {
  display: block;
  width: 100%;
  max-height: 200px;
  margin: 0 auto 10px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.v2m-sport-attribution {
  margin: 20px 0 0;
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: center;
}

.v2m-sport-attribution a {
  color: var(--muted);
  text-decoration: underline;
}

.v2m-sport-detail__heading {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.v2m-sport-detail__steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.v2m-sport-detail__steps li + li {
  margin-top: 6px;
}

.v2m-sport-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.v2m-sport-detail__on-today {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.v2m-sport-schema__days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.v2m-sport-schema__day {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}

.v2m-sport-schema__summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.v2m-sport-schema__summary::-webkit-details-marker {
  display: none;
}

.v2m-sport-schema__count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

.v2m-sport-schema__body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.v2m-sport-schema__rename {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.v2m-sport-schema__rename .v2m-sport-catalog__input {
  flex: 1;
}

.v2m-sport-schema__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.v2m-sport-schema__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.v2m-sport-schema__delete {
  margin-top: 10px;
}

.v2m-sport-schema__new {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.v2m-sport-schema__new .v2m-sport-catalog__input {
  flex: 1;
}

html[data-shell="v2-mobile"] .v2m-tabbar__label {
  font-size: 0.625rem;
}

/* ── Bank (mobiel) ── */
.v2m-feed-card--bank {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
}

.v2m-bank {
  padding-bottom: 1rem;
}

.v2m-bank__panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}

.v2m-bank__heading {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

.v2m-bank__hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.v2m-bank__connect .btn {
  min-height: 36px;
}

.v2m-bank__kpi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2m-bank__account {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}

a.v2m-bank__account-link,
a.kpi-card.v2m-bank__account-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  touch-action: manipulation;
}

a.v2m-bank__account-link:hover,
a.kpi-card.v2m-bank__account-link:hover {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

a.v2m-bank__account-link--active {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--panel));
}

.v2m-bank__account-cta {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.v2m-bank__account-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v2m-bank__account-value {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 650;
}

.v2m-bank__account-meta {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.v2m-bank__connect-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.v2m-bank__connect-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 100%;
}

.v2m-bank__connect-label .input {
  width: 100%;
  min-height: 40px;
  font-size: 1rem;
}

.v2m-bank__tx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.v2m-bank__period {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  gap: 2px;
}

.v2m-bank__period-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  touch-action: manipulation;
}

.v2m-bank__period-btn--active {
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line);
}

.v2m-bank__tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.shell-v2 .bank-page .bank-hero__total {
  font-size: 1.85rem;
}

.shell-v2 .bank-page .bank-chip {
  min-width: 176px;
  min-height: 68px;
  padding: 0.85rem 1rem;
  gap: 0.7rem;
}

.shell-v2 .bank-page .bank-chip .merchant-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.shell-v2 .bank-page .bank-chip__name {
  font-size: 0.95rem;
}

.shell-v2 .bank-page .bank-chip__amt {
  font-size: 1.2rem;
}

.shell-v2 .bank-page .bank-search__input {
  min-height: 42px;
  font-size: 1rem;
}

.shell-v2 .bank-page .bank-tx-row__amt {
  font-size: 0.95rem;
}

.shell-v2 .bank-page .merchant-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.shell-v2 .bank-page .bank-settings-sync {
  align-items: flex-start;
}

.v2m-bank__tx {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}

.v2m-bank__tx-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.v2m-bank__tx-party {
  font-weight: 600;
  font-size: 0.9375rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2m-bank__tx-amt {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.v2m-bank__tx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.v2m-bank__tx-remittance {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--ink);
  opacity: 0.85;
}

/* ── Home C3: geld eerst + posities (compact) ── */
.v2m-home--c3 {
  padding-top: 0;
  padding-bottom: 4px;
  font-size: 0.8125rem;
}

.v2m-c3-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.75rem;
}

.v2m-c3-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.v2m-c3-hero__portefeuille,
.v2m-c3-hero__bank {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.v2m-c3-hero__portefeuille {
  border-right: 1px solid var(--line2);
}

.v2m-c3-hero__label,
.v2m-c3-hero__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.v2m-c3-hero__pnl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.v2m-c3-hero__pnl {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.v2m-c3-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--green) 14%, var(--panel));
}

.v2m-c3-hero__badge.pnl--neg {
  background: color-mix(in srgb, var(--red) 14%, var(--panel));
}

.v2m-c3-hero__bank-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.v2m-c3-hero__bank-icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.v2m-c3-hero__bank-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.v2m-c3-section {
  margin-bottom: 12px;
}

.v2m-c3-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.v2m-c3-section__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.v2m-c3-section__link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.v2m-c3-movers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

@media (min-width: 420px) {
  .v2m-c3-movers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.v2m-c3-mover {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
}

.v2m-home--c3 .v2m-c3-mover .ticker-logo--md {
  width: 22px;
  height: 22px;
}

.v2m-c3-mover__name {
  font-size: 0.65rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 0;
}

.v2m-c3-mover__pnl {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2m-c3-mover__price {
  font-size: 0.62rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2m-c3-mover__spark {
  display: block;
  height: 18px;
  margin: 0.05rem 0 0;
}

.v2m-c3-mover__spark .sparkline {
  width: 100%;
  height: 18px;
}

.v2m-c3-mover__foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.1rem;
  min-width: 0;
}

.v2m-c3-mover__pct {
  flex: 0 0 auto;
  padding: 0.06rem 0.28rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
  background: color-mix(in srgb, var(--green) 14%, var(--panel));
}

.v2m-c3-mover__pct.pnl--neg {
  background: color-mix(in srgb, var(--red) 14%, var(--panel));
}

.v2m-c3-mover__total {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.6rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2m-c3-others {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.v2m-c3-other {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
}

.v2m-c3-other:last-child {
  border-bottom: 0;
}

.v2m-home--c3 .v2m-c3-other .ticker-logo--sm {
  width: 22px;
  height: 22px;
}

.v2m-c3-other__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v2m-c3-other__name {
  font-size: 0.78rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2m-c3-other__ticker {
  font-size: 0.65rem;
  color: var(--muted);
}

.v2m-c3-other__spark {
  width: 40px;
  height: 18px;
}

.v2m-c3-other__spark .sparkline {
  width: 40px;
  height: 18px;
}

.v2m-c3-other__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  font-variant-numeric: tabular-nums;
}

.v2m-c3-other__price {
  font-size: 0.78rem;
  font-weight: 650;
}

.v2m-c3-other__pct {
  font-size: 0.65rem;
  font-weight: 650;
}

.v2m-c3-other__chev {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  opacity: 0.55;
}

.v2m-c3-cashflow {
  margin-top: 2px;
  padding: 8px 8px 2px;
  text-align: center;
}

.v2m-c3-cashflow__label {
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.v2m-c3-cashflow__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.v2m-c3-cashflow__col {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 8px;
  text-align: left;
}

.v2m-c3-cashflow__col + .v2m-c3-cashflow__col {
  border-left: 1px solid var(--line2);
}

.v2m-c3-cashflow__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.v2m-c3-cashflow__icon--in {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, var(--panel));
}

.v2m-c3-cashflow__icon--out {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--panel));
}

.v2m-c3-cashflow__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.v2m-c3-cashflow__name {
  font-size: 0.65rem;
  color: var(--muted);
}

.v2m-c3-cashflow__amt {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sparkline--pos .sparkline__line {
  stroke: var(--green);
}

.sparkline--pos .sparkline__fill {
  fill: color-mix(in srgb, var(--green) 18%, transparent);
}

.sparkline--neg .sparkline__line {
  stroke: var(--red);
}

.sparkline--neg .sparkline__fill {
  fill: color-mix(in srgb, var(--red) 16%, transparent);
}
