/* Nebenkosten & Heizkosten: geführter Step-by-Step-Wizard (klar, ruhig, SaaS) */

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-wizard {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-wizard .acc-subnav {
  margin-bottom: 1.25rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-hero {
  margin-bottom: 1.5rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.125rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--on-bg);
  line-height: 1.15;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-hero-lead {
  margin: 0.65rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--on-bg-muted);
  max-width: 36rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card {
  border: 1px solid var(--separator-subtle);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.6rem;
  margin-bottom: 2rem;
  background: var(--bg-1);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

/* Premium-Startkarte: gleicher Einstieg wie Heizkosten, für beide Module */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card--primary {
  border-radius: 18px;
  padding: 2rem 2rem 2.35rem;
  margin-bottom: 2.25rem;
  border: 1px solid var(--separator-subtle);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 40px rgba(16, 24, 40, 0.06);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card--primary h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.25;
  color: var(--on-bg);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card--primary > p:not(.nk-start-sub) {
  margin: 0 0 1.85rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--on-bg-muted);
  max-width: 34rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-sub {
  margin: -1.15rem 0 1.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-bg-muted);
  max-width: 32rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-cta {
  padding: 0.95rem 1.85rem !important;
  font-size: 1.02rem !important;
  font-weight: 650 !important;
  min-height: 3.05rem;
  border-radius: 11px !important;
  box-shadow: 0 4px 16px rgba(202, 138, 4, 0.32);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-cta:hover:not(:disabled) {
  filter: brightness(1.04);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card.nk-start-card--hidden {
  display: none;
}

/* Guides (Step-by-step) */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .acc-hk-guide-body .acc-hk-guide-lead {
  margin: 0 0 1rem;
  color: var(--on-bg-muted);
  line-height: 1.55;
  max-width: 60rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

@media (max-width: 860px) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-grid {
    grid-template-columns: 1fr;
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-card {
  border: 1px solid var(--separator-subtle);
  border-radius: 16px;
  background: var(--bg-1);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
  padding: 0.95rem 1rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-bg);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-steps {
  margin: 0.35rem 0 0.75rem 1.1rem;
  padding: 0;
  color: var(--on-bg-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-steps strong {
  color: var(--on-bg);
  font-weight: 650;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-callouts {
  display: grid;
  gap: 0.5rem;
  margin: 0.6rem 0 0.75rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-callout {
  border: 1px solid rgba(29, 78, 216, 0.16);
  background: rgba(29, 78, 216, 0.05);
  color: var(--on-bg-muted);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-callout strong {
  color: var(--on-bg);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-callout--warn {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.06);
  color: #7f1d1d;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-shot {
  margin: 0.4rem 0 0;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-shot figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--on-bg-muted);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-shot.is-missing {
  padding: 0.75rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-shot.is-missing::before {
  content: "Screenshot fehlt – optional. Lege ein Bild im Guide-Ordner ab, dann wird es hier angezeigt.";
  display: block;
  color: var(--on-bg-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--on-bg);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-start-card p {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--on-bg-muted);
  line-height: 1.5;
  max-width: 32rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-module-hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-bg-muted);
  margin: 0 0 1.75rem;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 40rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-module-hint a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-module-hint a:hover {
  text-decoration: underline;
}

/* Stepper */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
  position: relative;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--separator-subtle);
  z-index: 0;
  border-radius: 1px;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--on-bg-muted);
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item:disabled .nk-stepper-label {
  color: var(--on-bg-muted);
}

/* Nach Start: aktiver Schritt dominiert, erreichbare andere zurückhaltend */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper:not(.nk-stepper--prestart) .nk-stepper-item:not(.is-active):not(:disabled) {
  opacity: 0.82;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper:not(.nk-stepper--prestart) .nk-stepper-item:not(.is-active):not(:disabled) .nk-stepper-label {
  font-weight: 500;
  color: var(--on-bg-muted);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper:not(.nk-stepper--prestart) .nk-stepper-item.is-active {
  opacity: 1;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper:not(.nk-stepper--prestart) .nk-stepper-item.is-active .nk-stepper-label {
  font-weight: 650;
  color: var(--on-bg);
  letter-spacing: -0.01em;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item:not(:disabled):hover {
  color: var(--on-bg);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper.nk-stepper--prestart .nk-stepper-item {
  opacity: 0.42;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper.nk-stepper--prestart .nk-stepper-item:disabled {
  opacity: 0.42;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-1);
  border: 2px solid var(--separator);
  color: var(--on-bg-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.is-active .nk-stepper-circle {
  background: var(--bg-1);
  border-color: var(--gold, #ca8a04);
  color: var(--on-bg);
  box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.12);
  transform: scale(1.05);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper:not(.nk-stepper--prestart) .nk-stepper-item.is-active:not(.is-done) .nk-stepper-circle {
  width: 2.55rem;
  height: 2.55rem;
  font-size: 0.88rem;
  border-width: 2.5px;
  box-shadow: 0 0 0 5px rgba(202, 138, 4, 0.16), 0 6px 18px rgba(202, 138, 4, 0.18);
  transform: scale(1.08);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.is-done .nk-stepper-circle {
  background: #ecfdf3;
  border-color: #067647;
  font-size: 0;
  color: transparent;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.is-done .nk-stepper-circle::after {
  content: '✓';
  font-size: 0.88rem;
  font-weight: 800;
  color: #067647;
  line-height: 1;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.is-done.is-active .nk-stepper-circle {
  background: #fffbeb;
  border-color: var(--gold, #ca8a04);
  box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.14);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.is-done.is-active .nk-stepper-circle::after {
  color: #067647;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.nk-stepper-item--next:not(:disabled):not(.is-active) .nk-stepper-label {
  color: #1d4ed8;
  font-weight: 700;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.nk-stepper-item--next:not(:disabled):not(.is-active) .nk-stepper-circle {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1e40af;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

@keyframes nkStepPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.4);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 0 10px rgba(202, 138, 4, 0);
    transform: scale(1.08);
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.nk-stepper-item--pulse .nk-stepper-circle {
  animation: nkStepPulse 0.72s ease-out 2;
}

@media (prefers-reduced-motion: reduce) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.nk-stepper-item--pulse .nk-stepper-circle {
    animation: none;
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.is-active {
  color: var(--on-bg);
  font-weight: 650;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-label {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  max-width: 6.5rem;
}

@media (min-width: 640px) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-label {
    font-size: 0.78rem;
    max-width: none;
  }
}

/* Step panel */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel {
  border: 1px solid var(--separator-subtle);
  border-radius: 16px;
  background: var(--bg-1);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  animation: nkStepIn 0.28s ease-out;
}

@keyframes nkStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel {
    animation: none;
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel[hidden] {
  display: none !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-head {
  position: relative;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid var(--separator-subtle);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--on-bg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-desc {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-bg-muted);
  max-width: 40rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-foot {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0 0;
  border-top: 1px solid transparent;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--on-bg-muted);
  max-width: 42rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.25s ease;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel.nk-step-panel--active .nk-step-head::before {
  background: linear-gradient(180deg, var(--gold, #ca8a04) 0%, rgba(202, 138, 4, 0.45) 100%);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel.nk-step-panel--active {
  border-color: rgba(202, 138, 4, 0.2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 0 0 1px rgba(202, 138, 4, 0.07);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel.nk-step-panel--active .nk-step-head {
  background: linear-gradient(180deg, rgba(202, 138, 4, 0.055) 0%, transparent 72%);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-body .acc-toolbar {
  margin-bottom: 0.15rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-field-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-field-group--period {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-field-group--period {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Schritt 1: klar gruppiert, luftig */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-flow {
  padding-top: 1.5rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-block {
  margin-bottom: 2rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-block:last-of-type {
  margin-bottom: 1.5rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--on-bg-muted);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-flow .acc-field-hint {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-dates {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-dates {
    grid-template-columns: 1fr 1fr;
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-control--full {
  max-width: 100%;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-extra {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step1-extra[hidden] {
  display: none !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-actions-row--step1-cta {
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--separator-subtle);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-primary--step1 {
  padding: 0.9rem 1.65rem !important;
  font-size: 1.02rem !important;
  min-height: 3rem;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.28);
}

/* Eine klare Hauptschaltfläche pro Schritt (Weiter / Berechnen / Abschliessen) */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-flow-primary {
  min-height: 2.85rem !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.98rem !important;
  box-shadow: 0 3px 12px rgba(202, 138, 4, 0.24);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-companion {
  font-size: 0.8125rem !important;
  padding: 0.5rem 0.9rem !important;
  font-weight: 600 !important;
  color: var(--on-bg-muted) !important;
  border-color: var(--separator-subtle) !important;
  background: var(--bg-0) !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-companion:hover:not(:disabled) {
  color: var(--on-bg) !important;
  border-color: var(--separator) !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--separator-subtle);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-actions-row--no-border {
  border-top: none;
  padding-top: 0;
  margin-top: 0.75rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-primary {
  background: var(--gold, #ca8a04) !important;
  border-color: var(--gold, #ca8a04) !important;
  color: #0f1419 !important;
  font-weight: 650 !important;
  padding: 0.65rem 1.15rem !important;
  border-radius: 10px !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-secondary {
  background: var(--bg-0) !important;
  border: 1px solid var(--separator) !important;
  color: var(--on-bg) !important;
  font-weight: 600 !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-btn-ghost {
  background: transparent !important;
  border: none !important;
  color: #1d4ed8 !important;
  font-weight: 600 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Quick entry cost form */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-cost-quick {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--separator-subtle);
  background: var(--bg-0);
  margin-bottom: 1rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-cost-quick-title {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-bg-dim);
  margin: 0 0 0.85rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-details {
  margin: 1rem 0 0;
  border: 1px solid var(--separator-subtle);
  border-radius: 12px;
  background: var(--bg-1);
  overflow: hidden;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-details summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-bg);
  list-style: none;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-details summary::-webkit-details-marker {
  display: none;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-details[open] summary {
  border-bottom: 1px solid var(--separator-subtle);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-details-body {
  padding: 1rem;
}

/* Summary KPIs – starker „Aha“-Moment */
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis .acc-kpis {
  display: contents;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis .acc-kpi {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--separator-subtle);
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis .acc-kpi-label {
  font-size: 0.6875rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis .acc-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis .acc-kpi:first-child .acc-kpi-value,
:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-preview-kpis .acc-kpi:nth-child(2) .acc-kpi-value {
  font-size: 1.45rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-warn-final {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #fedf89;
  background: #fffaeb;
  color: #b54708;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-warn-final strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #93370d;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) #accStatus {
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body[data-accounting-view="hk-nebenkosten"] #accStatus.acc-status.error {
  border-left: 4px solid #dc2626;
  padding-left: 0.85rem;
}

body[data-accounting-view="hk-nebenkosten"] #accStatus.acc-status.warn {
  border-left: 4px solid #f59e0b;
  padding-left: 0.85rem;
}

body[data-accounting-view="hk-nebenkosten"] #accStatus.acc-status.ok {
  border-left: 4px solid #10b981;
  padding-left: 0.85rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) #accStatus.acc-status.ok {
  border-color: #abefc6;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-toast {
  position: fixed;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 2000;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: #0f1419;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
  max-width: min(90vw, 360px);
  text-align: center;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-toast.nk-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes nkSpin {
  to {
    transform: rotate(360deg);
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .acc-btn.is-loading {
  position: relative;
  pointer-events: none;
  min-height: 2.45rem;
  color: transparent !important;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .acc-btn.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  margin: -0.525rem 0 0 -0.525rem;
  border-radius: 50%;
  border: 2px solid rgba(15, 20, 25, 0.18);
  border-top-color: rgba(15, 20, 25, 0.85);
  animation: nkSpin 0.65s linear infinite;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .acc-btn.nk-btn-primary.is-loading::after {
  border-color: rgba(15, 20, 25, 0.12);
  border-top-color: #0f1419;
}

@media (prefers-reduced-motion: reduce) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .acc-btn.is-loading::after {
    animation: none;
    border-color: rgba(15, 20, 25, 0.35);
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .acc-table-wrap {
  border-radius: 0 0 12px 12px;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-collapsed {
  margin-top: 2rem;
  font-size: 0.8125rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-guide-collapsed summary {
  color: var(--on-bg-dim);
  cursor: pointer;
}

/* ─── Heizkosten: Premium-Start, ein Einstieg, ruhige Hierarchie ─── */

body[data-accounting-view="hk-heizkosten"] #accStatus.acc-status--idle[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0;
}

body[data-accounting-view="hk-heizkosten"] .hz-hero-compact {
  margin-bottom: 0.75rem;
}

body[data-accounting-view="hk-heizkosten"] .hz-hero-compact .nk-hero-lead {
  max-width: 28rem;
  font-size: 0.9375rem;
}

body[data-accounting-view="hk-heizkosten"] .hz-context-line {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-bg-muted);
}

body[data-accounting-view="hk-heizkosten"] .hz-context-line a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

body[data-accounting-view="hk-heizkosten"] .hz-context-line a:hover {
  text-decoration: underline;
}

body[data-accounting-view="hk-heizkosten"] .hz-stepper-flow {
  margin-bottom: 2rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper {
  scroll-margin-top: 5.5rem;
}

body[data-accounting-view="hk-heizkosten"] .nk-stepper {
  scroll-margin-top: 5.5rem;
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel {
  scroll-margin-top: 4.5rem;
}

/* Fokus nach Start-CTA: gleiche Animation auf beiden Seiten */
@keyframes nkWizardStepPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(202, 138, 4, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(202, 138, 4, 0);
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.nk-focus-pulse .nk-stepper-circle {
  animation: nkWizardStepPulse 1.1s ease-out 2;
}

@keyframes nkPanelGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.12);
  }
  40% {
    box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.2), 0 8px 32px rgba(16, 24, 40, 0.08);
  }
  100% {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }
}

:is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel.nk-step-panel--focus {
  animation: nkPanelGlow 2s ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-stepper-item.nk-focus-pulse .nk-stepper-circle {
    animation: none;
  }

  :is(body[data-accounting-view="hk-nebenkosten"], body[data-accounting-view="hk-heizkosten"]) .nk-step-panel.nk-step-panel--focus {
    animation: none;
    outline: 2px solid rgba(202, 138, 4, 0.35);
    outline-offset: 2px;
  }
}

/* ─── Nur Nebenkosten: Phase 1 – kompaktere Fläche, Cards, Kostentabelle ─── */

body[data-accounting-view="hk-nebenkosten"] .nk-wizard {
  max-width: 960px;
  padding: 1.45rem 1.05rem 2.5rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-hero {
  margin-bottom: 1.1rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-module-hint {
  margin-bottom: 1.2rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-start-card--primary {
  margin-bottom: 1.35rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

/* Ablauf-Legende 1 → 2 → 3 → 4 */
body[data-accounting-view="hk-nebenkosten"] .nk-flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-bg-muted);
  background: var(--bg-0);
  border: 1px solid var(--separator-subtle);
  border-radius: 999px;
}

body[data-accounting-view="hk-nebenkosten"] .nk-fl-arrow::before {
  content: '→';
  display: inline-block;
  margin: 0 0.2rem;
  opacity: 0.55;
  font-weight: 700;
}

body[data-accounting-view="hk-nebenkosten"] .nk-workflow-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--separator-subtle);
  font-size: 0.8125rem;
  font-weight: 650;
}

body[data-accounting-view="hk-nebenkosten"] .nk-workflow-status--idle {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

body[data-accounting-view="hk-nebenkosten"] .nk-workflow-status--fin {
  background: #ecfdf3;
  color: #047857;
  border-color: #abefc6;
}

body[data-accounting-view="hk-nebenkosten"] .nk-workflow-status--error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

body[data-accounting-view="hk-nebenkosten"] .nk-wfs-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: #94a3b8;
}

body[data-accounting-view="hk-nebenkosten"] .nk-workflow-status--fin .nk-wfs-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

body[data-accounting-view="hk-nebenkosten"] .nk-workflow-status--error .nk-wfs-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

body[data-accounting-view="hk-nebenkosten"] .nk-ready-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #abefc6;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
}

body[data-accounting-view="hk-nebenkosten"] .nk-ready-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #065f46;
}

body[data-accounting-view="hk-nebenkosten"] .nk-ready-banner-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #166534;
}

body[data-accounting-view="hk-nebenkosten"] .nk-checks-intro {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--on-bg-muted);
  max-width: 40rem;
}

body[data-accounting-view="hk-nebenkosten"] .acc-hk-checks {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-0);
  border: 1px solid var(--separator-subtle);
}

body[data-accounting-view="hk-nebenkosten"] .acc-hk-check.fail {
  font-weight: 600;
}

body[data-accounting-view="hk-nebenkosten"] .nk-btn-pdf {
  font-weight: 650 !important;
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper {
  margin-bottom: 1.25rem;
  gap: 0.25rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper-item {
  gap: 0.35rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 0;
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper-status {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-bg-muted);
  line-height: 1.2;
  max-width: 5.5rem;
  text-align: center;
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper-item.is-active .nk-stepper-status {
  color: var(--gold, #ca8a04);
}

body[data-accounting-view="hk-nebenkosten"] .nk-stepper-item.is-done .nk-stepper-status {
  color: #067647;
}

body[data-accounting-view="hk-nebenkosten"] .nk-step-panel {
  margin-bottom: 1.1rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-step-head {
  padding: 1rem 1.15rem 0.85rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-step-body {
  padding: 1rem 1.15rem 1.2rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-step1-body {
  padding-top: 0.85rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-req {
  color: #b42318;
  font-weight: 700;
}

body[data-accounting-view="hk-nebenkosten"] .nk-opt {
  font-weight: 500;
  color: var(--on-bg-muted);
  font-size: 0.75rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-form-card {
  border: 1px solid var(--separator-subtle);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

body[data-accounting-view="hk-nebenkosten"] .nk-form-card-head {
  padding: 0.85rem 1.1rem 0.65rem;
  border-bottom: 1px solid var(--separator-subtle);
  background: var(--bg-1);
}

body[data-accounting-view="hk-nebenkosten"] .nk-form-card-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--on-bg);
}

body[data-accounting-view="hk-nebenkosten"] .nk-form-card-sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--on-bg-muted);
  max-width: 44rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-step1-grid,
body[data-accounting-view="hk-nebenkosten"] .nk-cost-form-grid {
  display: grid;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  body[data-accounting-view="hk-nebenkosten"] .nk-step1-grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-accounting-view="hk-nebenkosten"] .nk-span-2 {
    grid-column: span 2;
  }

  body[data-accounting-view="hk-nebenkosten"] .nk-cost-form-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  body[data-accounting-view="hk-nebenkosten"] .nk-cost-form-grid .nk-span-2 {
    grid-column: span 2;
  }
}

body[data-accounting-view="hk-nebenkosten"] .nk-hint-merge {
  margin-top: -0.35rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-textarea {
  width: 100%;
  min-height: 4rem;
  resize: vertical;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--separator);
  background: var(--bg-1);
  color: var(--on-bg);
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--step1-cta {
  padding-top: 1rem;
  margin-top: 0.15rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-form-card {
  margin-bottom: 0.65rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form {
  margin-top: 0.8rem;
  padding: 0.85rem 0.9rem;
  border-top: none;
  border: 1px solid var(--separator-subtle);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.55) 100%);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03), 0 10px 28px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(8px);
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form .acc-btn {
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem !important;
  border-radius: 12px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form .acc-btn:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.25);
  outline-offset: 2px;
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form .nk-btn-primary {
  box-shadow: 0 2px 10px rgba(202, 138, 4, 0.22);
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form .nk-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.28);
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form .nk-btn-secondary {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

body[data-accounting-view="hk-nebenkosten"] .nk-actions-row--cost-form .nk-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08);
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-table-wrap {
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--separator-subtle);
  overflow-x: auto;
}

/* Schritt 2: Flow-CTA unten etwas „appiger“ */
body[data-accounting-view="hk-nebenkosten"] #nkPanel2 .nk-actions-row:not(.nk-actions-row--cost-form) {
  margin-top: 1.05rem;
  padding-top: 1.05rem;
}

body[data-accounting-view="hk-nebenkosten"] #nkPanel2 .nk-btn-flow-primary {
  box-shadow: 0 2px 12px rgba(202, 138, 4, 0.20);
}

body[data-accounting-view="hk-nebenkosten"] #nkPanel2 .nk-btn-flow-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(202, 138, 4, 0.26);
}

/* Schritt 3: Manuelle Verteilung (inline Input) */
body[data-accounting-view="hk-nebenkosten"] #nkPanel3 #hkManualToggle.is-active {
  border-color: rgba(29, 78, 216, 0.35) !important;
  background: rgba(29, 78, 216, 0.06) !important;
  color: #1d4ed8 !important;
}

/* Heizkosten: Manuelle Anpassung Toggle */
body[data-accounting-view="hk-heizkosten"] #hzPanel3 #hzManualToggle.is-active {
  border-color: rgba(29, 78, 216, 0.35) !important;
  background: rgba(29, 78, 216, 0.06) !important;
  color: #1d4ed8 !important;
}

body[data-accounting-view="hk-nebenkosten"] .hk-manual-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body[data-accounting-view="hk-heizkosten"] .hk-manual-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body[data-accounting-view="hk-nebenkosten"] .hk-manual-share {
  width: 9.5rem;
  max-width: 100%;
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--separator);
  background: var(--bg-1);
  color: var(--on-bg);
  text-align: right;
}

body[data-accounting-view="hk-heizkosten"] .hk-manual-share {
  width: 9.5rem;
  max-width: 100%;
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--separator);
  background: var(--bg-1);
  color: var(--on-bg);
  text-align: right;
}

body[data-accounting-view="hk-nebenkosten"] .hk-manual-reset {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--on-bg-muted);
}

body[data-accounting-view="hk-heizkosten"] .hk-manual-reset {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--on-bg-muted);
}

body[data-accounting-view="hk-nebenkosten"] .hk-manual-reset:hover:not(:disabled) {
  color: var(--on-bg);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.05);
}

body[data-accounting-view="hk-heizkosten"] .hk-manual-reset:hover:not(:disabled) {
  color: var(--on-bg);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.05);
}

body[data-accounting-view="hk-nebenkosten"] .nk-manual-hint {
  margin: 0.6rem 0 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  color: var(--on-bg-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

body[data-accounting-view="hk-nebenkosten"] .nk-manual-hint strong {
  color: var(--on-bg);
}

body[data-accounting-view="hk-nebenkosten"] .nk-manual-hint.is-warn {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.06);
  color: #7f1d1d;
}

/* Heizkosten nutzt dieselben Hint-Styles */
body[data-accounting-view="hk-heizkosten"] .nk-manual-hint {
  margin: 0.6rem 0 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  color: var(--on-bg-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

body[data-accounting-view="hk-heizkosten"] .nk-manual-hint strong {
  color: var(--on-bg);
}

body[data-accounting-view="hk-heizkosten"] .nk-manual-hint.is-warn {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.06);
  color: #7f1d1d;
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-table {
  min-width: 720px;
  font-size: 0.8125rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-table th,
body[data-accounting-view="hk-nebenkosten"] .nk-cost-table td {
  vertical-align: middle;
  padding: 0.5rem 0.55rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-th-actions {
  width: 9.5rem;
  white-space: nowrap;
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-row--view {
  cursor: pointer;
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-row--view:hover {
  background: rgba(202, 138, 4, 0.06);
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-row--editing {
  background: rgba(29, 78, 216, 0.04);
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-row--editing td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-inline-select,
body[data-accounting-view="hk-nebenkosten"] .nk-inline-input {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--separator);
  background: var(--bg-1);
  color: var(--on-bg);
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-foot {
  background: var(--bg-0);
  border-top: 2px solid var(--separator-subtle);
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-foot-label {
  text-align: right;
  padding-right: 0.75rem;
}

body[data-accounting-view="hk-nebenkosten"] .nk-cost-foot-sum {
  font-variant-numeric: tabular-nums;
}
