/**
 * Tools & Analytics shells — People, Places, Capture, Coach (React v3)
 */
body.zl-people-v3,
body.zl-places-v3,
body.zl-capture-v3,
body.zl-coach-v3 {
    --zl-tools-accent: #7da82a;
    --zl-tools-lime: #c9ff57;
    --zl-tools-canvas: #f4f4f8;
}

body.zl-people-v3 .main-content,
body.zl-places-v3 .main-content,
body.zl-capture-v3 .main-content,
body.zl-coach-v3 .main-content {
    background: var(--zl-tools-canvas) !important;
}

body.zl-people-v3 .zl-shell-header .zl-display em,
body.zl-places-v3 .zl-shell-header .zl-display em,
body.zl-capture-v3 .zl-shell-header .zl-display em,
body.zl-coach-v3 .zl-shell-header .zl-display em {
    color: var(--zl-tools-accent);
    font-style: italic;
}

.zl-tools-demo-badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(201, 255, 87, 0.2);
    color: #3d5212;
    border: 1px solid rgba(125, 168, 42, 0.25);
}

.zl-tools-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-xl, 22px);
    background: linear-gradient(135deg, rgba(110, 181, 255, 0.12) 0%, rgba(201, 255, 87, 0.1) 55%, #fff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.zl-tools-hero--places {
    background: linear-gradient(135deg, rgba(87, 255, 212, 0.14) 0%, rgba(201, 255, 87, 0.08) 50%, #fff 100%);
}

.zl-tools-hero--coach {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.12) 0%, rgba(201, 255, 87, 0.1) 60%, #fff 100%);
}

.zl-tools-hero-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(from 220deg, #6eb5ff, var(--zl-tools-lime), rgba(110, 181, 255, 0.3));
    box-shadow: 0 0 32px rgba(110, 181, 255, 0.25);
    position: relative;
}

.zl-tools-hero-ring::before {
    content: '';
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
}

.zl-tools-hero-score {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: #1a1a1f;
}

.zl-tools-hero-title {
    margin: 0.2rem 0 0.45rem;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    color: #1a1a1f;
}

.zl-tools-hero-sub {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #6b7280;
    max-width: 36rem;
}

.zl-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.zl-tools-card {
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-lg, 18px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.zl-tools-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1f;
}

.zl-tools-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.zl-tools-card-note {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4b5563;
}

.zl-tools-pill {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: rgba(201, 255, 87, 0.35);
    color: #3d5212;
}

.zl-tools-count {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--zl-tools-accent);
}

.zl-tools-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1rem;
}

@media (max-width: 960px) {
    .zl-tools-layout {
        grid-template-columns: 1fr;
    }
}

.zl-tools-rail .zl-tools-card + .zl-tools-card {
    margin-top: 1rem;
}

.zl-tools-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.zl-tools-list li {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.zl-tools-list strong {
    display: block;
    font-size: 0.95rem;
}

.zl-tools-list span {
    font-size: 0.8rem;
    color: #6b7280;
}

.zl-tools-map {
    position: relative;
    min-height: 200px;
    border-radius: var(--radius-xl, 22px);
    background: linear-gradient(160deg, #e8f4e8 0%, #d4efe8 40%, #f0f4ff 100%);
    overflow: hidden;
    margin-bottom: 1rem;
}

.zl-tools-map-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--zl-tools-lime);
    border: 2px solid #3d5212;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.zl-tools-map-pin:nth-child(1) { top: 28%; left: 22%; }
.zl-tools-map-pin:nth-child(2) { top: 45%; left: 55%; }
.zl-tools-map-pin:nth-child(3) { top: 62%; left: 38%; }
.zl-tools-map-pin:nth-child(4) { top: 35%; left: 72%; }

.zl-tools-ask-row {
    margin-top: 1rem;
}

.zl-tools-ask-btn {
    margin-top: 0.5rem;
}

.zl-capture-v3 .zl-capture-panel {
    min-height: 200px;
}

.zl-capture-v3 .zl-capture-orb-wrap {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 1.25rem;
}

.zl-capture-v3 .capture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.zl-capture-live-card {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-xl, 22px);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.zl-coach-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.zl-coach-prompt {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 168, 42, 0.35);
    background: rgba(201, 255, 87, 0.15);
    color: #3d5212;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.zl-coach-prompt:hover {
    background: rgba(201, 255, 87, 0.35);
    transform: translateY(-1px);
}

.zl-coach-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

@media (max-width: 720px) {
    .zl-coach-insights {
        grid-template-columns: 1fr;
    }
}

.zl-coach-insight {
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.zl-coach-insight strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--zl-tools-accent);
}

.zl-coach-insight span {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
