/* PRO page — login + dashboard — v2.4 */

:root {
  --white: #fff;
  --paper: #fafaf8;
  --paper-2: #f4f2ee;
  --rule: #e8e4de;
  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
}

.pro-main {
  flex: 1;
  width: 100%;
}

/* ====== LOGIN SCREEN ====== */
.pro-login-wrap {
  padding: 36px 18px 24px;
  text-align: center;
}

.pro-login-center {
  max-width: 400px;
  margin: 0 auto;
}

.section-title {
  font-family: "Playfair Display", var(--font-display, serif);
  font-weight: 700;
  color: var(--ink);
}

.pro-hero-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.pro-title__em {
  color: var(--red);
  font-style: italic;
}

.pro-hero-sub {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 28px;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  padding: 24px;
  text-align: left;
  margin-bottom: 16px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  min-height: 48px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  margin-bottom: 16px;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #d2d3d6;
}

.google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-5);
  font-size: 12px;
  margin-bottom: 16px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.login-divider span {
  flex-shrink: 0;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  box-sizing: border-box;
}

.login-btn {
  display: block;
  width: 100%;
  padding: 14px;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.2);
}

.payment-wall-cta {
  margin-top: 16px;
}

.login-note {
  font-size: 11px;
  color: var(--ink-4);
  text-align: center;
  margin-top: 10px;
}

.pro-message {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* Benefits */
.pro-benefits {
  text-align: left;
  padding: 0 4px;
  margin-top: 28px;
}

.pro-benefits__kicker {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--red-bg, #fdf2f2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.benefit-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.pro-back-link {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-4);
  text-decoration: none;
}

/* ── Vertragsabgleich (T-16) ─────────────────────────── */

.xref-divider {
  margin-top: 24px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.xref-divider::before,
.xref-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8d0f0, transparent);
}

.xref-container {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e9e0ff;
  border-left: 4px solid #7c3aed;
  border-radius: 8px;
  background: #faf8ff;
  position: relative;
}

.xref-container__header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b21b6;
  margin-bottom: 4px;
}

.xref-container__subtitle {
  font-size: 13px;
  color: #7c6ca0;
  margin-bottom: 16px;
}

.xref-section {
  border-top: 1px solid #e9e0ff;
  padding-top: 14px;
  margin-top: 14px;
}

.xref-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b5b8a;
  margin-bottom: 8px;
}

.xref-finding {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #ccc;
  background: #fff;
}

.xref-finding--conflict {
  background: #faf5ff;
  border-left-color: #7c3aed;
}

.xref-finding--review {
  background: #fffdf5;
  border-left-color: #d4a017;
}

.xref-finding--info {
  background: #f8fafc;
  border-left-color: #94a3b8;
}

.xref-finding__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.xref-finding__label {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.xref-finding__amount {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.xref-finding--conflict .xref-finding__amount { color: #7c3aed; }
.xref-finding--review .xref-finding__amount { color: #b8860b; }
.xref-finding--info .xref-finding__amount { color: #4b5563; }

.xref-finding__text {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin-top: 4px;
}

.xref-finding__legal {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
  font-style: italic;
}

.finding-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.finding-badge--violet {
  color: #7c3aed;
  background: #ede9fe;
}

.finding-badge--amber {
  color: #92400e;
  background: #fef3c7;
}

.finding-badge--blue {
  color: #1e40af;
  background: #dbeafe;
}

.xref-belegeinsicht {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
}

.xref-belegeinsicht strong {
  font-size: 13px;
  color: #854d0e;
}

.xref-belegeinsicht p {
  margin: 6px 0 0 0;
  color: #713f12;
  font-size: 12px;
  line-height: 1.5;
}

/* Finding row xref variant (accordion path) */
.finding-row--xref {
  border-left: 5px solid #7c3aed;
  background: #ede5ff;
  border-color: #d8d0f0;
  border-left-color: #7c3aed;
}

.finding-row--xref .finding-row__amount {
  color: #7c3aed;
}

/* Clean / no-conflicts state */
.xref-container--clean {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
}

.xref-clean {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.xref-clean__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.xref-clean__title,
.xref-clean__header {
  font-size: 15px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}

.xref-clean__checks {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 6px;
}

.xref-clean__text {
  font-size: 13px;
  color: #4d7c5a;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .xref-container {
    padding: 14px 12px;
    margin-top: 20px;
  }

  .xref-finding__row {
    flex-direction: column;
    gap: 4px;
  }

  .xref-finding__label {
    font-size: 13px;
  }

  .xref-finding__amount {
    font-size: 13px;
    align-self: flex-end;
  }

  .xref-clean {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .xref-belegeinsicht {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (min-width: 768px) {
  .pro-hero-title { font-size: 32px; }
  .pro-hero-sub { font-size: 16px; }
  .pro-login-center { max-width: 440px; }
}

/* ====== DASHBOARD ====== */
.pro-dashboard {
  background: var(--paper);
  min-height: 100%;
}

.pro-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 18px;
}

.pro-header .brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  padding: 14px 0;
  flex-shrink: 0;
}

.brand-dot { color: var(--red); }

.pro-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-bg);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.tenancy-bar {
  padding: var(--space-2) var(--space-5);
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.tenancy-address {
  font-weight: 600;
  color: var(--white);
  font-size: var(--text-sm);
}

.tenancy-verwaltung {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
}

@media (max-width: 640px) {
  .tenancy-bar {
    padding: var(--space-2) var(--space-3);
  }
}

.timeline { padding: var(--space-4, 16px) 0; }
.timeline-round { margin-bottom: var(--space-6, 24px); }
.round-header {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-4, #666);
  margin-bottom: var(--space-3, 12px);
  padding-bottom: var(--space-2, 8px);
  border-bottom: 1px solid var(--rule, #e0e0e0);
}

.timeline-node {
  display: flex;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) 0;
  position: relative;
}
.timeline-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: calc(var(--space-3, 12px) + 28px);
  bottom: 0;
  width: 2px;
  background: var(--rule);
}
.node-icon { font-size: 1.25rem; width: 28px; text-align: center; flex-shrink: 0; }
.node-content { flex: 1; min-width: 0; }
.node-date { font-size: 0.75rem; color: var(--ink-4, #666); margin-bottom: var(--space-1, 4px); }
.node-title { font-weight: 600; margin-bottom: var(--space-1, 4px); }
.node-summary { font-size: 0.875rem; color: var(--ink-4, #666); margin-bottom: var(--space-2, 8px); }
.timeline-node--major { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-3); box-shadow: var(--shadow-sm); }
.timeline-node--major .node-icon { font-size: 1.5rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--paper-2); border-radius: 50%; flex-shrink: 0; }
.timeline-node--major .node-title { font-size: var(--text-md); font-weight: 700; }
.timeline-node--major .node-date { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.timeline .timeline-node.timeline-node--major {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.timeline .timeline-node.timeline-node--major .node-icon {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border-radius: 50%;
  flex-shrink: 0;
}
.timeline-node--minor { padding: var(--space-2) var(--space-4); margin-left: 18px; border-left: 2px solid var(--rule); }
.timeline-node--minor .node-icon { font-size: 1rem; width: 24px; opacity: 0.5; }
.timeline-node--minor .node-title { font-size: var(--text-sm); color: var(--ink-4); }
.timeline-node--waiting { background: var(--yellow-bg); border: 1px dashed var(--yel-border); border-radius: var(--radius); padding: var(--space-4); }
.timeline-node--waiting .node-title { color: var(--ink-3); }
.timeline-node--action { background: var(--green-bg); border: 1px solid var(--green-border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.expand-btn {
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--red, #c0392b);
  font-size: var(--text-sm);
  transition: background 0.15s;
  cursor: pointer;
}
.expand-btn:hover { background: var(--red-bg); border-color: var(--red-border); }
.timeline .expand-btn {
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--red);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.timeline .expand-btn:hover {
  background: var(--red-bg);
  border-color: var(--red-border);
}
.node-expandable {
  margin-top: var(--space-2, 8px);
  padding: var(--space-3, 12px);
  background: var(--paper-2, #f5f5f5);
  border-radius: var(--radius, 8px);
}
.action-btn {
  margin-top: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  background: var(--red, #c0392b);
  color: #fff;
  border: none;
  border-radius: var(--radius, 8px);
  cursor: pointer;
  font-size: 0.875rem;
}
.action-btn:hover { opacity: 0.9; }
.node-hint { font-size: 0.875rem; color: var(--ink-4, #666); font-style: italic; margin-top: var(--space-2, 8px); }

.case-card {
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--rule);
  transition: box-shadow 0.15s, border-color 0.15s;
  padding: var(--space-4) var(--space-5);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--red);
}

.case-card-header { margin-bottom: var(--space-3); }

.case-year { font-family: var(--font-display); font-size: var(--text-lg); }
.case-card-verwaltung { font-size: var(--text-sm); color: var(--ink-3); margin-top: var(--space-1); }
.case-status { font-size: var(--text-sm); padding: var(--space-1) var(--space-3); border-radius: 999px; background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); font-weight: 600; }
.case-card-body { font-size: 0.95rem; color: var(--ink-2, #262626); margin-bottom: var(--space-2, 8px); }
.case-card-footer { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.case-card-footer a { color: var(--red, #c0392b); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }

.card h3.dash-h2 { font-family: var(--font-display); }
.lease-row { padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: var(--space-2); }
.lease-row:last-child { border-bottom: none; }
.lease-row strong { min-width: 120px; color: var(--ink-3); font-weight: 500; }
.status-chips { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); justify-content: center; }
.status-chip { font-size: var(--text-sm); font-weight: 600; padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); }
.card--next-step { border-left: 4px solid var(--red); background: var(--red-bg); }
.card--next-step .dash-h2 { color: var(--red-dark); }
.case-docs-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.case-docs-row .btn-ghost { flex: 1; min-width: 180px; text-align: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius); font-weight: 600; }
.case-docs-row .btn-ghost:hover { border-color: var(--red); color: var(--red); }

.ov-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

/* Schutzstatus */
.ov-schutz { padding: var(--space-5); }
.ov-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}
.ov-status-row--green { background: var(--green-bg); border-left: 3px solid var(--green); }
.ov-status-row--amber { background: var(--yellow-bg); border-left: 3px solid #b8860b; }
.ov-status-row--red { background: var(--red-bg); border-left: 3px solid var(--red); }
.ov-status-row--muted { background: var(--paper-2); border-left: 3px solid var(--ink-5); }
.ov-status-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.ov-status-label { font-weight: 600; color: var(--ink); flex: 1; }
.ov-status-value { font-size: var(--text-sm); color: var(--ink-3); text-align: right; }

/* Nächster Schritt */
.ov-next-step { padding: var(--space-5); border-left: 4px solid var(--red); }
.ov-next-step__action { font-size: var(--text-md); color: var(--ink-2); margin-bottom: var(--space-4); line-height: 1.5; }
.ov-next-step__btn { width: 100%; }

/* Last case card */
.ov-case-card { padding: var(--space-5); cursor: pointer; transition: box-shadow 0.15s; }
.ov-case-card:hover { box-shadow: var(--shadow-md); }
.ov-case-card__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--space-2); }
.ov-case-card__title { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.ov-case-card__verdict { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.ov-case-card__amount { font-size: var(--text-lg); }
.ov-case-card__amount--red { color: var(--red); }
.ov-case-card__amount--amber { color: #b8860b; }
.ov-case-card__amount--green { color: var(--green); }
.ov-case-card__label { font-size: var(--text-sm); color: var(--ink-3); }
.ov-case-card__meta { font-size: var(--text-sm); color: var(--ink-4); margin-bottom: var(--space-3); }
.ov-case-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--red); text-decoration: none; }
.ov-case-card__link:hover { text-decoration: underline; }
.ov-no-cases { padding: var(--space-5); }
.ov-no-cases__text { color: var(--ink-4); font-size: var(--text-sm); }

/* Schnellzugriff */
.ov-quick { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.ov-quick__btn {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: var(--text-base); font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
  text-align: left;
}
.ov-quick__btn:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.ov-quick__icon { font-size: 1.25rem; }

/* NK Case cards (tenancy list) */
.case-card__year { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; display: block; }
.case-card__verwaltung { font-size: var(--text-sm); color: var(--ink-4); display: block; margin-top: 2px; }
.case-card__status-badge {
  font-size: var(--text-xs); font-weight: 600; padding: var(--space-1) var(--space-3);
  border-radius: 999px; white-space: nowrap;
}
.case-card__status-badge--green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.case-card__status-badge--amber { background: var(--yellow-bg); color: #8a6d00; border: 1px solid var(--yel-border); }
.case-card__status-badge--red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.case-card__verdict { display: flex; align-items: center; gap: var(--space-2); }
.case-card__verdict-amount { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.case-card__verdict-label { font-size: var(--text-sm); color: var(--ink-3); margin-top: var(--space-1); display: block; }
.case-card__positions { font-size: var(--text-sm); color: var(--ink-4); }
.case-card__open { font-size: var(--text-sm); font-weight: 600; color: var(--red); text-decoration: none; }
.case-card__open:hover { text-decoration: underline; }
.case-card-header__left { display: flex; flex-direction: column; }
.case-card-body { padding: var(--space-3) 0; }

/* Checks cards (Phase A2) */
.check-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius, 8px);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--white);
}
.check-card--amber { border-left: 4px solid #f59e0b; }
.check-card--green { border-left: 4px solid #22c55e; }
.check-card--active { border-left: 4px solid var(--red); }
.check-card--deferred { opacity: 0.8; }
.check-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}
.check-year { font-weight: 600; }
.check-health { font-size: var(--text-sm); }
.check-status { font-size: var(--text-sm); font-weight: 600; color: var(--ink-3); }
.check-card-body {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-bottom: var(--space-3);
}
.check-card-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.check-card-actions .btn-text,
.check-card-body .btn-text {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: var(--text-sm);
  text-decoration: underline;
  padding: 0;
}
.check-history {
  margin-bottom: var(--space-3);
}
.check-history > summary {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* Health banner at top of NK tab */
.health-banner {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius, 8px);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}
.health-banner--green {
  background: #f0fdf4;
  border: 1px solid #22c55e;
}
.health-banner--amber {
  background: #fffbeb;
  border: 1px solid #f59e0b;
}

/* Card elevation */
.pro-dashboard .card,
.dash-panel .card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.sticky-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: var(--space-2, 8px);
  padding: var(--space-3, 12px);
  background: #fff;
  border-top: 1px solid var(--rule, #e0e0e0);
  z-index: 100;
}
.sticky-actions button { flex: 1; }
@media (min-width: 641px) { .sticky-actions { display: none; } }

.vertrag-section { border: 1px solid var(--rule, #e0e0e0); border-radius: var(--radius, 8px); padding: 16px; background: #fff; max-width: 680px; }
.vertrag-section h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-1); }
.vertrag-empty { border: 1px dashed var(--rule, #e0e0e0); border-radius: var(--radius, 8px); padding: 16px; background: #fff; }
.upload-date { font-size: var(--text-sm); color: var(--ink-4); margin-bottom: var(--space-5); }
.lease-terms { display: grid; gap: 0; margin-bottom: var(--space-5); }
.term-row { display: flex; justify-content: space-between; padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.term-row:last-child { border-bottom: none; }
.term-label { color: var(--ink-3); font-size: var(--text-base); }
.term-value { font-weight: 600; color: var(--ink); font-size: var(--text-base); text-align: right; }
.lease-nk-items { margin-bottom: var(--space-5); }
.lease-nk-items strong { display: block; margin-bottom: var(--space-2); font-size: var(--text-sm); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.vertrag-section .mv-tag {
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  display: inline-block;
}
.vertrag-section .mv-tags {
  max-width: 680px;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--rule, #e0e0e0);
  background: #fff;
  color: var(--ink, #262626);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.abo-modal[hidden] { display: none; }
.abo-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}
.abo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.abo-modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  margin: 48px auto;
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--rule, #e0e0e0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  padding: 16px;
}
.abo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.abo-modal__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-4, #666);
}

.pro-header .user-email {
  font-size: 12px;
  color: var(--ink-4);
  margin-left: auto;
  padding: 14px 0;
  flex-shrink: 0;
}

.pro-header .h-tabs {
  display: flex;
  width: 100%;
  order: 3;
  overflow-x: auto;
  scrollbar-width: none;
  background: none;
  border-bottom: none;
}

.pro-header .h-tabs::-webkit-scrollbar { display: none; }

.h-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-4);
  white-space: nowrap;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.h-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

@media (min-width: 768px) {
  .pro-header { flex-wrap: nowrap; padding: 0 40px; gap: 24px; }
  .pro-header .h-tabs { width: auto; flex: 1; order: 0; justify-content: center; gap: 8px; }
  .pro-header .h-tabs .h-tab { padding: 16px 20px; font-size: 14px; }
  .pro-header .brand { font-size: 20px; }
}

.pro-dash-panels {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 18px 32px;
}

@media (min-width: 768px) {
  .pro-dash-panels { padding: 32px 40px 48px; }
}

.dash-panel-inner { max-width: 100%; }

.overview-welcome { font-size: 20px; margin: 0 0 4px; line-height: 1.2; }
.overview-pro-line { font-size: 13px; color: var(--ink-4); margin: 0 0 20px; }

@media (min-width: 768px) {
  .overview-welcome { font-size: 24px; }
  .overview-pro-line { font-size: 14px; margin-bottom: 28px; }
}

.pro-dashboard .card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.overview-stat-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }

@media (min-width: 768px) {
  .overview-stat-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
}

.stat-card { text-align: center; padding: 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.stat-card .stat-num { font-family: var(--font-display), "Playfair Display", Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.stat-card .stat-num--red { color: #cc0000; }
.stat-card .stat-num--green { color: #16a34a; }
.stat-label { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

.dash-kicker-block { font-size: 10px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 10px; }
.dash-kicker-block--spaced { margin-top: 24px; }

.action-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px;
  margin-bottom: 8px; box-sizing: border-box; background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-align: left; text-decoration: none;
}
.action-btn__label { flex: 1; min-width: 0; }
.action-btn:hover { background: var(--paper-2); }
.overview-actions .action-btn:last-child { margin-bottom: 0; }
.action-btn__arrow { flex-shrink: 0; margin-left: auto; color: var(--ink-5); font-size: 14px; line-height: 1; }
.action-btn__icon { flex-shrink: 0; font-size: 18px; line-height: 1; }

@media (min-width: 768px) {
  .overview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
  .overview-actions .action-btn { margin-bottom: 0; }
}

.overview-recent { display: grid; gap: 10px; }
@media (min-width: 768px) { .overview-recent { gap: 12px; } }

.overview-case-card-inner { display: grid; gap: 12px; }

@media (min-width: 768px) {
  .overview-case-card-inner {
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
  }
  .overview-case-card-inner .case-card__actions {
    margin-top: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
  }
}

/* ═══ Case cards — UNIFIED ═══ */
.case-card {
  border: 1px solid var(--rule, #e5e5e5);
  border-left: 4px solid var(--ink-4, #a3a3a3);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white, #fff);
  transition: box-shadow 0.15s;
  padding: 0; /* NK accordion cards: .case-collapsed handles padding */
}
.case-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.case-card--red { border-left-color: var(--red, #cc0000); }
.case-card--amber { border-left-color: var(--amber, #b8860b); }
.case-card--green { border-left-color: var(--green, #16a34a); }
.case-card--blue { border-left-color: #2563eb; }

/* Overview case cards need their own padding (no .case-collapsed inside) */
.overview-case-card {
  padding: 14px 16px;
}

.pro-dashboard .card.case-card {
  border-left-width: 4px; border-left-style: solid; border-left-color: var(--green); padding: 0;
}
.pro-dashboard .card.case-card.overview-case-card { padding: 14px 16px; }
.pro-dashboard .card.case-card--red { border-left-color: var(--red); }
.pro-dashboard .card.case-card--amber { border-left-color: #b8860b; }
.pro-dashboard .card.case-card--green { border-left-color: #16a34a; }
.pro-dashboard .card.case-card--blue { border-left-color: #2563eb; }

.case-card__row-top { display: flex; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.case-card__type { font-size: 10px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 1px; }
.case-card__date { font-size: 12px; color: var(--ink-4); flex-shrink: 0; }
.case-card__title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.case-card__row-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.case-card__meta { font-size: 13px; color: var(--ink-3); }
.case-card__meta--red { color: var(--red); font-weight: 600; }
.case-card__meta--green { color: var(--green); font-weight: 600; }
.case-card__nk-amount { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--red); }
.cases-stack .card.case-card { padding: 0; }
.cases-stack .card.case-card.overview-case-card { padding: 14px 16px; }
/* Tenancy case-list cards: override legacy accordion base styles */
#section-nebenkosten #cases-list > .case-card {
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--rule);
  transition: box-shadow 0.15s, border-color 0.15s;
  padding: var(--space-4) var(--space-5);
}
#section-nebenkosten #cases-list > .case-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--red);
}

.case-card__status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.status--complete { color: #226b2f; background: var(--green-bg); }
.status--active { color: var(--blue); background: var(--blue-bg); }
.status--progress { color: #8a6400; background: var(--yellow-bg); }

.case-card__grid { display: grid; gap: 12px; }
@media (min-width: 768px) {
  .case-card__grid { grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; }
  .case-card__grid .case-card__actions { margin-top: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
}
.case-card__actions { margin-top: 10px; }

.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 8px; }
.dl-item:last-child { margin-bottom: 0; }
.dl-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dl-sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.dl-btn { flex-shrink: 0; min-width: 40px; padding: 8px 12px; border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; border: none; background: var(--red); color: #fff; }

.nk-case-dl-details { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.nk-case-dl-summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-3); list-style: none; }
.nk-case-dl-summary::-webkit-details-marker { display: none; }
.nk-case-dl-chevron { display: inline-block; margin-right: 6px; transition: transform 0.15s ease; }
.nk-case-dl-details[open] .nk-case-dl-chevron { transform: rotate(90deg); }

.case-card__btn { padding: 8px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.case-card__btn--primary { background: var(--red); color: #fff; }
.case-card__btn--secondary { background: var(--white); color: var(--ink-3); border: 1px solid var(--rule); }

.nk-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
@media (max-width: 767px) { .nk-panel-head { flex-direction: column; align-items: stretch; } }
.nk-panel-title { margin: 0; white-space: nowrap; }
.action-btn--compact { margin-bottom: 0; width: 100%; }
.action-btn--dashed { border-style: dashed; }
.nk-footnote { font-size: 12px; color: var(--ink-4); text-align: center; margin-top: 16px; }
@media (min-width: 768px) {
  .action-btn--compact { width: auto; padding: 10px 20px; }
  .nk-footnote { font-size: 13px; margin-top: 24px; }
}

.cases-stack { display: flex; flex-direction: column; gap: 10px; }
.dash-panels { display: block; }
.dash-h2 { margin: 0 0 6px; font-size: 22px; font-family: var(--font-display), serif; font-weight: 600; }
.dash-sub { margin: 0 0 12px; color: var(--ink-3); }
.stack-list { display: grid; gap: 8px; }
.item-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; background: #fff; }
.item-head { margin: 0 0 4px; font-weight: 600; }
.item-meta { margin: 0; color: var(--ink-4); font-size: 13px; }

.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; width: fit-content; margin-top: 6px; }
.badge-red { background: #fff0f0; color: #a71818; border: 1px solid #f0c1c1; }
.badge-green { background: #eef8f0; color: #226b2f; border: 1px solid #c8e8ce; }
.badge-amber { background: #fff8e9; color: #8a6400; border: 1px solid #efdba7; }

.cta-row { margin-bottom: 12px; }
.placeholder-row { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 10px; color: var(--ink-4); background: #fcfcfc; }
.dash-h3 { margin: 0; font-size: 18px; }

/* Abo tab */
.abo-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 768px) { .abo-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.abo-card { padding: 18px; }
.abo-portal-btn { width: 100%; margin-top: 16px; }
.abo-portal-hint { margin: 8px 0 0; font-size: 12px; color: var(--ink-4); line-height: 1.45; }
.abo-includes-card { padding: 24px; }
.abo-includes-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.abo-includes-list { margin: 0; padding: 0 0 0 1.15em; font-size: 14px; color: var(--ink-3); line-height: 2; }
.abo-includes-lines { font-size: 14px; color: var(--ink-3); line-height: 2; }
.abo-status { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.abo-status__label { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.abo-status--active .abo-status__label { color: var(--green); }
.abo-status--pending .abo-status__label { color: #b8860b; }
.abo-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--green); }
.abo-dot--muted { background: var(--ink-5); }
.abo-dot--pending { background: #b8860b; }
.abo-rows { border-top: 1px solid #f4f2ee; }
.abo-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f4f2ee; font-size: 14px; }
.abo-row:last-child { border-bottom: none; }
.abo-label { flex-shrink: 0; color: var(--ink-3); }
.abo-value { text-align: right; color: var(--ink); font-weight: 600; }
.abo-footnote { margin: 12px 0 0; font-size: 12px; color: var(--ink-4); line-height: 1.4; }

.abo-manage { display: block; width: 100%; padding: 12px; margin-top: 16px; box-sizing: border-box; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white); color: var(--ink-3); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.abo-manage:hover { background: var(--paper-2); border-color: var(--ink-5); }
.abo-manage:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.abo-manage--disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.case-detail { margin-top: 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fcfcfc; padding: 12px; display: grid; gap: 12px; }
.case-detail-head { display: grid; gap: 2px; }
.detail-section { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 10px; }
.detail-h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.item-actions { margin-top: 8px; }

.lease-panel { display: grid; gap: 10px; }
.lease-copy { margin: 0; color: var(--ink-3); }
.lease-rows { display: grid; gap: 6px; }
.lease-row { margin: 0; font-size: 14px; color: var(--ink-2); }
.lease-row strong { color: var(--ink-1); }
.lease-findings { display: grid; gap: 6px; }

.lease-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lease-pill.ok { color: #226b2f; border: 1px solid #c8e8ce; background: #eef8f0; }
.lease-pill.warn { color: #8a6400; border: 1px solid #efdba7; background: #fff8e9; }
.lease-pill.bad { color: #a71818; border: 1px solid #f0c1c1; background: #fff0f0; }
.lease-pill.info { color: #24537a; border: 1px solid #c6ddf3; background: #f5f8fc; }

.lease-empty { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 12px; }
.lease-upload { display: grid; gap: 8px; max-width: 100%; overflow: hidden; }

.drop-zone { position: relative; border: 2px dashed var(--rule); border-radius: var(--radius); padding: 16px; text-align: center; background: #fff; cursor: pointer; transition: border-color 0.2s, background 0.2s; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.drop-zone:hover { border-color: var(--ink-4); }
.drop-zone.dragover { border-color: #8f1e1e; background: #fff7f7; }
.drop-zone.has-file { border: 2px solid #226b2f; background: #eef8f0; }
.drop-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 1; }
.drop-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.drop-title { font-size: 15px; font-weight: 600; color: var(--ink-1); margin-bottom: 4px; }
.drop-sub { font-size: 12.5px; color: var(--ink-4); }
.drop-selected { display: none; align-items: center; justify-content: center; gap: 10px; max-width: 100%; min-width: 0; width: 100%; box-sizing: border-box; overflow: hidden; }
.drop-selected .fname { font-size: 14px; font-weight: 600; color: #226b2f; max-width: none; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-selected .fchange { font-size: 12px; color: var(--ink-4); text-decoration: underline; }
.has-file .drop-default { display: none; }
.has-file .drop-selected { display: flex; }
.lease-upload .btn { max-width: 100%; box-sizing: border-box; }

/* Embedded RZ calculator */
.rz-embed-card { margin-bottom: 16px; }
.rz-embed-form { display: grid; gap: 10px; }
.rz-embed-label-spaced { margin-top: 4px; }
.rz-embed-row { display: flex; gap: 10px; }
.rz-embed-select { flex: 1; min-height: 48px; }
.rz-embed-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; margin-top: 4px; }
.rz-embed-check input { margin-top: 3px; }
#pro-rz-date-wrap.is-disabled { opacity: 0.45; pointer-events: none; }
.pro-rz-form-error { min-height: 1.2em; font-size: 13px; color: var(--red); margin: 0; }
.rz-embed-result { margin-top: 8px; }
.pro-rz-result-card { padding: 20px; text-align: center; margin-bottom: 16px; border-radius: var(--radius); border: 1px solid var(--rule); }
.pro-rz-result-card--green { background: #f0faf4; border-color: #c5e6d0; }
.pro-rz-result-card--grey { background: var(--paper-2); text-align: center; }
.pro-rz-result-label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.pro-rz-result-amount { font-size: 28px; font-weight: 700; color: var(--green, #226b2f); margin: 4px 0; }
.pro-rz-result-annual { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.pro-rz-result-headline { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pro-rz-result-body { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pro-rz-pack-block { margin-bottom: 12px; }
.pro-rz-pack-btn { margin-bottom: 8px; }
.pro-rz-pack-status { margin: 0; }
.pro-rz-recalc { text-align: center; margin-top: 8px; }
.pro-rz-reset-link { background: none; border: none; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }

.rz-pro-result-layout { display: grid; gap: 16px; }
.rz-pro-result-col--dl { display: flex; flex-direction: column; gap: 10px; }
.rz-result { border-radius: 10px; overflow: hidden; }
.rz-result--green { background: var(--green-bg); border: 1px solid var(--green-border); }
.rz-pro-result-col--main .pro-rz-result-card { margin-bottom: 0; }

.rz-monitor { background: var(--blue-bg); border: 1px solid #c0d0e8; border-radius: var(--radius); padding: 14px 16px; }
.rz-monitor--pro { margin-top: 12px; }
.rz-monitor__title { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.rz-monitor__text { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.pro-rz-evidence-btn { width: 100%; }
.rz-pro-files { margin: 0; }
.rz-pro-files__sum { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-3); list-style: none; }
.rz-pro-files__sum::-webkit-details-marker { display: none; }
.rz-pro-chevron { display: inline-block; margin-right: 6px; transition: transform 0.15s ease; }
.rz-pro-files[open] .rz-pro-chevron { transform: rotate(90deg); }
.rz-dl-list { margin-top: 10px; }

/* NK bill upload */
.nk-upload-card { position: relative; margin-bottom: 20px; }
.nk-upload-card--busy { opacity: 0.98; }
.nk-processing { position: absolute; inset: 0; z-index: 4; display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; border-radius: var(--radius); background: rgba(255,255,255,0.92); backdrop-filter: blur(2px); }
.nk-processing.is-active { display: flex; }
.nk-processing-inner { text-align: center; max-width: 280px; }
.nk-spinner { width: 40px; height: 40px; margin: 0 auto 14px; border: 3px solid var(--rule); border-top-color: var(--red); border-radius: 50%; animation: nk-spin 0.85s linear infinite; }
@keyframes nk-spin { to { transform: rotate(360deg); } }
.nk-processing-msg { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.nk-upload-kicker { font-size: 10px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 10px; }
.nk-bill-upload { margin-top: 0; }
.nk-bill-upload .btn { width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 12px; }
.nk-upload-msg { min-height: 1.2em; font-size: 13px; color: var(--red); margin: 8px 0 0; }
.nk-analyze-status { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 10px 0 0; }

/* 2-column layouts */
.dash-2col { display: block; }
.dash-2col__aside { margin-top: 24px; }
@media (min-width: 768px) {
  .dash-2col { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
  .dash-2col__aside { margin-top: 0; }
}

.overview-2col { display: block; }
.overview-2col__lease { margin-top: 24px; }
@media (min-width: 768px) {
  .overview-2col { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
  .overview-2col__lease { margin-top: 0; }
}

.nk-top-grid { display: block; margin-bottom: 24px; }
.nk-top-grid__lease { margin-top: 24px; }
@media (min-width: 768px) {
  .nk-top-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
  .nk-top-grid__lease { margin-top: 0; }
}

/* Archive button */
.case-delete-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-4, #a3a3a3); background: none; border: 1px solid var(--rule, #e5e5e5); border-radius: 6px; padding: 3px 8px; cursor: pointer; font-family: var(--font-body, 'DM Sans', sans-serif); transition: all 0.15s; }
.case-delete-btn:hover { border-color: #dc2626; color: #dc2626; }
.case-delete-btn svg { width: 12px; height: 12px; }

/* ═══ NK Accordion collapsed — TIGHT ═══ */
.case-collapsed { padding: 12px 16px; }
.case-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.case-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--rule);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.case-detail-header .case-back { font-size: var(--text-sm); color: var(--ink-4); cursor: pointer; white-space: nowrap; }
.case-detail-header .case-back:hover { color: var(--red); }
.case-detail-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  flex: 1;
  text-align: center;
}
.case-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: right;
  font-size: var(--text-sm);
  color: var(--ink-3);
  white-space: nowrap;
}
.case-detail-status { padding: var(--space-1) var(--space-3); background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 999px; font-size: var(--text-xs); font-weight: 600; color: var(--green); }
.case-detail-hint { font-size: var(--text-sm); color: var(--ink-3); margin-left: var(--space-2); }
.case-date { font-size: 11px; color: var(--ink-4, #a3a3a3); font-weight: 500; }
.case-right-top { display: flex; align-items: center; gap: 8px; }
.case-status-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.case-status-pill--green { color: var(--green, #16a34a); background: #f0fdf4; border: 1px solid #bbf7d0; }

.case-body { display: flex; gap: 12px; align-items: flex-start; }
.case-info { flex: 1; }
.case-verwaltung { font-size: 15px; font-weight: 700; color: var(--ink, #262626); margin-bottom: 0; }
.case-period { font-size: 12px; color: var(--ink-3, #737373); }
.case-positions { font-size: 11px; color: var(--ink-3, #737373); margin-top: 0; }
.case-verdict { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; min-width: 180px; margin-top: 12px; }
.case-verdict__dot-row { display: flex; align-items: center; gap: 8px; }
.case-verdict__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.case-verdict__dot--red { background: var(--red, #cc0000); }
.case-verdict__dot--amber { background: var(--amber-light, #daa520); }
.case-verdict__dot--green { background: var(--green, #16a34a); }
.case-verdict__amount { font-family: 'Playfair Display', var(--font-display, serif); font-size: 22px; font-weight: 700; color: var(--ink, #262626); }
.case-verdict__label { font-size: 12px; color: var(--ink-3, #737373); margin-top: 1px; }

.case-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f5f5f5; }
.case-expand-btn { font-size: 13px; color: var(--ink-3, #525252); background: none; border: none; cursor: pointer; font-family: var(--font-body, 'DM Sans', sans-serif); padding: 0; }
.case-expand-btn:hover { color: var(--red, #cc0000); }
.evidence-btn-sm { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--red, #cc0000); color: white; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-body, 'DM Sans', sans-serif); }
.evidence-btn-sm:hover { opacity: 0.9; }

/* ═══ NK Accordion expanded ═══ */
.case-expanded { border-top: 1px solid var(--rule, #e5e5e5); padding: 20px; background: #fafafa; }
.expanded-2col { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }

.findings-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--ink-3, #737373); text-transform: uppercase; margin-bottom: 12px; }
.findings-label--xref { color: #5b21b6; }
.finding-row { background: var(--white, #fff); border: 1px solid var(--rule, #e5e5e5); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.finding-row__header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; }
.finding-row__name-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.finding-row__name { font-size: 14px; font-weight: 600; color: var(--ink, #262626); }
.finding-row__amount { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.finding-row__amount--red { color: var(--red, #cc0000); }
.finding-row__amount--amber { color: var(--amber, #b8860b); }
.finding-row__amount--green { color: var(--green, #16a34a); }
.finding-detail { padding: 0 14px 12px; border-top: 1px solid #f5f5f5; }
.finding-detail__reason { font-size: 13px; color: var(--ink-3, #525252); margin: 8px 0 4px; line-height: 1.5; }
.finding-detail__action { font-size: 12px; color: var(--ink-4, #a3a3a3); margin: 6px 0 4px; line-height: 1.4; }
.finding-detail__legal { font-size: 11px; color: var(--ink-4, #a3a3a3); margin-bottom: 6px; }
.finding-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.finding-badge--red { background: #fef2f2; border: 1px solid #fecaca; color: var(--red, #cc0000); }
.finding-badge--amber { background: #fffbeb; border: 1px solid #fde68a; color: var(--amber, #b8860b); }
.finding-badge--green { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--green, #16a34a); }
.finding-badge--violet { background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; }
.finding-badge--blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.finding-row__amount--violet { color: #7c3aed; }
.docs-column-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--ink-3, #737373); text-transform: uppercase; margin-bottom: 12px; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.docs-email-btn { display: block; width: 100%; margin-top: 10px; padding: 10px; background: transparent; color: var(--ink, #262626); border: 1px solid var(--rule, #e5e5e5); border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; text-align: center; font-family: var(--font-body, 'DM Sans', sans-serif); }
.docs-email-btn:hover { border-color: var(--ink-3); background: #f5f5f5; }

.case-accordion__loading { font-size: 13px; color: var(--ink-4); margin: 0; }
.case-accordion__empty { font-size: 13px; color: var(--ink-4); margin: 0; }

.pro-finding { border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.pro-finding--red { border-left: 3px solid var(--red); }
.pro-finding--amber { border-left: 3px solid var(--amber); }
.pro-finding--green { border-left: 3px solid var(--green); }
.pro-finding__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.pro-finding__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.pro-finding__amount { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.pro-finding__amount--red { color: var(--red); }
.pro-finding__amount--amber { color: var(--amber); }
.pro-finding__amount--green { color: var(--green-dark, #2e7d32); }
.pro-finding__reason { font-size: 13px; color: var(--ink-3); margin: 0 0 4px; line-height: 1.4; }
.finding-row__action { font-size: 12px; color: var(--ink-4); margin: 0 0 4px; line-height: 1.4; }
.pro-finding__legal { font-size: 12px; color: var(--ink-4); margin: 0; }

.finding-sev { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; margin-bottom: 6px; }
.finding-sev--red { background: rgba(200, 30, 30, 0.1); color: var(--red); }
.finding-sev--amber { background: rgba(200, 150, 0, 0.1); color: var(--amber); }
.finding-sev--green { background: rgba(46, 125, 50, 0.1); color: var(--green-dark, #2e7d32); }
.finding-sev--violet { background: #f5f3ff; color: #5b21b6; }

.case-docs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 12px; }

/* Lease sidebar */
.lease-sidebar-card { padding: 18px; }
.lease-sidebar-card--done { border-left: 3px solid var(--green); }
.mv-sidebar__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lease-sidebar__title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 0; }
.lease-sidebar__badge { font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 0; }
.lease-sidebar__prompt { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 0 0 12px; }
.lease-sidebar__link { display: inline-block; margin-top: 10px; background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink-4); text-decoration: underline; cursor: pointer; }
.lease-sidebar__items-title { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 12px; margin-bottom: 6px; }
.lease-sidebar__items { margin: 0; padding: 0 0 0 1.2em; font-size: 13px; color: var(--ink-3); line-height: 1.8; }

.overview-lease-section { margin-bottom: 8px; }
.overview-lease-card { padding: 18px; }
.overview-lease-card--done { border-left: 3px solid var(--green); }
.overview-lease-head { font-size: 15px; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.overview-lease-prompt { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 0 0 14px; }
.overview-lease-replace { display: inline-block; margin-top: 12px; background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink-4); text-decoration: underline; cursor: pointer; }

/* Verdict mini (overview cards) */
.verdict-mini { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.verdict-mini__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.verdict-mini--red .verdict-mini__dot { background: var(--red); }
.verdict-mini--amber .verdict-mini__dot { background: var(--amber); }
.verdict-mini--green .verdict-mini__dot { background: var(--green-dark, #2e7d32); }
.verdict-mini__amount { font-weight: 700; font-size: 16px; }
.verdict-mini--red .verdict-mini__amount { color: var(--red); }
.verdict-mini--amber .verdict-mini__amount { color: var(--amber); }
.verdict-mini--green .verdict-mini__amount { color: var(--green-dark, #2e7d32); }
.verdict-mini__label { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.verdict-mini__label--red { color: var(--red); }
.verdict-mini__label--amber { color: var(--amber); }

/* Clickable overview cards */
.overview-case-card--clickable { cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; }
.overview-case-card--clickable:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: var(--ink-4); }

.overview-case-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.case-card__btn--sm { font-size: 12px; padding: 6px 12px; }

/* Section label */
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--ink-3, #737373); text-transform: uppercase; margin-bottom: 14px; }

/* NK subtitle */
.page-subtitle-nk { font-size: 14px; color: var(--ink-3, #737373); margin-bottom: 28px; margin-top: -4px; }

/* MV tags */
.mv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mv-tag { font-size: 11px; color: var(--ink-3, #525252); background: #f5f5f5; border: 1px solid var(--rule, #e5e5e5); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.mv-tag--more { color: var(--ink-4, #a3a3a3); font-style: italic; border-style: dashed; }

.mv-sidebar__items-title { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 12px; margin-bottom: 6px; }
.mv-sidebar__row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.mv-sidebar__label { font-size: 13px; color: var(--ink-3); }
.mv-sidebar__value { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Evidence Pack card inline */
.pack-card-inline { border: 1px solid var(--rule); border-radius: var(--radius); background: #fafafa; padding: 16px; margin-top: 12px; text-align: center; }
.pack-card-inline__title { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.pack-card-inline__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-bottom: 12px; }
.doc-tile { border: 1px solid var(--rule, #e5e5e5); border-radius: 8px; background: var(--white, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px; text-align: center; cursor: pointer; transition: all 0.15s; text-decoration: none; color: var(--ink, #262626); }
.doc-tile:hover { border-color: var(--ink-3, #a3a3a3); background: #f5f5f5; }
.doc-tile__icon { display: block; font-size: 24px; margin-bottom: 6px; opacity: 0.5; }
.doc-tile__label, .doc-tile__name { display: block; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--ink, #262626); }
.doc-tile__fmt, .doc-tile__type { display: block; font-size: 9px; color: var(--ink-4, #a3a3a3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.pack-card-inline__dl { display: block; width: 100%; padding: 10px; border: none; border-radius: 8px; background: var(--red); color: var(--white); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.pack-card-inline__dl:hover { opacity: 0.9; }

/* Header user menu dropdown */
.pro-user-menu { position: relative; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.pro-user-menu__caret { font-size: 11px; color: var(--ink-4); }
.pro-user-menu__dropdown { display: none; position: absolute; top: calc(100% + 4px); right: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 100; white-space: nowrap; }
.pro-user-menu--open .pro-user-menu__dropdown { display: block; }
.pro-user-menu__item { display: block; width: 100%; padding: 8px 16px; background: none; border: none; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left; }
.pro-user-menu__item:hover { background: #f5f5f5; }

.rz-monitor-slot { margin-bottom: 16px; }
.rz-monitor--full { width: 100%; }

/* Responsive */
@media (max-width: 767px) {
  .pro-header {
    justify-content: space-between;
    overflow-x: hidden;
  }

  .pro-header .brand {
    margin-right: 8px;
  }

  .pro-user-menu {
    margin-left: auto;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    flex-shrink: 1;
    gap: 6px;
  }

  .pro-header .user-email {
    margin-left: 0;
    padding: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .overview-stat-grid {
    display: flex;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    gap: 0;
  }

  .stat-card {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 12px 4px;
    background: none;
  }

  .pro-dashboard .card.stat-card {
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .stat-card:first-child {
    flex: 1;
  }

  .stat-card:nth-child(2) {
    flex: 1.3;
  }

  .stat-card + .stat-card {
    border-left: 1px solid #e5e5e5;
  }

  .stat-card .stat-num {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  .case-collapsed { padding: 12px; }
  .case-body { flex-direction: column; gap: 8px; }
  .case-verdict { align-items: flex-start; text-align: left; min-width: auto; padding: 8px 0 0; border-top: 1px solid #f5f5f5; width: 100%; }
  .case-expanded { padding: 16px; }
  .expanded-2col { grid-template-columns: 1fr; }
}

/* Danger zone — account deletion */
.danger-zone { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e5e5e5; }
.danger-zone__card { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #cc0000; border-radius: 0 10px 10px 0; padding: 20px 24px; }
.danger-zone__header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.danger-zone__icon { font-size: 16px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: #fdf2f2; border-radius: 50%; }
.danger-zone__title { font-size: 15px; font-weight: 600; color: #262626; }
.danger-zone__text { font-size: 13px; color: #737373; line-height: 1.6; margin: 0 0 16px; }
.danger-zone__btn { background: none; border: 1px solid #cc0000; color: #cc0000; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.danger-zone__btn:hover { background: #fdf2f2; }
.danger-zone__error { font-size: 13px; color: #dc2626; margin-top: 8px; }

/* UX polish pass 1 (Übersicht + NK Check + Befunde) */
.lay { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .lay { grid-template-columns: 3fr 2fr; } }

.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.pg-t { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.pg-s { font-size: 14px; color: var(--ink-4); margin-bottom: 24px; }
.sec { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.btn-r { display: block; width: 100%; padding: 10px; border-radius: var(--radius); font-size: 13px; font-weight: 600; text-align: center; border: none; background: var(--red); color: #fff; }
.btn-r:hover { background: var(--red-dark); }
.btn-s { display: block; width: 100%; padding: 10px; border-radius: var(--radius); font-size: 13px; font-weight: 600; text-align: center; border: 1px solid var(--rule); background: var(--white); color: var(--ink-3); }
.btn-s:hover { border-color: var(--red); color: var(--red); }
.b { padding: 5px 12px; border-radius: var(--radius); font-size: 11px; font-weight: 600; border: none; }
.b--r { background: var(--red); color: #fff; }
.b--o { background: var(--white); color: var(--ink-3); border: 1px solid var(--rule); }
.b--o:hover { border-color: var(--red); color: var(--red); }
.b--x { background: none; color: var(--ink-5); font-size: 11px; padding: 5px 6px; }
.b--x:hover { color: var(--red); }
.pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill--a { background: var(--yellow-bg); color: var(--amber); border: 1px solid var(--yel-border); }
.pill--g { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.pill--b { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-bdr); }

.hb { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.hb--a { background: var(--yellow-bg); border: 1px solid var(--yel-border); }
.hb--g { background: var(--green-bg); border: 1px solid var(--green-border); }
.hb--e { background: var(--paper-2); border: 1px solid var(--rule); }
.hb-i { font-size: 18px; flex-shrink: 0; }
.hb-t { font-size: 14px; color: var(--ink-2); flex: 1; line-height: 1.4; }
.hb-t strong { color: var(--ink); }

.ov-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.dc { display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.dc:hover { box-shadow: var(--shadow-md); }
.dc-strip { padding: 12px 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.dc-strip--green { background: var(--green-bg); border-bottom: 1px solid var(--green-border); }
.dc-strip--amber { background: var(--yellow-bg); border-bottom: 1px solid var(--yel-border); }
.dc-strip--empty { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.dc-strip-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; flex: 1; }
.dc-strip--green .dc-strip-label { color: var(--green); }
.dc-strip--amber .dc-strip-label { color: var(--amber); }
.dc-strip--empty .dc-strip-label { color: var(--ink-4); }
.dc-dot { width: 9px; height: 9px; border-radius: 50%; }
.dc-dot--green { background: var(--green); }
.dc-dot--amber { background: #b8860b; }
.dc-dot--empty { background: var(--ink-5); }
.dc-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.dc-headline { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.dc-data { font-size: 13px; color: var(--ink-3); line-height: 1.6; flex: 1; }
.dc-data strong { color: var(--ink-2); }
.dc-amount { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 4px 0; }
.dc-amount--amber { color: var(--amber); }
.dc-action { padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.dc-action-hint { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.dc-action-hint strong { color: var(--ink-2); }
.dc-strip-line2 { display: none; width: 100%; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.dc-chev { display: none; font-size: 13px; color: var(--ink-5); transition: transform 0.2s; }

.ck--amber { border-left: 4px solid #b8860b; }
.ck--green { border-left: 4px solid var(--green); }
.ck-head { padding: 18px 20px; }
.ck-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ck-info { flex: 1; }
.ck-date { font-size: 12px; color: var(--ink-4); margin-bottom: 2px; }
.ck-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.ck-meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }
.ck-verdict { text-align: right; flex-shrink: 0; }
.ck-amt { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ck-amt--a { color: var(--amber); }
.ck-amt--g { color: var(--green); }
.ck-label { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.ck-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-top: 1px solid var(--rule); background: var(--paper); gap: 6px; }
.ck-btns { display: flex; gap: 6px; align-items: center; }

.sc { padding: 18px; }
.sc-t { font-size: 13px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sc-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0ede8; font-size: 13px; }
.sc-row:last-of-type { border-bottom: none; }
.sc-row span:first-child { color: var(--ink-3); }
.sc-row span:last-child { font-weight: 600; }
.sc-link { display: block; font-size: 12px; color: var(--ink-4); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.sc-link:hover { color: var(--red); }
.lease-pos { margin-top: 10px; }
.lease-pos-t { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.lease-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lease-tag { font-size: 10px; padding: 2px 7px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-3); }

.upload { padding: 18px; text-align: center; }
.upload-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; cursor: pointer; }
.upload-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.upload-chev { font-size: 12px; color: var(--ink-5); }
.upload-body.hide { display: none; }
.upload-drop { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 24px 14px; margin-bottom: 12px; position: relative; overflow: hidden; }
.upload-drop:hover { border-color: var(--ink-4); }
.upload-icon { font-size: 22px; margin-bottom: 4px; }
.upload-t { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.upload-s { font-size: 11px; color: var(--ink-4); }

.findings { border-top: 1px solid var(--rule); }
.f-row { padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.f-row:last-child { border-bottom: none; }
.f-row--flag { background: var(--yellow-bg); }
.f-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.f-name { font-weight: 600; font-size: 13px; }
.f-badge { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.f-badge--a { background: var(--yellow-bg); color: var(--amber); border: 1px solid var(--yel-border); }
.f-badge--g { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.f-desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.f-ref { font-size: 11px; color: var(--ink-5); margin-top: 3px; }
.f-amt { font-family: var(--font-display); font-size: 14px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.f-amt--a { color: var(--amber); }
.f-amt--g { color: var(--green); }
.xref { padding: 10px 20px; background: var(--violet-bg); border-top: 1px solid var(--violet-bdr); font-size: 12px; color: var(--violet); line-height: 1.5; }
.decide { padding: 20px; border-top: 2px solid var(--yel-border); background: var(--yellow-bg); }
.decide-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.decide-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.decide-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.decide-primary { flex: 1; min-width: 160px; padding: 12px 20px; background: var(--red); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 700; text-align: center; }
.decide-primary:hover { background: var(--red-dark); }
.decide-secondary { padding: 12px 20px; background: none; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--ink-3); text-align: center; }

@media (max-width: 699px) {
  .pg-t { font-size: 20px; }
  .pg-s { margin-bottom: 16px; }
  .hb { flex-wrap: wrap; }
  .ov-grid { grid-template-columns: 1fr; gap: 0; }
  .dc-strip-line2 { display: block; }
  .dc-chev { display: block; }
  .dc.exp .dc-strip-line2 { display: none; }
  .dc.exp .dc-chev { transform: rotate(180deg); }
  .dc { border-radius: 0; box-shadow: none; border-left: none; border-right: none; border-bottom: none; }
  .dc:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .dc:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid var(--rule); }
  .dc-body, .dc-action { display: none; }
  .dc.exp .dc-body, .dc.exp .dc-action { display: flex; }
  .ck-row { flex-direction: column; gap: 10px; }
  .ck-verdict { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .ck-label { margin-top: 0; }
  .ck-bar { padding: 8px 16px; }
  .f-top { flex-direction: column; gap: 4px; }
  .xref { padding: 10px 14px; }
  .decide-btns { flex-direction: column; }
}

/* Full master reference class extract (design pass) */
.tl-hdr { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 24px; margin-bottom: 20px; }
.tl-hdr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tl-back { font-size: 13px; color: var(--ink-4); background: none; border: none; }
.tl-back:hover { color: var(--red); }
.tl-hdr-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tl-amount { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.tl-amount--green { color: var(--green); }
.tl-hdr-details { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; gap: 4px 16px; }
.tl-flow { display: flex; flex-direction: column; }
.tl-node { border-left: 3px solid var(--green-border); padding-left: 20px; padding-bottom: 20px; position: relative; }
.tl-node:last-child { padding-bottom: 0; }
.tl-node--done { border-left-color: var(--green-border); }
.tl-node--current { border-left-color: var(--amber); }
.tl-node--wait { border-left-color: var(--yel-border); border-left-style: dashed; }
.tl-node::before { content: ""; position: absolute; left: -7px; top: 18px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--white); z-index: 1; }
.tl-node--done::before { background: var(--green); }
.tl-node--current::before { background: #b8860b; }
.tl-node--wait::before { background: var(--yel-border); }
.tl-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.tl-card--wait { background: var(--yellow-bg); border: 1px dashed var(--yel-border); box-shadow: none; }
.tl-card-body { padding: 16px 20px; }
.tl-date { font-size: 12px; color: var(--ink-4); margin-bottom: 2px; }
.tl-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tl-card-sum { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; line-height: 1.5; }
.tl-exp { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--red); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 4px 12px; cursor: pointer; }
.tl-exp:hover { background: var(--red-bg); border-color: var(--red); }
.tl-action-bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--rule); background: var(--paper); flex-wrap: wrap; }
.tl-action-bar-text { flex: 1; font-size: 13px; color: var(--ink-3); }
.tl-action-bar-text strong { color: var(--ink-2); }
.tl-action-btn { padding: 8px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: none; background: var(--red); color: #fff; white-space: nowrap; }
.tl-action-btn:hover { background: var(--red-dark); }
.tl-findings { border-top: 1px solid var(--rule); }
.tf-row { padding: 12px 20px; border-bottom: 1px solid var(--rule); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tf-row:last-child { border-bottom: none; }
.tf-row--flag { background: var(--yellow-bg); }
.tf-name { font-weight: 600; font-size: 13px; }
.tf-badge { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.tf-badge--a { background: var(--yellow-bg); color: var(--amber); border: 1px solid var(--yel-border); }
.tf-badge--g { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.tf-desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.tf-ref { font-size: 11px; color: var(--ink-5); margin-top: 3px; }
.tf-amt { font-family: var(--font-display); font-size: 14px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.tf-amt--a { color: var(--amber); }
.tf-amt--g { color: var(--green); }
.tf-xref { padding: 10px 20px; background: var(--violet-bg); border-top: 1px solid var(--violet-bdr); font-size: 12px; color: var(--violet); line-height: 1.5; }
.tl-docs { border-top: 1px solid var(--rule); padding: 14px 20px; }
.tl-docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tl-doc { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; text-align: center; }
.tl-doc:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.tl-doc-icon { font-size: 20px; }
.tl-doc-name { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tl-doc-type { font-size: 10px; color: var(--ink-5); text-transform: uppercase; }
.tl-docs-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.vt-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0ede8; font-size: 14px; }
.vt-row:last-of-type { border-bottom: none; }
.vt-l { color: var(--ink-3); }
.vt-r { font-weight: 600; text-align: right; }
.vt-nk-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 12px; }
.vt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.vt-tag { font-size: 12px; padding: 4px 10px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-3); }
.xd-card { padding: 14px 16px; border-left: 3px solid var(--rule); margin-bottom: 10px; cursor: pointer; }
.xd-card:hover { box-shadow: var(--shadow-sm); border-left-color: var(--red); }
.xd-card--amber { border-left-color: #b8860b; }
.xd-card--green { border-left-color: var(--green); }
.xd-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.xd-detail { font-size: 12px; color: var(--ink-3); }
.xd-link { font-size: 11px; font-weight: 600; color: var(--red); margin-top: 6px; display: inline-block; }

.abo-modal__panel { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 72px); margin: 36px auto; }
.abo-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.abo-plan { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.abo-until { font-size: 14px; color: var(--ink-4); margin-top: 4px; }
.abo-badge { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.abo-section { margin-bottom: 24px; }
.abo-section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.abo-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0ede8; font-size: 14px; }
.abo-row:last-of-type { border-bottom: none; }
.abo-row span:first-child { color: var(--ink-3); }
.abo-row span:last-child { font-weight: 600; text-align: right; }
.abo-invoice { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #f0ede8; font-size: 13px; }
.abo-invoice:last-of-type { border-bottom: none; }
.btn-danger { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; text-align: center; border: 1px solid var(--red-border); background: var(--white); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }

@media (max-width: 699px) {
  .tl-hdr { padding: 14px 16px; }
  .tl-title { font-size: 18px; }
  .tl-amount { font-size: 17px; }
  .tl-hdr-details { font-size: 12px; }
  .tl-node { padding-left: 14px; padding-bottom: 16px; }
  .tl-card-body { padding: 12px 14px; }
  .tl-card-title { font-size: 14px; }
  .tl-action-bar { padding: 10px 14px; }
  .tl-action-btn { width: 100%; text-align: center; }
  .tf-row { padding: 10px 14px; flex-direction: column; gap: 4px; }
  .tf-xref { padding: 10px 14px; }
  .tl-docs { padding: 12px 14px; }
  .tl-docs-actions { flex-direction: column; }
  .dk-side { display: none !important; }
}
