/*
 * Lead-siden i admin (resources/views/filament/lead/*). Zuzana-tema: hvide kort,
 * bløde pink toner, Geist. Indlæses efter zuzana-admin.css.
 */

/* ---------- Hero ---------- */

.zz-hero {
    display: grid;
    grid-template-columns: auto minmax(200px, 0.8fr) minmax(380px, 1.9fr);
    gap: 2rem;
    align-items: center;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(at 0% 0%, #ffe3f1 0, transparent 55%),
        radial-gradient(at 100% 100%, #fff1f8 0, transparent 50%),
        #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), inset 0 0 0 1px rgb(17 24 39 / 0.06);
}

/* Laptop: score og Fit/Pain/Timing øverst, nøgletallene i fuld bredde under (i stedet for en klemt 2 × 2). */
@media (max-width: 1600px) {
    .zz-hero { grid-template-columns: auto 1fr; gap: 1.25rem 2rem; padding: 1.5rem; }
    .zz-facts { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .zz-hero { grid-template-columns: 1fr; justify-items: stretch; }
    .zz-hero-score { flex-direction: row; justify-content: flex-start; }
}

.zz-hero-score { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

.zz-ring {
    --zz-ring-color: #d1d5db;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--zz-ring-color) calc(var(--zz-ring) * 1%), #f3f4f6 0);
}

.zz-ring.zz-level-high { --zz-ring-color: var(--zz-pink-500); }
.zz-ring.zz-level-mid { --zz-ring-color: #f9a8d4; }
.zz-ring.zz-level-low { --zz-ring-color: #d1d5db; }

.zz-ring-inner {
    width: 6.1rem;
    height: 6.1rem;
    border-radius: 9999px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.zz-ring-value { font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--zz-ink); }
.zz-ring-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; margin-top: 0.2rem; }

.zz-hero-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }

.zz-tier,
.zz-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.zz-tier-a { background: #fce7f3; color: #be185d; }
.zz-tier-b { background: #e0f2fe; color: #0369a1; }
.zz-tier-c { background: #fef3c7; color: #92400e; }
.zz-tier-none { background: #f3f4f6; color: #6b7280; }

.zz-pill-success { background: #dcfce7; color: #166534; }
.zz-pill-danger { background: #fee2e2; color: #991b1b; }
.zz-pill-warning { background: #fff7ed; color: #9a3412; }

/* Fit / Pain / Timing */
.zz-hero-dims { display: flex; flex-direction: column; gap: 0.9rem; }
.zz-dim-head { display: flex; justify-content: space-between; align-items: baseline; }
.zz-dim-label { font-weight: 600; color: var(--zz-ink); }
.zz-dim-value { font-weight: 700; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-dim-hint { font-size: 0.75rem; color: #9ca3af; }

.zz-bar {
    height: 0.5rem;
    border-radius: 9999px;
    background: #f3f4f6;
    overflow: hidden;
    margin: 0.3rem 0 0.2rem;
}

.zz-bar-thin { height: 0.3rem; }

.zz-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #d1d5db;
}

.zz-bar-fill.zz-dim-fit { background: linear-gradient(to right, #c4b5fd, #8b5cf6); }
.zz-bar-fill.zz-dim-pain { background: linear-gradient(to right, var(--zz-pink-400), var(--zz-pink-500)); }
.zz-bar-fill.zz-dim-timing { background: linear-gradient(to right, #6ee7b7, #10b981); }
.zz-bar-fill.zz-level-high { background: var(--zz-pink-500); }
.zz-bar-fill.zz-level-mid { background: #f9a8d4; }
.zz-bar-fill.zz-level-low { background: #d1d5db; }
.zz-coverage-fill { background: #6b7280; }
.zz-coverage-fill.zz-warn { background: #f59e0b; }

.zz-coverage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
    padding-top: 0.6rem;
    border-top: 1px dashed #e5e7eb;
}

.zz-coverage .zz-bar { margin: 0; }
.zz-coverage strong { color: var(--zz-ink); }

/* Nøgletal */
.zz-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 0.6rem;
    margin: 0;
}

@media (max-width: 640px) {
    .zz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.zz-fact {
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: rgb(255 255 255 / 0.8);
    box-shadow: inset 0 0 0 1px rgb(17 24 39 / 0.06);
    min-width: 0;
}

.zz-fact dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; font-weight: 600; }
.zz-fact dd { margin: 0.2rem 0 0; font-weight: 700; color: var(--zz-ink); font-size: 0.98rem; line-height: 1.3; overflow-wrap: anywhere; }
.zz-fact span { display: block; font-size: 0.75rem; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zz-fact.zz-muted dd { color: #d1d5db; font-weight: 600; }

/* Højre side af hero: tre store nøgletal + kompakte chips */
.zz-hero-right { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
@media (max-width: 1600px) {
    .zz-hero-right { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px dashed #e5e7eb; }
    .zz-hero-dims { max-width: 40rem; }
}

.zz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
@media (max-width: 900px) { .zz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .zz-kpis { grid-template-columns: 1fr; } }

.zz-kpi {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgb(255 255 255 / 0.85);
    box-shadow: inset 0 0 0 1px rgb(17 24 39 / 0.06);
    min-width: 0;
}

.zz-kpi dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; font-weight: 600; }
.zz-kpi dd { margin: 0.15rem 0 0; font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: var(--zz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zz-kpi span { display: block; margin-top: 0.1rem; font-size: 0.75rem; color: #9ca3af; }
.zz-kpi.zz-muted dd { color: #d1d5db; font-size: 1.1rem; }

.zz-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }

.zz-tags li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.85);
    box-shadow: inset 0 0 0 1px rgb(17 24 39 / 0.06);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--zz-ink);
    white-space: nowrap;
    cursor: default;
}

.zz-tags li span { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }

/* ---------- Callouts og chips ---------- */

.zz-callout {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.85rem;
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    font-size: 0.875rem;
    color: #374151;
}

.zz-callout strong { color: var(--zz-ink); margin-right: 0.35rem; }
.zz-callout ul { margin: 0.35rem 0 0; padding-left: 1.1rem; list-style: disc; }
.zz-callout li { margin: 0.1rem 0; }
.zz-callout-warning { background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; }
.zz-callout-danger { background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; }
.zz-callout-info { background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }
.zz-callout-sm { margin: 0.75rem 0; padding: 0.6rem 0.8rem; font-size: 0.8rem; }

.zz-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.zz-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.35rem;
    white-space: nowrap;
}

.zz-chips .zz-chip { margin-left: 0; }
.zz-chip-pink { background: #fce7f3; color: #be185d; }
.zz-chip-warning { background: #fef3c7; color: #92400e; }

/* ---------- Kort ---------- */

.zz-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), inset 0 0 0 1px rgb(17 24 39 / 0.06);
}

.zz-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.zz-card-head h3 { font-weight: 700; font-size: 1rem; color: var(--zz-ink); }
.zz-count { font-size: 0.8rem; font-weight: 600; color: #9ca3af; }

.zz-two-col,
.zz-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .zz-two-col,
    .zz-signal-grid { grid-template-columns: 1fr; }
}

/* Signal-fanen: to selvstændige kolonner, så korte bokse ikke efterlader huller ved siden af høje. */
.zz-signal-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.zz-empty { font-size: 0.875rem; color: #9ca3af; }

.zz-evidence { font-size: 0.78rem; color: #6b7280; margin-top: 0.25rem; word-break: break-word; }
.zz-evidence a { color: #6b7280; text-decoration: underline; text-decoration-color: #e5e7eb; text-underline-offset: 2px; }
.zz-list a { color: var(--zz-ink); font-weight: 500; }
.zz-evidence a:hover,
.zz-list a:hover { color: var(--zz-pink-600); text-decoration: underline; text-decoration-color: currentColor; }

/* ---------- Signaler ---------- */

.zz-score-pill {
    min-width: 2.4rem;
    text-align: center;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    background: #f3f4f6;
    color: #4b5563;
}

.zz-score-pill.zz-level-high { background: #fce7f3; color: #be185d; }
.zz-score-pill.zz-level-mid { background: #fdf2f8; color: #db2777; }

.zz-signal { padding: 0.8rem 0; border-top: 1px solid #f3f4f6; }
.zz-card-head + .zz-signal { border-top: 0; padding-top: 0; }
.zz-signal-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.zz-signal-name { font-weight: 600; color: var(--zz-ink); font-size: 0.9rem; }

.zz-key {
    display: inline-block;
    min-width: 2rem;
    margin-right: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.zz-signal-score { font-weight: 700; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-signal-score s { color: #d1d5db; font-weight: 500; margin-right: 0.25rem; }
.zz-signal-summary { font-size: 0.875rem; color: #374151; margin-top: 0.25rem; }
.zz-override-note { font-size: 0.75rem; color: #be185d; margin-top: 0.25rem; }
.zz-ignored { opacity: 0.55; }
.zz-ignored .zz-signal-summary { text-decoration: line-through; }

/* Kompakte signalrækker */
.zz-srow { border-top: 1px solid #f3f4f6; }
.zz-card-head + .zz-srow { border-top: 0; }

.zz-srow summary {
    display: grid;
    grid-template-columns: minmax(8rem, 0.9fr) minmax(0, 1.4fr) 6.5rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.35rem;
    margin: 0 -0.35rem;
    border-radius: 0.6rem;
    cursor: pointer;
    list-style: none;
}

.zz-srow summary::-webkit-details-marker { display: none; }
.zz-srow summary:hover { background: #fdf8fb; }
.zz-srow[open] summary { background: #fdf2f8; }

.zz-srow-name { font-weight: 600; font-size: 0.875rem; color: var(--zz-ink); }
.zz-srow-flag { margin-left: 0.25rem; color: #be185d; font-size: 0.8rem; }
.zz-srow-value { font-size: 0.85rem; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zz-srow-score { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.zz-srow-score b { min-width: 1.75rem; text-align: right; font-size: 0.875rem; color: var(--zz-ink); }
.zz-srow-na { color: #d1d5db; }
.zz-minitrack { width: 3.5rem; height: 0.3rem; border-radius: 9999px; background: #f3f4f6; overflow: hidden; display: block; }

.zz-srow-detail { padding: 0.35rem 0.35rem 0.75rem; font-size: 0.78rem; color: #6b7280; word-break: break-word; }
.zz-srow-detail a { color: #6b7280; text-decoration: underline; text-decoration-color: #e5e7eb; text-underline-offset: 2px; }
.zz-srow-detail a:hover { color: var(--zz-pink-600); }
.zz-srow-detail .zz-key { margin-right: 0.4rem; }

@media (max-width: 640px) {
    .zz-srow summary { grid-template-columns: 1fr auto; }
    .zz-srow-value { grid-column: 1 / -1; grid-row: 2; }
}

.zz-missing {
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.75rem;
    color: #9ca3af;
}

.zz-missing span { font-weight: 600; color: #6b7280; }

/* ---------- Selskab ---------- */

.zz-entity-name { font-size: 1.1rem; font-weight: 700; color: var(--zz-ink); }
.zz-entity-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.25rem; font-size: 0.82rem; color: #6b7280; }

.zz-table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.zz-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; font-weight: 600; padding: 0.4rem 0.5rem; border-bottom: 1px solid #f3f4f6; }
.zz-table td { padding: 0.5rem; border-bottom: 1px solid #f9fafb; color: #374151; white-space: nowrap; }
.zz-table td:first-child,
.zz-table th:first-child { padding-left: 0; font-weight: 600; color: var(--zz-ink); }
.zz-table td.zz-negative { color: #dc2626; }

.zz-person { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid #f3f4f6; }
.zz-card-head + .zz-person { border-top: 0; }

.zz-avatar {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
    font-weight: 700;
    font-size: 0.8rem;
}

.zz-person-name { font-weight: 600; color: var(--zz-ink); font-size: 0.9rem; }
.zz-person-role { font-size: 0.78rem; color: #6b7280; }

.zz-ai-hook { margin-top: 0; background: linear-gradient(135deg, #fdf2f8, #fff); box-shadow: inset 0 0 0 1px #fbcfe8; }
.zz-ai-hook strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #be185d; margin-bottom: 0.2rem; }
.zz-ai-summary { margin: 0.85rem 0 0.25rem; }
.zz-conf-high { background: #dcfce7; color: #166534; }
.zz-conf-medium { background: #e0f2fe; color: #0369a1; }
.zz-conf-low,
.zz-conf-unknown { background: #f3f4f6; color: #9ca3af; }

.zz-kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; font-size: 0.85rem; }
.zz-kv dt { color: #9ca3af; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.1rem; }
.zz-kv dd { margin: 0; color: #374151; word-break: break-word; }

/* ---------- Markeder ---------- */

.zz-market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.zz-market { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 0.75rem; background: #f9fafb; min-width: 0; }

.zz-market-code {
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--zz-ink);
}

.zz-market > div { min-width: 0; }
.zz-market-name { font-size: 0.85rem; font-weight: 600; color: var(--zz-ink); }
.zz-market-where { font-size: 0.72rem; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Lister ---------- */

.zz-list { display: flex; flex-direction: column; }
.zz-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; padding: 0.5rem 0; border-top: 1px solid #f3f4f6; font-size: 0.875rem; }
.zz-list li:first-child { border-top: 0; }
.zz-list-meta { margin-left: auto; font-size: 0.75rem; color: #9ca3af; }

.zz-job-list li.zz-job-cs {
    background: linear-gradient(to right, #fdf2f8, transparent);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.5rem;
}

.zz-details { margin-top: 0.75rem; }
.zz-details summary { cursor: pointer; font-size: 0.8rem; color: #6b7280; font-weight: 600; }
.zz-details summary:hover { color: var(--zz-pink-600); }

/* ---------- Rettelser ---------- */

.zz-override { padding: 0.7rem 0; border-top: 1px solid #f3f4f6; }
.zz-card-head + .zz-override { border-top: 0; padding-top: 0; }
.zz-override-what { font-weight: 600; color: var(--zz-ink); font-size: 0.9rem; }

/* ---------- Datakilder (berigelsesstatus) ---------- */

.zz-sources-status { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

.zz-enrich-complete { background: #dcfce7; color: #166534; }
.zz-enrich-partial { background: #fef3c7; color: #92400e; }
.zz-enrich-failed,
.zz-enrich-stalled { background: #fee2e2; color: #991b1b; }
.zz-enrich-queued,
.zz-enrich-running { background: #e0f2fe; color: #0369a1; }
.zz-enrich-idle { background: #f3f4f6; color: #6b7280; }

.zz-spinner {
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.35rem;
    border-radius: 9999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: zz-spin 0.8s linear infinite;
}

@keyframes zz-spin { to { transform: rotate(360deg); } }

.zz-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }

@media (max-width: 1100px) { .zz-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .zz-source-grid { grid-template-columns: 1fr; } }

.zz-source {
    display: flex;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    background: #f9fafb;
    min-width: 0;
}

.zz-source-dot { flex: none; width: 0.6rem; height: 0.6rem; margin-top: 0.35rem; border-radius: 9999px; background: #d1d5db; }
.zz-source-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.zz-source-label { font-weight: 600; font-size: 0.875rem; color: var(--zz-ink); }
.zz-source-state { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; white-space: nowrap; }
.zz-source-note { font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem; }

.zz-source-done .zz-source-dot { background: #22c55e; }
.zz-source-done .zz-source-state { color: #15803d; }
.zz-source-partial .zz-source-dot,
.zz-source-awaiting_access .zz-source-dot { background: #f59e0b; }
.zz-source-partial .zz-source-state,
.zz-source-awaiting_access .zz-source-state { color: #b45309; }
.zz-source-blocked .zz-source-dot { background: #ef4444; }
.zz-source-blocked .zz-source-state { color: #b91c1c; }
.zz-source-blocked { background: #fef2f2; }
.zz-source-awaiting_access { background: #fffbeb; }

.fi-in-entry:has(.zz-sources) { margin-top: -0.25rem; }

/* Dashboard: berigelse */
.zz-enrich-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 900px) { .zz-enrich-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.zz-enrich-count { display: flex; flex-direction: column; padding: 0.7rem 0.85rem; border-radius: 0.85rem; background: #f9fafb; }
.zz-enrich-count-value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-enrich-count-label { font-size: 0.75rem; color: #6b7280; font-weight: 600; }
.zz-enrich-count-complete .zz-enrich-count-value { color: #15803d; }
.zz-enrich-count-partial .zz-enrich-count-value { color: #b45309; }
.zz-enrich-count-working .zz-enrich-count-value { color: #0369a1; }
.zz-enrich-count-failed .zz-enrich-count-value { color: #b91c1c; }

.zz-gaps { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px dashed #e5e7eb; display: flex; flex-direction: column; gap: 0.4rem; }
.zz-gaps-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: #9ca3af; }
.zz-gap { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: #374151; }
.zz-gap-count { min-width: 1.8rem; text-align: center; padding: 0.05rem 0.45rem; border-radius: 9999px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 0.8rem; }

/* ---------- Score i lister (leads-tabel og dashboard) ---------- */

.zz-score-cell { display: flex; align-items: center; gap: 0.75rem; min-width: 9rem; }

.zz-score-num {
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #f3f4f6;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.zz-score-num.zz-level-high { background: #fce7f3; color: #be185d; }
.zz-score-num.zz-level-mid { background: #fdf2f8; color: #db2777; }

.zz-minibars { display: flex; flex-direction: column; gap: 0.2rem; width: 5.5rem; }
.zz-minibars-wide { width: 8rem; flex: none; }
.zz-minibar { display: flex; align-items: center; gap: 0.35rem; }
.zz-minibar-label { width: 0.6rem; font-size: 0.6rem; font-weight: 700; color: #9ca3af; }
.zz-minibar-track { flex: 1; height: 0.25rem; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }

/* ---------- Dashboard ---------- */

.zz-dash { display: flex; flex-direction: column; gap: 1rem; }

.zz-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

@media (max-width: 900px) {
    .zz-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.zz-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), inset 0 0 0 1px rgb(17 24 39 / 0.06);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.zz-stat:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgb(236 72 153 / 0.25), inset 0 0 0 1px #fbcfe8; }

.zz-stat-accent {
    background:
        radial-gradient(at 0% 0%, #ffe3f1 0, transparent 60%),
        radial-gradient(at 100% 100%, #fdf2f8 0, transparent 60%),
        #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), inset 0 0 0 1px #fbcfe8;
}

.zz-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: #9ca3af; }
.zz-stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-stat-accent .zz-stat-value { color: #be185d; }
.zz-stat-hint { font-size: 0.8rem; color: #6b7280; }

.zz-tier-row { display: grid; grid-template-columns: 4.5rem 1fr 2rem; align-items: center; gap: 0.75rem; padding: 0.4rem 0; }
.zz-tier-row .zz-bar { margin: 0; }
.zz-tier-row strong { text-align: right; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-tierbar-a { background: var(--zz-pink-500); }
.zz-tierbar-b { background: #38bdf8; }
.zz-tierbar-c { background: #fbbf24; }

.zz-quality { display: flex; align-items: center; gap: 1.25rem; }
.zz-ring-sm { width: 5.5rem; height: 5.5rem; flex: none; }
.zz-ring-sm .zz-ring-inner { width: 4.4rem; height: 4.4rem; }
.zz-ring-sm .zz-ring-value { font-size: 1.25rem; }

.zz-link { font-size: 0.85rem; font-weight: 600; color: var(--zz-pink-600); }
.zz-link:hover { text-decoration: underline; }

.zz-queue-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.6rem;
    margin: 0 -0.6rem;
    border-radius: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.zz-card-head + .zz-queue-row { border-top: 0; }
.zz-queue-row:hover { background: #fdf8fb; }
.zz-queue-main { flex: 1; min-width: 0; }
.zz-queue-name { font-weight: 600; color: var(--zz-ink); display: flex; align-items: center; gap: 0.5rem; }
.zz-queue-meta { font-size: 0.8rem; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zz-queue-reason { color: #92400e; }

.zz-subhead { margin: 1.1rem 0 0.4rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; }
.zz-person-role a { color: inherit; text-decoration: underline; text-decoration-color: #e5e7eb; text-underline-offset: 2px; }
.zz-person-role a:hover { color: var(--zz-pink-600); }

/* Genveje til offentlige profiler i hero */
.zz-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.zz-links a { font-size: 0.8rem; font-weight: 600; color: #6b7280; text-decoration: none; }
.zz-links a:hover { color: var(--zz-pink-600); }

/* AI-fanen: tabellen holder sig inden for kortet, lange værdier ombrydes */
.zz-two-col > * { min-width: 0; }
.zz-ai-table { width: 100%; table-layout: fixed; }
.zz-ai-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.zz-ai-table td:first-child { width: 34%; }
.zz-ai-table td:last-child { width: 5.5rem; text-align: right; }

.zz-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.zz-suggestion .zz-chip { margin-left: 0.25rem; vertical-align: 1px; }
.zz-suggestion-meta { display: block; margin-top: 0.2rem; color: #6b7280; font-size: 0.78rem; }
.zz-suggestion .fi-btn { flex-shrink: 0; }
@media (max-width: 640px) { .zz-suggestion { flex-direction: column; align-items: stretch; } }

/* ---------- Feedback-siden ---------- */

.zz-feedback { display: flex; flex-direction: column; gap: 1.25rem; }
.zz-feedback .zz-muted { color: #9ca3af; font-weight: 500; }
.zz-card-sub { margin-top: 0.2rem; font-size: 0.82rem; color: #6b7280; max-width: 46rem; }
.zz-feedback .zz-card-head { align-items: flex-start; }
.zz-fb-subhead { margin: 1.5rem 0 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.zz-fb-note { font-size: 0.8rem; color: #6b7280; margin: -0.2rem 0 0.75rem; }
.zz-fb-nodata { margin: 0.9rem 0 0; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: #f9fafb; }
.zz-fb-footnote { margin: 1rem 0 0; font-size: 0.75rem; color: #9ca3af; }

/* Tragt: resultater fra Attio */
.zz-fb-funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.zz-fb-step { display: flex; flex-direction: column; padding: 0.75rem 0.85rem; border-radius: 0.75rem; background: #f9fafb; min-width: 0; }
.zz-fb-step:first-child { background: #fdf2f8; }
.zz-fb-step-value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-fb-step-label { margin-top: 0.2rem; font-size: 0.78rem; font-weight: 600; color: #374151; }
.zz-fb-step-hint { font-size: 0.7rem; color: #9ca3af; }
@media (max-width: 1100px) { .zz-fb-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zz-fb-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.zz-fb-ready { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 0.75rem; background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; }
.zz-fb-ready-text { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.82rem; color: #78350f; }
.zz-fb-ready-text strong { color: #92400e; font-size: 0.88rem; }
.zz-fb-ready-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.zz-fb-ready-head { display: flex; justify-content: space-between; font-size: 0.75rem; color: #92400e; }
.zz-fb-ready .zz-bar { background: #fef3c7; margin: 0.25rem 0 0; }
@media (max-width: 760px) { .zz-fb-ready { grid-template-columns: 1fr; gap: 0.8rem; } }

/* Rækker med vandret søjle (tier → mødeandel, afslagsårsager) */
.zz-fb-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.zz-fb-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 3rem 5rem; gap: 0.75rem; align-items: center; font-size: 0.85rem; }
.zz-fb-row .zz-bar { margin: 0; }
.zz-fb-row strong { text-align: right; font-variant-numeric: tabular-nums; color: var(--zz-ink); }
.zz-fb-row-label { color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zz-fb-diff { display: inline-flex; justify-content: center; min-width: 2.9rem; padding: 0.15rem 0.5rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; background: #f3f4f6; color: #4b5563; }
.zz-fb-diff.is-up { background: #dcfce7; color: #166534; }
.zz-fb-diff.is-down { background: #fee2e2; color: #991b1b; }

.zz-fb-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; margin-right: 0.4rem; vertical-align: 1px; background: #d1d5db; }
.zz-fb-dot-fit { background: #8b5cf6; }
.zz-fb-dot-pain { background: var(--zz-pink-500); }
.zz-fb-dot-timing { background: #10b981; }

/* Backtest: nøgletal */
.zz-fb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.zz-fb-kpi { display: flex; flex-direction: column; padding: 0.9rem 1rem; border-radius: 0.75rem; background: #f9fafb; }
.zz-fb-kpi:first-child { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.zz-fb-kpi-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; }
.zz-fb-kpi-value { margin-top: 0.25rem; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-fb-kpi:first-child .zz-fb-kpi-value { color: var(--zz-pink-600); }
.zz-fb-kpi-hint { margin-top: 0.35rem; font-size: 0.78rem; color: #6b7280; }
.zz-fb-kpi-hint strong { color: var(--zz-ink); }
@media (max-width: 760px) { .zz-fb-kpis { grid-template-columns: 1fr; } }

/* Backtest: tierfordeling som stablede søjler */
.zz-fb-stack-group { display: flex; flex-direction: column; gap: 0.55rem; }
.zz-fb-stack-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.75rem; align-items: center; }
.zz-fb-stack-label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.zz-fb-stack { display: flex; height: 1.6rem; border-radius: 0.5rem; overflow: hidden; background: #f3f4f6; gap: 2px; }
.zz-fb-seg { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.zz-fb-seg-a { background: #f9a8d4; color: #831843; }
.zz-fb-seg-b { background: #bae6fd; color: #075985; }
.zz-fb-seg-c { background: #fde68a; color: #78350f; }
.zz-fb-seg-none { background: #e5e7eb; color: #4b5563; }
.zz-fb-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-left: 9.75rem; font-size: 0.75rem; color: #6b7280; }
.zz-fb-legend i { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 0.2rem; margin-right: 0.35rem; vertical-align: -1px; }
@media (max-width: 640px) {
    .zz-fb-stack-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .zz-fb-legend { margin-left: 0; }
}

/* Backtest: signaler som parvise søjler */
.zz-fb-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.75rem; }
.zz-fb-signal { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.35rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid #f3f4f6; }
.zz-fb-signal-name { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--zz-ink); }
.zz-fb-signal-name .zz-fb-dot { margin-right: 0; }
.zz-fb-signal-name .zz-muted { font-size: 0.75rem; }
.zz-fb-pair { display: flex; flex-direction: column; gap: 0.3rem; }
.zz-fb-pair-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 1.75rem; gap: 0.5rem; align-items: center; font-size: 0.75rem; color: #6b7280; }
.zz-fb-pair-row .zz-bar { margin: 0; }
.zz-fb-pair-value { text-align: right; font-weight: 600; color: #374151; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .zz-fb-signals { grid-template-columns: 1fr; } }

/* Backtest: kundeliste */
.zz-fb-details { margin-top: 1.25rem; border-radius: 0.75rem; box-shadow: inset 0 0 0 1px #f3f4f6; }
.zz-fb-details summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--zz-ink); list-style: none; }
.zz-fb-details summary::-webkit-details-marker { display: none; }
.zz-fb-details summary::after { content: '▾'; color: #9ca3af; margin-left: auto; transition: transform 0.15s; }
.zz-fb-details[open] summary::after { transform: rotate(180deg); }
.zz-fb-details summary .zz-muted { font-size: 0.78rem; }
.zz-fb-customers { padding: 0 1rem 0.5rem; }
.zz-fb-customer { display: grid; grid-template-columns: minmax(0, 1.6fr) 5.5rem 3rem 11rem minmax(0, 1.2fr); gap: 0.75rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid #f3f4f6; font-size: 0.85rem; }
.zz-fb-customer-name { display: flex; flex-direction: column; min-width: 0; }
.zz-fb-customer-name strong { color: var(--zz-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zz-fb-customer-name .zz-muted { font-size: 0.75rem; }
.zz-fb-customer .zz-tier { justify-self: start; }
.zz-fb-customer-score { font-weight: 700; color: var(--zz-ink); text-align: right; font-variant-numeric: tabular-nums; }
.zz-fb-customer-dims { display: grid; grid-template-columns: repeat(3, 3.6rem); font-size: 0.78rem; color: #4b5563; font-variant-numeric: tabular-nums; }
.zz-fb-customer-head { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #9ca3af; border-top: 0; padding-bottom: 0.2rem; }
.zz-fb-customer-head .zz-fb-customer-dims { font-size: 0.68rem; color: #9ca3af; }
.zz-fb-customer-head > span:nth-child(3) { text-align: right; }
.zz-fb-customer-dims .zz-fb-dot { margin-right: 0.25rem; }
.zz-fb-customer-note { font-size: 0.75rem; color: #9ca3af; }
@media (max-width: 900px) {
    .zz-fb-customer { grid-template-columns: minmax(0, 1fr) auto auto; }
    .zz-fb-customer-dims, .zz-fb-customer-note { grid-column: 1 / -1; }
    .zz-fb-customer-head { display: none; }
}

.zz-fb-table td:first-child { white-space: normal; }

/* AI research på dashboardet */
.zz-ai-limit { margin-bottom: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.zz-ai-limit-text { font-size: 0.875rem; color: #374151; }
.zz-ai-limit-text .zz-muted { color: #9ca3af; }
.zz-ai-bar { height: 0.5rem; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.zz-ai-bar span { display: block; height: 100%; border-radius: 9999px; background: #0ea5e9; }
.zz-ai-foot { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px dashed #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.zz-ai-foot .zz-muted { color: #6b7280; }

/* Model 1.2: hvorfor leadet har sin tier (volumen og værdi) */
.zz-priority { margin-top: 0.6rem; font-size: 0.8rem; color: #374151; line-height: 1.5; }
.zz-priority strong { color: var(--zz-ink); }
.zz-priority.zz-muted { color: #9ca3af; }

/* ---------- Imports ---------- */

.zz-stat-static:hover { transform: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), inset 0 0 0 1px rgb(17 24 39 / 0.06); }

.zz-import-note { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.85rem; color: #6b7280; }
.zz-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #d1d5db; flex: none; }
.zz-dot-live { background: var(--zz-pink-500); box-shadow: 0 0 0 0 rgb(236 72 153 / 0.5); animation: zz-pulse 1.8s ease-out infinite; }
@keyframes zz-pulse { to { box-shadow: 0 0 0 0.45rem rgb(236 72 153 / 0); } }
@media (prefers-reduced-motion: reduce) { .zz-dot-live { animation: none; } }

.zz-import-result { display: flex; flex-direction: column; gap: 0.4rem; min-width: 11rem; max-width: 22rem; }
.zz-import-bar { display: flex; height: 0.45rem; border-radius: 9999px; background: #f3f4f6; overflow: hidden; }
.zz-import-seg { display: block; height: 100%; }
.zz-import-seg.zz-import-new { background: var(--zz-pink-500); }
.zz-import-seg.zz-import-updated { background: #c4b5fd; }
.zz-import-seg.zz-import-skipped { background: #fcd34d; }
.zz-import-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.8rem; color: #6b7280; }
.zz-import-key { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.zz-import-key strong { color: var(--zz-ink); font-variant-numeric: tabular-nums; }
.zz-import-key i { width: 0.5rem; height: 0.5rem; border-radius: 9999px; }
.zz-import-key.zz-import-new i { background: var(--zz-pink-500); }
.zz-import-key.zz-import-updated i { background: #c4b5fd; }
.zz-import-key.zz-import-skipped i { background: #fcd34d; }
.zz-import-key.zz-import-skipped[title] { cursor: help; text-decoration: underline dotted #d1d5db; text-underline-offset: 3px; }

/* ---------- Settings ---------- */

.zz-settings-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .zz-settings-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .zz-settings-overview { grid-template-columns: 1fr; } }

.zz-settings-card { min-width: 0; }
.zz-settings-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.zz-settings-card-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--zz-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.zz-state { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.55rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.zz-state::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 9999px; background: currentColor; }
.zz-state-ok { background: #dcfce7; color: #166534; }
.zz-state-warn { background: #fef3c7; color: #92400e; }
.zz-state-off { background: #f3f4f6; color: #6b7280; }

/* ---------- Investors (ejere og fonde) ---------- */

.zz-owner { display: flex; flex-direction: column; gap: 1rem; }
.zz-owner-summary { margin: 0 0 0.6rem; color: #374151; line-height: 1.55; }
.zz-muted-text { margin: 0.25rem 0 0; font-size: 0.85rem; color: #9ca3af; }

.zz-owner-lead {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 6.5rem 9rem 4.5rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid #f3f4f6;
    color: inherit;
}
.zz-card-head + .zz-owner-lead { border-top: 0; }
.zz-owner-lead:hover strong { color: #be185d; }
.zz-owner-lead-name { display: flex; flex-direction: column; min-width: 0; }
.zz-owner-lead-name strong { color: var(--zz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zz-owner-lead-name small { color: #9ca3af; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zz-owner-lead-prio { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--zz-ink); }
.zz-owner-lead-attio { font-size: 0.75rem; color: #6b7280; }
.zz-owner-lead .zz-pill { justify-self: start; }
@media (max-width: 900px) {
    .zz-owner-lead { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
    .zz-owner-lead .zz-pill, .zz-owner-lead-attio { display: none; }
}

.zz-owner-rel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid #f3f4f6; }
.zz-card-head + .zz-owner-rel { border-top: 0; }
.zz-owner-rel a strong { color: var(--zz-ink); }
.zz-owner-rel a:hover strong { color: #be185d; }
.zz-owner-rel small { grid-column: 1; font-size: 0.78rem; color: #6b7280; }
.zz-owner-rel small a { color: #6b7280; text-decoration: underline; text-underline-offset: 2px; }
.zz-owner-rel .zz-pill { grid-row: 1 / span 2; grid-column: 2; }

.zz-owner-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.zz-owner-plan > div { padding: 0.75rem 0.9rem; border-radius: 0.85rem; background: #f9fafb; box-shadow: inset 0 0 0 1px rgb(17 24 39 / 0.05); }
.zz-owner-plan strong { display: block; font-size: 1.4rem; color: var(--zz-ink); }
.zz-owner-plan span { font-size: 0.78rem; color: #6b7280; }
.zz-owner-plan .zz-owner-plan-new { background: #fdf2f8; box-shadow: inset 0 0 0 1px #fbcfe8; }
.zz-owner-plan .zz-owner-plan-new strong { color: #be185d; }
@media (max-width: 640px) { .zz-owner-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.zz-owner-companies { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.zz-owner-company { display: inline-flex; gap: 0.35rem; align-items: baseline; padding: 0.3rem 0.65rem; border-radius: 9999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(17 24 39 / 0.08); font-size: 0.78rem; color: #6b7280; }
.zz-owner-company strong { color: var(--zz-ink); font-weight: 600; }

/* Ownership-boksen på leadet */
.zz-ownership-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; margin: 0.5rem 0 0; padding-top: 0.6rem; border-top: 1px dashed #e5e7eb; font-size: 0.85rem; color: #6b7280; }
.zz-ownership-top a { color: var(--zz-ink); font-weight: 600; }
.zz-ownership-top a:hover { color: #be185d; }

/* Varmt lead: søsterselskab til en kunde */
.zz-callout-success { background: #f0fdf4; box-shadow: inset 0 0 0 1px #bbf7d0; }
.zz-callout-success a { color: #166534; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
