.result-value-lg { font-weight: 700; color: #2c3e50; font-size: 2.4rem; }
        .valuation-badge { display: inline-block; padding: 0.25rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.85rem; }
        .valuation-badge.high { background-color: #d4edda; color: #155724; }
        .valuation-badge.medium { background-color: #fff3cd; color: #856404; }
        .valuation-badge.low { background-color: #f8d7da; color: #721c24; }
        .deep-dive { margin: 1.8rem 0; }
        .deep-dive p { text-align: justify; }
        .unit-note { font-size: 0.9rem; color: #6c757d; }
        .chart-container-sm { height: 220px; }
        .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 1.5rem 0; }
        .metric-card { background: #f8f9fa; border-radius: 8px; padding: 0.8rem; text-align: center; border: 1px solid #e9ecef; position: relative; }
        .metric-card .metric-value { font-size: 1.4rem; font-weight: 700; color: var(--primary-color); }
        .metric-card .metric-label { font-size: 0.75rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; }
        .confidence-bar { height: 6px; border-radius: 3px; background: #e9ecef; margin-top: 0.5rem; overflow: hidden; }
        .confidence-bar .fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #28a745, #20c997); transition: width 0.6s ease; }
        .related-tools-container .related-tools-container .input-group-custom { margin-bottom: 0.75rem; }
        .form-label .fa-regular, .form-label .fa-solid { margin-right: 6px; color: var(--primary-color); }
        .badge-multiple { background: #e9ecef; color: #495057; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem; }
        .value-breakdown { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; padding: 1rem 0; }
        .value-breakdown .item { text-align: center; min-width: 100px; }
        .value-breakdown .item .number { font-size: 1.6rem; font-weight: 700; color: var(--primary-color); }
        .value-breakdown .item .label { font-size: 0.8rem; color: #6c757d; }
        .history-container { max-height: 180px; overflow-y: auto; margin-top: 1rem; }
        .history-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: #f8f9fa; border-radius: 6px; margin-bottom: 0.4rem; font-size: 0.9rem; border-left: 3px solid var(--primary-color); flex-wrap: wrap; }
        .history-item .h-value { font-weight: 700; color: #2c3e50; }
        .history-item .h-meta { color: #6c757d; font-size: 0.75rem; }
        .history-item .h-details { font-size: 0.7rem; color: #6c757d; width: 100%; margin-top: 2px; border-top: 1px dashed #eee; padding-top: 2px; }
        .history-item .h-delete { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 0.9rem; padding: 0 4px; }
        .history-item .h-delete:hover { color: #a71d2a; }
        .history-empty { color: #6c757d; font-style: italic; padding: 0.5rem 0; }
        .tooltip-inner { max-width: 260px; text-align: left; font-size: 0.8rem; }
        .est-badge { font-size: 0.7rem; background-color: #ffc107; color: #212529; padding: 0.1rem 0.5rem; border-radius: 12px; margin-left: 0.5rem; font-weight: 600; }
        .est-badge-info { font-size: 0.7rem; background-color: #e9ecef; color: #495057; padding: 0.1rem 0.5rem; border-radius: 12px; margin-left: 0.5rem; }
        .industry-avg-hint { font-size: 0.75rem; color: #6c757d; margin-top: 0.2rem; }
        .margin-status { font-size: 0.75rem; font-weight: 400; }
        .margin-status.active { color: #28a745; }
        .margin-status.inactive { color: #6c757d; }
        #profitMarginEstimate:disabled {
            background-color: #e9ecef !important;
            cursor: not-allowed !important;
            opacity: 0.65 !important;
        }
        @media (max-width: 576px) {
            .metrics-grid { grid-template-columns: 1fr 1fr; }
            .result-value-lg { font-size: 1.8rem; }
            .history-item { flex-direction: column; align-items: flex-start; }
            .history-item .h-delete { align-self: flex-end; margin-top: -1.2rem; }
        }
        @media print {
            .navbar, .footer, .related-tools, .function-examples, #calculateBtn, #clearBtn, #copyResultBtn, #exportReportBtn, .no-print { display: none !important; }
            .chart-container canvas { max-width: 100%; }
            .page-header { background: none !important; padding: 10px 0 !important; }
            .metric-card { border: 1px solid #ccc !important; background: #fafafa !important; }
            .history-item .h-delete { display: none; }
        }