/* Reviewed static CSS from captured nsearch.php, lines 2874-4425. */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        color: #333;
        background: #f5f5f5;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    /* Search Header Section */
    .search-header {
        background: white;
        padding: 30px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .search-header h1 {
        color: #333;
        margin-bottom: 6px;
        font-size: 1.8em;
        font-weight: 400;
    }

    .pk-page-subtitle {
        font-size: 1.1em;
        font-weight: 400;
        color: #555;
        margin: 0 0 16px 0;
    }
    
    .search-form {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .search-input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: border-color 0.2s;
    }
    
    .search-input:focus {
        outline: none;
        border-color: #007bff;
    }
    
    .search-btn {
        padding: 10px 25px;
        background: #006fb1;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s;
        font-weight: 400;
    }

    .search-btn:hover {
        background: #005a8d;
    }
    
    .search-help {
        font-size: 13px;
        color: #666;
    }
    
    .searching-inline {
        display: none;
        margin-top: 20px;
        font-size: 18px;
        font-weight: 600;
        color: #007bff;
        text-align: center;
        padding: 12px 20px;
        background: #f0f8ff;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .searching-inline::after {
        content: '';
        animation: dots 1.5s steps(5, end) infinite;
    }

    @keyframes dots {
        0%, 20% { content: ''; }
        40% { content: '.'; }
        60% { content: '..'; }
        80%, 100% { content: '...'; }
    }
    
    /* Breadcrumb Navigation */
    .breadcrumb-container {
        background: white;
        padding: 15px 30px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .breadcrumb-list {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

    .breadcrumb-item {
        display: flex;
        align-items: center;
    }

    .breadcrumb-item:not(:last-child)::after {
        content: '›';
        margin-left: 8px;
        color: #999;
    }

    .breadcrumb-item a {
        color: #007bff;
        text-decoration: none;
        transition: color 0.2s;
    }

    .breadcrumb-item a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    .breadcrumb-item-current span {
        color: #666;
    }
    
    /* Stats Grid */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        background: white;
        padding: 25px 20px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        text-align: center;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .stat-number {
        font-size: 1.8em;
        font-weight: 400;
        color: #007bff;
        display: block;
        margin-bottom: 8px;
    }
    
    .stat-label {
        color: #666;
        font-size: 0.9em;
    }
    
    /* Chart Container */
    .chart-container {
        background: white;
        padding: 25px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .chart-container h3 {
        color: #333;
        margin-bottom: 20px;
        font-size: 1.3em;
        font-weight: 400;
    }

    /* Similar Items Section */
    .similar-items-container {
        background: white;
        padding: 20px 25px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .similar-items-container h3 {
        color: #333;
        margin-bottom: 15px;
        font-size: 1.2em;
        font-weight: 400;
    }

    .similar-items-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .similar-item-link {
        display: inline-block;
        padding: 8px 14px;
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        color: #0066c0;
        text-decoration: none;
        font-size: 0.95em;
        transition: all 0.2s ease;
    }

    .similar-item-link:hover {
        background: #e8f4f8;
        border-color: #0066c0;
        color: #004080;
    }

    /* wSemi Insights Section */
    .wsemi-insights-container {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        overflow: hidden;
    }

    .wsemi-insights-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        padding: 18px 25px;
        color: white;
    }

    .wsemi-insights-header h3 {
        margin: 0;
        font-size: 1.2em;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .wsemi-insights-content {
        padding: 25px;
        line-height: 1.8;
        color: #333;
    }

    .wsemi-insights-content p {
        margin: 0 0 15px 0;
        font-size: 1.05em;
    }

    .wsemi-insights-content p:last-child {
        margin-bottom: 0;
    }

    .insights-highlight {
        font-weight: 600;
        color: #1e3a8a;
    }

    /* Results Section */
    .results-header {
        background: white;
        padding: 20px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .results-header h2 {
        color: #333;
        font-size: 1.5em;
        font-weight: 400;
    }

    /* Free global RFQ call-to-action (bold, attention-grabbing, flat) */
    .rfq-callout {
        background: #0b5fd0;
        color: #fff;
        border: 1px solid #0a52b5;
        border-radius: 8px;
        padding: 16px 20px;
        margin-bottom: 18px;
        box-shadow: 0 3px 12px rgba(11,95,208,0.28);
    }

    .rfq-callout__row {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .rfq-callout__icon {
        font-size: 2.1em;
        line-height: 1;
        flex-shrink: 0;
    }

    .rfq-callout__text {
        flex: 1 1 320px;
        min-width: 0;
    }

    .rfq-callout__eyebrow {
        display: inline-block;
        background: rgba(255,255,255,0.2);
        color: #fff;
        font-size: 0.68em;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        padding: 2px 8px;
        border-radius: 3px;
        margin-bottom: 6px;
    }

    .rfq-callout__title {
        margin: 0 0 4px;
        font-size: 1.28em;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
    }

    .rfq-callout__body {
        margin: 0;
        font-size: 0.92em;
        color: #fff;
        opacity: 0.92;
        line-height: 1.45;
    }

    .rfq-callout__cta {
        flex-shrink: 0;
        background: #fff;
        color: #0b5fd0;
        padding: 12px 24px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.98em;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0,0,0,0.18);
        transition: transform 0.12s;
    }

    .rfq-callout__cta:hover {
        transform: translateY(-1px);
    }

    .rfq-callout__meta {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.25);
        font-size: 0.82em;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 3px 12px;
        line-height: 1.5;
    }

    .rfq-callout__meta-lead {
        font-weight: 700;
        color: #fff;
    }

    .rfq-callout__meta-links a {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 2px;
        font-weight: 600;
    }

    .rfq-callout__meta-links a:hover {
        opacity: 0.85;
    }

    .rfq-callout__meta-free {
        color: #fff;
        opacity: 0.8;
    }

    @media (max-width: 768px) {
        .rfq-callout__row {
            gap: 10px;
        }
        .rfq-callout__icon {
            font-size: 1.7em;
        }
        .rfq-callout__title {
            font-size: 1.12em;
        }
        .rfq-callout__cta {
            width: 100%;
            text-align: center;
        }
    }

    .affiliate-notice {
        background: #f8f9fa;
        border-left: 3px solid #6c757d;
        padding: 12px 16px;
        margin-bottom: 20px;
        border-radius: 4px;
        font-size: 0.9em;
        color: #495057;
        line-height: 1.5;
    }

    .affiliate-notice strong {
        color: #333;
        font-weight: 600;
    }

    .affiliate-notice--button {
        max-width: 760px;
        margin: 14px auto 0;
        background: transparent;
        border-left: none;
        padding: 0;
        font-size: 0.85em;
        color: #666;
    }

    .ebay-search-card {
        background: white;
        border: 2px solid #e8e8e8;
        border-radius: 8px;
        padding: 24px;
        margin-bottom: 20px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .ebay-search-card h3 {
        color: #333;
        font-size: 1.2em;
        font-weight: 500;
        margin: 0 0 16px 0;
    }

    .ebay-search-btn {
        display: inline-block;
        background: #28a745;
        color: white;
        padding: 14px 32px;
        border-radius: 6px;
        font-size: 1.1em;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.3s ease, transform 0.2s ease;
        box-shadow: 0 2px 4px rgba(40,167,69,0.3);
    }

    .ebay-search-btn:hover {
        background: #218838;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(40,167,69,0.4);
    }

    .ebay-search-btn:active {
        transform: translateY(0);
    }

    .results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Pagination (bottom) */
    .pagination-nav {
        margin: 20px 0 0;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        font-size: 14px;
    }
    .pagination-nav .page-link {
        background: #ffffff;
        border: 1px solid #e1e7ee;
        color: #006fb1;
        padding: 6px 12px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s, border-color 0.2s;
    }
    .pagination-nav .page-link:hover {
        background: #f5faff;
        border-color: #cfe3f7;
    }
    .pagination-nav .page-link.disabled {
        color: #999;
        border-color: #eeeeee;
        background: #fafafa;
        pointer-events: none;
    }
    .pagination-nav .page-info {
        color: #555;
    }
    
    /* Result Cards */
    .result-card {
        background: white;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: transform 0.2s, box-shadow 0.2s;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    
    .result-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .result-card.wsemi-listing {
        border: none;
    }
    
    /* wSemi Badge */
    .wsemi-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #006fb1;
        color: white;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: bold;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        cursor: help;
        transition: background 0.2s;
    }

    .wsemi-badge:hover {
        background: #005a8d;
    }

    .wsemi-tooltip {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 8px;
        background: rgba(0, 0, 0, 0.95);
        color: white;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: normal;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, visibility 0.2s;
        pointer-events: none;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .wsemi-tooltip::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 20px;
        border: 6px solid transparent;
        border-bottom-color: rgba(0, 0, 0, 0.95);
    }

    .wsemi-badge:hover .wsemi-tooltip {
        opacity: 1;
        visibility: visible;
    }
    
    /* RFQ Section Styles */
	.rfq-section {
		background: white;
		border-radius: 8px;
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
		margin-bottom: 30px;
		overflow: hidden;
	}

	.rfq-header {
		cursor: pointer;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
		padding: 20px 25px;
		color: white;
	}

	.rfq-header:hover {
		background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
	}

	.rfq-badge {
		position: absolute;
		top: 10px;
		left: 10px;
		background: #007bff;
		color: white;
		padding: 6px 12px;
		border-radius: 4px;
		font-size: 11px;
		font-weight: bold;
		z-index: 10;
		box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	}

	.rfq-card {
		background: white;
		border-radius: 4px;
		overflow: hidden;
		box-shadow: 0 1px 3px rgba(0,0,0,0.1);
		transition: box-shadow 0.2s;
		position: relative;
		display: flex;
		flex-direction: column;
		border: 2px solid #cce5ff;
	}

	.rfq-card:hover {
		box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
	}
    
    .urgency-urgent {
        color: #dc3545;
        font-weight: 600;
    }
    
    .urgency-high {
        color: #fd7e14;
        font-weight: 600;
    }
    
    .urgency-medium {
        color: #ffc107;
        font-weight: 500;
    }
    
    .urgency-low {
        color: #6c757d;
        font-weight: 400;
    }
	
	#load-more-rfqs:hover {
      background: #0056b3;
	}

	/* Services Section */
	.services-section {
		background: white;
		border-radius: 8px;
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
		margin-bottom: 30px;
		overflow: hidden;
	}

	.services-header {
		cursor: pointer;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
		padding: 20px 25px;
		color: white;
	}

	.services-header:hover {
		background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
	}

	.service-badge {
		position: absolute;
		top: 10px;
		left: 10px;
		background: #17a2b8;
		color: white;
		padding: 6px 12px;
		border-radius: 4px;
		font-size: 11px;
		font-weight: bold;
		z-index: 10;
		box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	}

	.service-card {
		background: white;
		border-radius: 4px;
		overflow: hidden;
		box-shadow: 0 1px 3px rgba(0,0,0,0.1);
		transition: box-shadow 0.2s;
		position: relative;
		display: flex;
		flex-direction: column;
		border: 2px solid #bee5eb;
	}

	.service-card:hover {
		box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
	}

	#load-more-services:hover {
		background: #138496;
	}

	/* Image Container & Slider */
    .image-container {
        position: relative;
        width: 100%;
        height: 200px;
        background: #f5f5f5;
    }
    
    .image-slider {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        cursor: pointer;
        background: #f5f5f5;
        display: none;
    }
    
    .result-image.active {
        display: block;
    }
    
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        transition: background 0.2s;
    }
    
    .slider-btn:hover {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 5;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .dot.active {
        background: white;
    }
    
    .no-image {
        width: 100%;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        color: #999;
        font-size: 14px;
    }
    
    /* Result Card Content */
    .result-content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        min-height: 200px;
    }

    .result-title {
        font-weight: 400;
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.4;
        color: #333;
        min-height: 40px;
    }

    .result-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 12px;
        color: #666;
        margin-bottom: 12px;
    }
    
    .result-price {
        font-size: 20px;
        font-weight: 400;
        color: #333;
        text-align: center;
        font-variant-numeric: tabular-nums;
        padding-top: 10px;
        border-top: 1px solid #eee;
        margin-top: auto;
    }

    .result-price.price-sold {
        color: #28a745;
    }

    .result-price.best-offer-sale {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding-top: 12px;
    }

    .result-price-original {
        color: #68716c;
        font-size: 14px;
        line-height: 1.2;
        text-decoration-thickness: 1px;
    }

    .result-price-offer-label {
        color: #202522;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .result-price-accepted {
        color: #18753c;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2;
    }

    .result-price-confirmation {
        color: #6b746f;
        font-size: 10px;
        line-height: 1.35;
        margin-top: 2px;
    }
    
    .status-active { 
        color: #28a745; 
        font-weight: 400;
    }
    
    .status-completed { 
        color: #666; 
    }
    
    /* Buttons */
    .view-listing-btn {
        display: block;
        background: #007bff;
        color: white;
        padding: 10px 20px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: background 0.2s;
        margin-top: 8px;
        text-align: center;
    }

    .view-listing-btn:hover {
        background: #0056b3;
    }

    .view-listing-btn[style*="background: #fd7e14"]:hover {
        background: #e66a00 !important;
    }

    .view-listing-btn[style*="background: #6c757d"]:hover {
        background: #545b62 !important;
    }
    
    /* Modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
    }
    
    .modal-content {
        margin: auto;
        display: block;
        max-width: 90%;
        max-height: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .close:hover {
        color: #007bff;
    }
    
    /* Loading States */
    #loading, #no-more-results {
        text-align: center;
        padding: 20px;
    }
    
    #loading > div, #no-more-results > div {
        display: inline-block;
        padding: 12px 24px;
        background: white;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        color: #666;
    }
    
    /* Scroll to Top Button */
    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s, background-color 0.2s, transform 0.2s;
        z-index: 999;
    }

    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-to-top:hover {
        background: #0056b3;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
    }

    .scroll-to-top:active {
        transform: translateY(-1px);
    }
    
    /* Mobile Responsive */
    @media (max-width: 768px) {
        .container {
            padding: 10px;
        }

        .search-form {
            flex-direction: column;
        }

        .results-header {
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
        }

        .results-grid {
            grid-template-columns: 1fr;
        }

        .ebay-search-card {
            padding: 16px;
        }

        .ebay-search-card h3 {
            font-size: 1.1em;
        }

        .ebay-search-btn {
            padding: 12px 24px;
            font-size: 1em;
        }
        
        .mobile-summary-container {
            flex-direction: column !important;
            align-items: center !important;
            gap: 20px !important;
        }
        
        .mobile-total-section {
            text-align: center !important;
            flex-direction: column !important;
            display: flex !important;
        }
        
        .mobile-breakdown-section {
            justify-content: center !important;
            width: 100% !important;
        }
        
        .scroll-to-top {
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
        }
        
        .breadcrumb-container {
            padding: 12px 15px;
        }

        .breadcrumb-list {
            font-size: 13px;
        }
    }

    /* ===== TAB SYSTEM ===== */
    .summary-tab-bar {
        margin-bottom: 0;
    }

    .summary-stats-row {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        padding: 12px 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        font-size: 14px;
        margin-bottom: 8px;
    }

    .summary-stats-row .s-total {
        font-size: 1.1em;
        font-weight: 700;
        color: #007bff;
    }

    .summary-stats-row .s-stat {
        color: #555;
    }

    /* Folder-tab tray */
    .tab-nav {
        display: flex;
        gap: 3px;
        padding: 6px 10px 0;
        background: #d0d8e4;
        border-radius: 6px 6px 0 0;
        align-items: flex-end;
    }

    /* Inactive folder tab */
    .tab-btn {
        padding: 9px 26px 10px;
        background: #bdc8d6;
        border: 1px solid #9aaabb;
        border-bottom: none;
        border-radius: 5px 5px 0 0;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        color: #3d4f60;
        transition: background 0.12s, color 0.12s;
        white-space: nowrap;
        position: relative;
        line-height: 1.4;
        user-select: none;
    }

    .tab-btn:hover {
        background: #cdd6e2;
        color: #1a2e40;
    }

    /* Active folder tab — pops up, white, colored top accent */
    .tab-btn.tab-active {
        background: white;
        border-color: #9aaabb;
        color: #007bff;
        font-weight: 700;
        padding-top: 11px;
        margin-top: -3px;          /* raise above the tray */
        border-top: 3px solid #007bff;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.08);
        z-index: 1;
    }

    .tab-btn.tab-active:hover {
        background: white;
        color: #0056b3;
    }

    /* Content sits flush against the bottom of the tab tray */
    .tab-content-area {
        border: 1px solid #9aaabb;
        border-top: none;
        border-radius: 0 0 8px 8px;
        background: #f5f7fa;
        padding: 20px;
        margin-bottom: 30px;
        min-height: 60px;
    }

    .tab-section { display: none; }
    .tab-section.tab-visible { display: block; }

    /* Tab panel wrapper: white card inside the content area */
    .tab-panel-wrap {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 25px;
        margin-bottom: 20px;
    }

    .product-profile-panel {
        background: #fff;
        border: 1px solid #d8e0e8;
        border-radius: 8px;
        padding: 22px;
        margin: 0 0 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .product-profile-panel h2 {
        margin: 0 0 10px;
        font-size: 1.35em;
        color: #1f2d3d;
    }

    .product-profile-panel p {
        margin: 0 0 16px;
        color: #4b5563;
    }

    .profile-facts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }

    .profile-fact {
        border: 1px solid #e4e9ef;
        border-radius: 6px;
        padding: 10px 12px;
        background: #f8fafc;
    }

    .profile-fact-label {
        display: block;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 3px;
    }

    .profile-fact-value {
        display: block;
        font-weight: 600;
        color: #1f2937;
    }

    .profile-fact-note {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.35;
        color: #6b7280;
    }

    /* ---- Part Knowledge Reference Panel ---- */
    .pk-panel {
        background: white;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        border-top: 3px solid #2c5f8a;
    }
    .search-header-top {
        display: flex;
        align-items: flex-start;
        gap: 22px;
        margin-bottom: 14px;
    }
    .search-header-text { flex: 1; min-width: 0; padding-top: 2px; }
    .search-header-text h1 { margin-bottom: 4px; }
    .search-header-text .pk-page-subtitle { margin-bottom: 0; }
    .part-slideshow {
        position: relative;
        width: 170px;
        flex-shrink: 0;
        background: #fff;
        border: 1px solid #e7e7e7;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
        overflow: hidden;
    }
    .part-slideshow-track { position: relative; width: 100%; height: 170px; background: #fafafa; }
    .part-slide-img {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: contain;
        background: #f5f5f5;
        display: none;
    }
    .part-slide-img.active { display: block; }
    .part-slide-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.4);
        color: white;
        border: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        opacity: 0;
        transition: background 0.2s, opacity 0.2s;
    }
    .part-slideshow:hover .part-slide-btn { opacity: 1; }
    .part-slide-btn:hover { background: rgba(0, 0, 0, 0.65); }
    .part-slide-prev { left: 6px; }
    .part-slide-next { right: 6px; }
    .part-slide-dots {
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 4px;
        z-index: 5;
    }
    .part-slide-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.25);
        cursor: pointer;
        transition: background 0.2s;
    }
    .part-slide-dot.active { background: #2c5f8a; }
    @media (max-width: 560px) {
        .search-header-top { flex-direction: column; align-items: center; text-align: center; }
        .search-header-text { text-align: center; }
    }
    .pk-preview-mode { border-top-color: #e67e22; }
    .pk-preview-banner {
        background: #fff8e1;
        border-bottom: 1px solid #ffe082;
        padding: 7px 20px;
        font-size: 12px;
        color: #795500;
    }
    .pk-preview-banner code {
        background: #ffeaa0;
        padding: 1px 5px;
        border-radius: 2px;
        font-size: 11px;
    }
    .pk-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 18px 20px 14px;
        border-bottom: 1px solid #eee;
    }
    .pk-toggle-header { cursor: pointer; user-select: none; }
    .pk-toggle-header:hover { background: #fafbfc; }
    .pk-header-main { flex: 1; min-width: 0; }
    .pk-header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        flex-shrink: 0;
        margin-left: 14px;
    }
    .pk-jump-link {
        font-size: 12px;
        color: #2c5f8a;
        text-decoration: none;
        white-space: nowrap;
        padding: 3px 8px;
        border: 1px solid #c8dcea;
        border-radius: 3px;
        background: #f0f6fb;
    }
    .pk-jump-link:hover { background: #deedf7; text-decoration: none; }
    .pk-toggle-btn {
        background: none;
        border: none;
        font-size: 13px;
        color: #aaa;
        cursor: pointer;
        padding: 2px 6px;
        line-height: 1;
    }
    .pk-toggle-btn:hover { color: #555; }
    .pk-breadcrumb {
        font-size: 11px;
        color: #999;
        margin-bottom: 5px;
        letter-spacing: 0.02em;
    }
    .pk-title {
        font-size: 1.25em;
        font-weight: 500;
        color: #1a2332;
        margin: 0 0 7px 0;
    }
    .pk-identity {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 13px;
        align-items: center;
    }
    .pk-mfr  { font-weight: 600; color: #333; }
    .pk-pn   { font-family: 'Courier New', monospace; font-size: 12px; background: #f0f2f5; padding: 2px 7px; border-radius: 3px; color: #2c5f8a; }
    .pk-ptype { color: #777; font-style: italic; font-size: 12px; }
    .pk-conf-badge {
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 3px;
        white-space: nowrap;
    }
    .pk-conf-high    { background: #e6f4ea; color: #1e7d32; }
    .pk-conf-medium  { background: #fff4e5; color: #a85c00; }
    .pk-conf-low     { background: #fbeaea; color: #b3261e; }
    .pk-conf-unknown { background: #f0f2f5; color: #888; }
    .pk-jumpnav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 20px;
        background: #fafbfc;
        border-bottom: 1px solid #f0f0f0;
    }
    .pk-jumpnav-link {
        font-size: 12px;
        color: #2c5f8a;
        text-decoration: none;
        padding: 4px 11px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid #dce6ee;
        white-space: nowrap;
    }
    .pk-jumpnav-link:hover { background: #eef4f9; text-decoration: none; }
    .pk-section {
        padding: 13px 20px;
        border-bottom: 1px solid #f2f2f2;
        scroll-margin-top: 14px;
    }
    .pk-section:last-of-type { border-bottom: none; }
    .pk-how-section { background: #f7f9fb; }
    .pk-how-section .pk-slabel { color: #4a7ba6; }
    .pk-slabel {
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        color: #999;
        margin-bottom: 8px;
    }
    .pk-refdesc { font-size: 14px; color: #333; line-height: 1.55; }
    .pk-detail-block { margin-bottom: 12px; }
    .pk-detail-block:last-child { margin-bottom: 0; }
    .pk-detail-stitle {
        font-size: 12px;
        font-weight: 600;
        color: #555;
        margin-bottom: 5px;
    }
    .pk-detail-tbl {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }
    .pk-detail-tbl tr { border-bottom: 1px solid #f6f6f6; }
    .pk-detail-tbl tr:last-child { border-bottom: none; }
    .pk-dl { padding: 5px 12px 5px 0; color: #555; font-weight: 500; width: 32%; vertical-align: top; }
    .pk-dv { padding: 5px 0; color: #1a2332; font-family: 'Courier New', monospace; font-size: 12px; vertical-align: top; }
    .pk-dm { margin-top: 3px; color: #888; font-size: 11.5px; font-style: italic; font-family: Arial, sans-serif; }
    .pk-ctx-p   { font-size: 14px; color: #333; line-height: 1.6; margin: 0 0 7px; }
    .pk-ctx-sub { font-size: 13px; color: #555; line-height: 1.5; margin: 0; }
    .pk-list { margin: 0; padding-left: 18px; font-size: 13px; color: #444; line-height: 1.75; }
    .pk-chips { display: flex; flex-wrap: wrap; gap: 7px; }
    .pk-chip {
        display: inline-block;
        font-size: 12.5px;
        color: #3a4656;
        background: #f0f2f5;
        border: 1px solid #e4e7eb;
        padding: 5px 12px;
        border-radius: 999px;
        line-height: 1.3;
    }
    .pk-tech-block { margin-bottom: 11px; padding-bottom: 11px; border-bottom: 1px solid #f5f5f5; }
    .pk-tech-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .pk-tech-name  { font-weight: 600; font-size: 13px; color: #2c5f8a; margin-bottom: 3px; }
    .pk-tech-desc  { font-size: 13px; color: #444; margin: 0 0 3px; line-height: 1.5; }
    .pk-tech-why   { font-size: 12px; color: #666; margin: 0 0 3px; line-height: 1.5; }
    .pk-tech-verify { font-size: 12px; color: #999; margin-top: 3px; }
    .pk-terms { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
    .pk-term-row { display: flex; gap: 6px; font-size: 13px; align-items: baseline; min-width: 180px; }
    .pk-tk { font-weight: 700; font-family: 'Courier New', monospace; font-size: 12px; color: #2c5f8a; white-space: nowrap; }
    .pk-tv { color: #555; margin: 0; }
    .pk-mconf { font-size: 11px; color: #aaa; background: #f3f4f6; padding: 1px 5px; border-radius: 2px; margin-left: 4px; }
    .pk-buyer-section { display: flex; flex-direction: column; gap: 12px; }
    .pk-notes-grp {
        padding: 10px 14px;
        border-radius: 5px;
        border-left: 3px solid transparent;
    }
    .pk-notes-verify { background: #fff8ec; border-left-color: #e67e22; }
    .pk-notes-nc     { background: #f2f6f9; border-left-color: #7b98ad; }
    .pk-notes-head { font-size: 12px; font-weight: 700; color: #a85c00; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
    .pk-nc-head    { color: #49697f; }
    .pk-notes-verify .pk-list { color: #5a4522; }
    .pk-nc-list li { color: #455766; }
    .pk-conflict-note { font-size: 13px; color: #7a5a00; background: #fdf6e3; border: 1px solid #f0e2b0; border-radius: 4px; padding: 8px 11px; margin: 0 0 8px; line-height: 1.5; }
    .pk-terms-divider { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
    .pk-src-list { margin: 0; padding: 0; list-style: none; }
    .pk-src-item { font-size: 12px; color: #555; padding: 3px 0; border-bottom: 1px solid #f5f5f5; }
    .pk-src-item:last-child { border-bottom: none; }
    .pk-src-type {
        display: inline-block;
        font-size: 10px;
        background: #e8f1f8;
        color: #2c5f8a;
        padding: 1px 5px;
        border-radius: 2px;
        margin-right: 6px;
        font-weight: 700;
        vertical-align: middle;
    }
    .pk-provenance {
        padding: 9px 20px;
        font-size: 11px;
        color: #71808c;
        background: #fafafa;
        border-top: 1px solid #f0f0f0;
        border-radius: 0 0 4px 4px;
        font-style: normal;
    }
    .pk-provenance-debug { color: #aaa; font-style: normal; }
    @media (max-width: 640px) {
        .pk-dl { width: 42%; }
    }

/* Preview-only availability notices and accessible controls. */
.catalog-notice{padding:12px 16px;background:#fff8df;border-left:4px solid #d49c25;margin:0 0 20px;color:#59451b;overflow-wrap:anywhere}.catalog-prose{white-space:pre-line;overflow-wrap:anywhere}.catalog-empty{background:white;padding:30px;border-radius:4px;margin:20px 0}.catalog-panel[hidden]{display:none!important}.catalog-reference{font-size:13px;color:#666}.catalog-disabled{opacity:.7;cursor:not-allowed}.catalog-docs{padding:20px;background:white;border:1px solid #ddd;border-radius:6px;margin:20px 0}.catalog-docs li{margin:8px 0 8px 20px}.catalog-nav{display:flex;gap:12px;margin:20px 0}.catalog-search .search-input{min-width:0}.profile-fact-value{overflow-wrap:anywhere}.catalog-knowledge summary{cursor:pointer;list-style:none}.catalog-knowledge summary::-webkit-details-marker{display:none}.catalog-knowledge .pk-toggle-btn{display:inline-block}.catalog-knowledge:not([open]) .pk-toggle-btn{transform:rotate(180deg)}

.catalog-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tab-btn:focus-visible,.part-slide-btn:focus-visible{outline:3px solid #006fb1;outline-offset:3px}

/* Reviewed document panel CSS from includes/part_documents.php. */

    .pk-docs { display: flex; flex-direction: column; gap: 12px; }
    .pk-doc {
        border: 1px solid #dce6ee;
        border-radius: 6px;
        background: #fbfcfd;
        padding: 12px 14px;
    }
    .pk-doc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
    .pk-doc-title { margin: 0 0 4px; font-size: 14px; line-height: 1.35; }
    .pk-doc-title a { color: #1a2332; text-decoration: none; }
    .pk-doc-title a:hover { color: #2c5f8a; text-decoration: underline; }
    .pk-doc-meta { font-size: 12px; color: #6b7785; margin-bottom: 8px; }
    .pk-doc-badge {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #2c5f8a;
        background: #e8f1f8;
        border-radius: 999px;
        padding: 2px 7px;
        margin-right: 6px;
    }
    .pk-doc-open {
        flex-shrink: 0;
        font-size: 12px;
        color: #fff;
        background: #2c5f8a;
        text-decoration: none;
        border-radius: 4px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    .pk-doc-open:hover { background: #244e72; color: #fff; text-decoration: none; }
    .pk-doc-copy { font-size: 13px; color: #444; line-height: 1.5; margin: 0 0 4px; }
    .pk-doc-copy:last-child { margin-bottom: 0; }
    .pk-doc-why { color: #555; }
    

.catalog-verification{font-size:12px;line-height:1.5;margin:10px 0}.catalog-verification-checked{color:#18753c}.catalog-verification-uncertain{color:#8a5a00}.catalog-verification-ended{color:#66717c}.catalog-disabled:disabled{width:100%;border:0;font:inherit;cursor:not-allowed}.result-meta>div{overflow-wrap:anywhere}

/* Long literal part numbers and listing text must fit narrow viewports. */
#catalog-main .search-header-text{max-width:100%;overflow-wrap:anywhere}
#catalog-main .breadcrumb,#catalog-main .result-content{overflow-wrap:anywhere}
#catalog-main .result-card,#catalog-main .result-content{min-width:0}
#catalog-main .result-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
#catalog-main .catalog-nav{flex-wrap:wrap}

.catalog-pricing-summary{margin:24px 0}.catalog-table-scroll{overflow-x:auto;margin:16px 0}.catalog-price-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}.catalog-price-table caption{text-align:left;margin-bottom:12px;color:#64748b}.catalog-price-table th,.catalog-price-table td{padding:10px;border-bottom:1px solid #e2e8f0;vertical-align:top}.catalog-price-chart{margin:20px 0;padding:16px;border:1px solid #e2e8f0;border-radius:8px;color:#2563eb}.catalog-price-chart figcaption{font-weight:600;color:#334155}.catalog-price-chart svg{display:block;width:100%;max-height:240px}

.market-detail-dialog{width:min(900px,92vw);max-height:90vh;border:1px solid #cbd5e1;border-radius:8px;padding:24px;overflow:auto}.market-detail-dialog::backdrop{background:rgba(0,0,0,.55)}.market-detail-dialog .product-profile-panel{margin-top:16px}.market-detail-dialog .catalog-prose{white-space:pre-wrap}
