/* Shared professional chart / meter chrome for tool pages */

.tool-chart-wrap {
    margin-top: 1.35rem;
    padding: 1.15rem 1.25rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tool-chart-wrap h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.tool-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.tool-chart-grid .tool-chart-wrap {
    margin-top: 0;
}

.tool-chart-wrap svg {
    display: block;
    margin: 0 auto;
}

.tool-meter {
    margin-top: 1.15rem;
    padding: 1rem 1.15rem 1.05rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tool-meter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.tool-meter-head strong {
    font-size: 0.9rem;
    color: #0f172a;
}

.tool-meter-head span {
    font-size: 0.85rem;
    color: #64748b;
}

.tool-meter-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f8fafc, #e2e8f0);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.tool-meter-fill {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #93c5fd 0%, #3b82f6 55%, #1d4ed8 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 4px 14px rgba(59, 130, 246, 0.28);
    transition: width 0.35s ease;
}

.tool-meter-fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #2563eb;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.tool-meter-fill--warm {
    background: linear-gradient(90deg, #fdba74 0%, #f59e0b 50%, #ea580c 100%);
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.12), 0 4px 14px rgba(245, 158, 11, 0.28);
}

.tool-meter-fill--warm::after {
    border-color: #ea580c;
}

.tool-meter-fill--risk {
    background: linear-gradient(90deg, #4ade80 0%, #fbbf24 45%, #f87171 100%);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12), 0 4px 14px rgba(245, 158, 11, 0.22);
}

.tool-meter-fill--risk::after {
    border-color: #ef4444;
}

.tool-meter-fill--retain {
    background: linear-gradient(90deg, #f87171 0%, #fbbf24 40%, #4ade80 100%);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12), 0 4px 14px rgba(34, 197, 94, 0.22);
}

.tool-meter-fill--retain::after {
    border-color: #16a34a;
}

.tool-meter-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: #94a3b8;
}
