/* Google Fonts for original title styling */
    :root {
        --primary-color: #c41e3a;
        --secondary-color: #8b0000;
        --accent-blue: #1976d2;
        --accent-green: #4CAF50;
        --accent-orange: #FF9800;
        --accent-gold: #FFD700;
        --accent-purple: #7c3aed;
        --vip-gradient: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
        --public-gradient: linear-gradient(135deg, #F4B740 0%, #E8A317 45%, #1E3A5F 100%);
        --members-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        --text-dark: #333333;
        --text-light: #ffffff;
        --bg-light: #f5f5f5;
        --bg-white: #ffffff;
        --border-color: #e0e0e0;
        --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    * {
        box-sizing: border-box;
    }
    
    .alpharvest-homepage {
        font-family: 'Noto Sans JP', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1.6;
        color: var(--text-dark);
        background-color: var(--bg-light);
    }
    
    /* ============================================================ */
    /* ORIGINAL TITLE STYLING */
    /* ============================================================ */
    .site-header {
        text-align: center;
        padding: 30px 20px 20px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Single H1 per page for SEO: brand uses div.site-title (visual H1).
       High-specificity .site-title block ensures hero typography unchanged. */
    .site-header .site-title {
        font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
        font-style: italic;
        font-size: 3em;
        /* Heavy bold so the hero reads with clear optical weight. */
        font-weight: 800;
        color: var(--apv-ink-primary);
        margin: 0;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-transform: none;
    }

    .site-logo-icon {
        width: 56px;
        height: 56px;
        vertical-align: middle;
        border-radius: 8px;
    }
    @media (max-width: 640px) {
        .site-logo-icon { width: 44px; height: 44px; }
    }

    .site-title-suffix {
        font-size: 0.35em;
        font-weight: 300;
        color: #999;
        letter-spacing: 0;
        font-style: normal;
    }

    .site-tagline {
        font-size: 0.95em;
        color: #666;
        margin-top: 8px;
        font-weight: 400;
    }
    
    /* Navigation */
    .main-navigation {
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }

    .nav-toggle {
        display: none;
        background: none;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 10px 14px;
        cursor: pointer;
        font-size: 1.4em;
        color: var(--text-dark);
        margin: 10px auto;
    }

    .nav-menu {
        display: flex;
        justify-content: center;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }

    @media (max-width: 768px) {
        .nav-toggle { display: block; min-width: 48px; min-height: 44px; }
        .main-navigation .nav-menu {
            display: none;
            flex-direction: column;
            align-items: stretch;
            padding: 8px 0 12px 0;
            border-top: 1px solid var(--border-color);
        }
        .main-navigation .nav-menu.is-open { display: flex; }
        .main-navigation .nav-menu li { width: 100%; text-align: center; }
        .main-navigation .nav-menu a {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-color);
        }
        .main-navigation .nav-menu li:last-child a { border-bottom: 0; }
    }
    
    .nav-menu li { margin: 0; }
    
    .nav-menu a {
        display: block;
        padding: 15px 25px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.95em;
        transition: all 0.3s ease;
        border-bottom: 3px solid transparent;
    }
    
    .nav-menu a:hover {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
    
    /* Latest Reports Menu Item - Public (amber, brand-consistent) */
    .nav-menu .latest-link a {
        color: var(--apv-accent-primary);
        font-weight: 600;
    }

    .nav-menu .latest-link a:hover {
        color: #FDD67A;
        border-bottom-color: var(--apv-accent-primary);
    }
    
    /* Archive Menu Items - Members Only */
    .nav-menu .members-link a {
        position: relative;
    }
    
    .nav-menu .members-link a::after {
        content: '🔓';
        font-size: 0.7em;
        margin-left: 4px;
        vertical-align: super;
    }
    
    .nav-menu .members-link.logged-in a::after {
        content: '';
    }
    
    /* .win cross-link (TW/HK) */
    .nav-menu .win-link a {
        color: #39bae6;
    }
    .nav-menu .win-link a:hover {
        color: #5ccbf0;
        border-bottom-color: #39bae6;
    }

    /* VIP Menu Item */
    .nav-menu .vip-link a {
        color: var(--accent-gold);
        font-weight: 600;
    }
    
    .nav-menu .vip-link a:hover {
        color: #FFC107;
        border-bottom-color: var(--accent-gold);
    }
    
    .nav-submenu {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 10px;
        background: #fafafa;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-submenu a {
        color: #666;
        text-decoration: none;
        font-size: 0.85em;
        transition: color 0.3s;
    }
    
    .nav-submenu a:hover { color: var(--primary-color); }
    
    /* User Status Bar */
    .user-status-bar {
        background: linear-gradient(90deg, #2d3748 0%, #4a5568 100%);
        color: white;
        text-align: center;
        padding: 8px 20px;
        font-size: 0.85em;
    }
    
    .user-status-bar a {
        color: var(--accent-gold);
        text-decoration: none;
        font-weight: 600;
    }
    
    .user-status-bar a:hover {
        text-decoration: underline;
    }
    
    /* Language Toggle */
    .language-toggle {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1000;
        display: flex;
        gap: 5px;
        background: rgba(255,255,255,0.95);
        padding: 5px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
    
    .lang-btn {
        padding: 8px 15px;
        border: 1px solid var(--border-color);
        background: white;
        cursor: pointer;
        border-radius: 5px;
        font-size: 0.85em;
        transition: all 0.3s;
    }
    
    .lang-btn:hover {
        background: var(--bg-light);
    }
    
    .lang-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    /* Main Content */
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    /* ============================================================ */
    /* ACCESS LEVEL BADGES */
    /* ============================================================ */
    .access-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .access-badge.public {
        background: linear-gradient(135deg, #F4B740 0%, #E8A317 100%);
        color: #0A1628;
    }
    
    .access-badge.members {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        color: white;
    }
    
    .access-badge.vip {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
    }
    
    /* ============================================================ */
    /* Daily Market Summary Section */
    /* ============================================================ */
    .market-summary-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: var(--card-shadow);
        border: 1px solid var(--border-color);
    }
    
    .market-summary-section h2 {
        font-size: 1.2em;
        margin: 0 0 20px 0;
        text-align: center;
        color: var(--text-dark);
    }
    
    .summary-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .summary-card {
        background: var(--bg-white);
        border-radius: 10px;
        padding: 20px;
        border-left: 4px solid;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    
    .summary-card.us-summary {
        border-left-color: var(--accent-blue);
    }
    
    .summary-card.jp-summary {
        border-left-color: var(--primary-color);
    }
    
    .summary-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Sub-section accordion */
    .summary-subsection {
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .summary-subsection-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: var(--bg-light);
        cursor: pointer;
        user-select: none;
        font-weight: 600;
        font-size: 0.9em;
        color: var(--text-dark);
    }

    .summary-subsection-header::after {
        content: '▼';
        font-size: 0.65em;
        transition: transform 0.3s;
        color: #888;
    }

    .summary-subsection.collapsed .summary-subsection-header::after {
        transform: rotate(-90deg);
    }

    .summary-subsection-body {
        padding: 12px 14px;
        font-size: 0.9em;
        line-height: 1.7;
        color: #444;
        max-height: 2000px;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }

    .summary-subsection.collapsed .summary-subsection-body {
        max-height: 0;
        padding: 0 14px;
        opacity: 0;
    }
    
    .summary-card-header h3 {
        font-size: 1em;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .summary-date {
        font-size: 0.75em;
        color: #888;
        background: var(--bg-light);
        padding: 3px 8px;
        border-radius: 4px;
    }
    
    .summary-content {
        font-size: 0.9em;
        line-height: 1.7;
        color: #444;
    }
    
    .summary-content p {
        margin: 0 0 10px 0;
    }
    
    .summary-content p:last-child {
        margin-bottom: 0;
    }
    
    .summary-loading {
        text-align: center;
        padding: 30px;
        color: #888;
    }
    
    .summary-loading .spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid var(--border-color);
        border-top-color: var(--accent-blue);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 10px;
        vertical-align: middle;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    .summary-error {
        text-align: center;
        padding: 20px;
        color: #999;
        font-size: 0.9em;
    }
    
    .summary-metrics {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px dashed var(--border-color);
    }
    
    .summary-metric {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: var(--bg-light);
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 0.8em;
    }
    
    .summary-metric-value {
        font-weight: 600;
        color: var(--text-dark);
    }
    
    .summary-metric.positive .summary-metric-value {
        color: var(--accent-green);
    }
    
    .summary-metric.negative .summary-metric-value {
        color: var(--primary-color);
    }
    
    /* ============================================================ */
    /* DIAGNOSTIC LOOKUP SECTION (v4.6.0) */
    /* ============================================================ */
    .diagnostic-section {
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1a4a6e 100%);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        color: white;
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
    }
    .diagnostic-section::before {
        content: '';
        position: absolute;
        top: -30%; right: -10%;
        width: 300px; height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
        pointer-events: none;
    }
    .diagnostic-section > * { position: relative; z-index: 1; }
    .diagnostic-header { text-align: center; margin-bottom: 20px; }
    .diagnostic-header h2 {
        font-size: 1.3em; margin: 0 0 6px 0;
        display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .diagnostic-header .subtitle { font-size: 0.85em; opacity: 0.75; margin: 0; }
    .diagnostic-search-box {
        display: flex; align-items: center; gap: 10px;
        max-width: 650px; margin: 0 auto 15px;
        flex-wrap: wrap; justify-content: center;
    }
    .diag-market-select {
        padding: 12px 14px; border: 2px solid rgba(255,255,255,0.3);
        border-radius: 8px; background: rgba(255,255,255,0.1);
        color: white; font-size: 0.95em; cursor: pointer; min-width: 90px;
    }
    .diag-market-select option { background: #1e3a5f; color: white; }
    .diag-ticker-input {
        flex: 1; min-width: 180px; padding: 12px 16px;
        border: 2px solid rgba(255,255,255,0.3); border-radius: 8px;
        background: rgba(255,255,255,0.1); color: white;
        font-size: 1em; font-weight: 600; letter-spacing: 1px;
        text-transform: uppercase; outline: none; transition: border-color 0.3s;
    }
    .diag-ticker-input::placeholder {
        color: rgba(255,255,255,0.5); font-weight: 400;
        text-transform: none; letter-spacing: 0;
    }
    .diag-ticker-input:focus {
        border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.15);
    }
    .diag-search-btn {
        padding: 12px 24px;
        background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
        color: #0d2137; border: none; border-radius: 8px;
        font-weight: 700; font-size: 0.95em; cursor: pointer;
        transition: all 0.3s; white-space: nowrap;
    }
    .diag-search-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(79,195,247,0.4); }
    .diag-search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .diag-rate-limit { text-align: center; font-size: 0.78em; opacity: 0.6; margin-bottom: 5px; }
    .diag-rate-limit .used-up { color: #ff9800; opacity: 1; }
    .diag-result-area { max-width: 700px; margin: 0 auto; min-height: 0; transition: all 0.3s; }
    .diag-result-card {
        background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
        padding: 20px; margin-top: 15px; animation: diagFadeIn 0.35s ease;
    }
    @keyframes diagFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .diag-result-header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 15px; padding-bottom: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .diag-ticker-name { display: flex; align-items: baseline; gap: 10px; }
    .diag-ticker-name .ticker { font-size: 1.5em; font-weight: 700; letter-spacing: 1px; }
    .diag-ticker-name .company { font-size: 0.85em; opacity: 0.75; }
    .diag-score-badge {
        display: flex; align-items: center; gap: 8px;
        background: rgba(0,0,0,0.25); padding: 8px 16px; border-radius: 20px;
    }
    .diag-score-badge .score-value { font-size: 1.4em; font-weight: 800; }
    .diag-score-badge .score-label { font-size: 0.75em; opacity: 0.7; }
    .diag-score-badge.score-high  { border: 2px solid #4CAF50; }
    .diag-score-badge.score-mid   { border: 2px solid #FF9800; }
    .diag-score-badge.score-low   { border: 2px solid #f44336; }
    .diag-score-badge.score-high .score-value { color: #81C784; }
    .diag-score-badge.score-mid  .score-value { color: #FFB74D; }
    .diag-score-badge.score-low  .score-value { color: #ef5350; }
    .diag-metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
    .diag-metric { text-align: center; padding: 10px 8px; background: rgba(0,0,0,0.15); border-radius: 8px; }
    .diag-metric .metric-label { font-size: 0.7em; opacity: 0.65; display: block; margin-bottom: 4px; }
    .diag-metric .metric-value { font-size: 1.1em; font-weight: 700; }
    .diag-metric .metric-value.positive { color: #81C784; }
    .diag-metric .metric-value.negative { color: #ef5350; }
    .diag-metric .metric-value.neutral  { color: #FFB74D; }
    .diag-stage-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
    .diag-stage-tag {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 5px 12px; border-radius: 15px; font-size: 0.8em; font-weight: 600;
    }
    .diag-stage-tag.active { background: rgba(76,175,80,0.25); border: 1px solid rgba(76,175,80,0.5); color: #a5d6a7; }
    .diag-stage-tag.inactive { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.35); }
    /* v4.7: sector + industry group + peers */
    .diag-group-info {
        display: flex; flex-wrap: wrap; gap: 16px;
        margin-bottom: 15px; padding: 10px 14px;
        background: rgba(255,255,255,0.04); border-left: 3px solid #4fc3f7;
        border-radius: 4px; font-size: 0.85em;
    }
    .diag-group-item { display: flex; align-items: baseline; gap: 8px; }
    .diag-group-label { font-size: 0.8em; color: rgba(255,255,255,0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
    .diag-group-value { color: #a5d6a7; font-weight: 600; }
    .diag-peers-row {
        display: flex; flex-direction: column; gap: 8px;
        margin-bottom: 15px; padding: 10px 14px;
        background: rgba(255,255,255,0.04); border-left: 3px solid #ffd700;
        border-radius: 4px;
    }
    .diag-peers-label { font-size: 0.8em; color: rgba(255,255,255,0.7); font-weight: 600; }
    .diag-peers-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    a.diag-peer-chip {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 4px 10px; border-radius: 14px;
        background: rgba(255,215,0,0.15); border: 1px solid rgba(255,215,0,0.35);
        color: #ffd700; font-size: 0.8em; font-weight: 700;
        font-family: 'JetBrains Mono', monospace; text-decoration: none;
        transition: all 0.2s;
    }
    a.diag-peer-chip:hover { background: rgba(255,215,0,0.25); border-color: rgba(255,215,0,0.6); color: #fff3a8; transform: translateY(-1px); }
    .diag-peer-chip .diag-peer-rs { color: rgba(255,215,0,0.8); font-weight: 400; margin-left: 2px; }
    .diag-actions {
        display: flex; align-items: center; justify-content: space-between;
        padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1);
    }
    .diag-full-link {
        display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
        background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
        color: #0d2137; text-decoration: none; border-radius: 8px;
        font-weight: 700; font-size: 0.9em; transition: all 0.3s;
    }
    .diag-full-link:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(79,195,247,0.3); color: #0d2137; }
    .diag-chart-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85em; transition: color 0.3s; }
    .diag-chart-link:hover { color: white; }
    .diag-error {
        text-align: center; padding: 15px; margin-top: 15px;
        background: rgba(244,67,54,0.15); border: 1px solid rgba(244,67,54,0.3);
        border-radius: 8px; color: #ffcdd2; font-size: 0.9em; animation: diagFadeIn 0.35s ease;
    }
    .diag-not-found {
        text-align: center; padding: 15px; margin-top: 15px;
        background: rgba(255,152,0,0.12); border: 1px solid rgba(255,152,0,0.25);
        border-radius: 8px; color: #ffe0b2; font-size: 0.9em; animation: diagFadeIn 0.35s ease;
    }
    
    /* ============================================================ */
    /* V4.6.2: BATCH COMPARE (VIP) */
    /* ============================================================ */
    .diagnostic-batch-section {
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }
    .batch-header h3 {
        font-size: 1.1em;
        margin-bottom: 6px;
        display: flex; align-items: center; gap: 8px; justify-content: center;
    }
    .batch-subtitle {
        font-size: 0.85em;
        opacity: 0.65;
        margin-bottom: 12px;
        text-align: center;
    }
    .batch-input-area {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
    .batch-ticker-input {
        width: 100%;
        padding: 10px;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
        color: white;
        font-family: monospace;
        font-size: 0.9em;
        resize: vertical;
        text-transform: uppercase;
        outline: none;
    }
    .batch-ticker-input::placeholder {
        text-transform: none;
        color: rgba(255,255,255,0.5);
    }
    .batch-ticker-input:focus {
        border-color: rgba(255,255,255,0.7);
        background: rgba(255,255,255,0.15);
    }
    .batch-controls {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }
    .batch-table-wrapper {
        overflow-x: auto;
        margin-top: 12px;
    }
    .batch-table-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        font-size: 0.85em;
    }
    .batch-export-btn {
        padding: 4px 12px;
        border: 1px solid #FFD700;
        border-radius: 6px;
        background: transparent;
        color: #FFD700;
        cursor: pointer;
        font-size: 0.85em;
        transition: background 0.3s;
    }
    .batch-export-btn:hover {
        background: rgba(255, 215, 0, 0.1);
    }
    .batch-compare-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85em;
    }
    .batch-compare-table th {
        background: rgba(0,0,0,0.3);
        padding: 8px 6px;
        text-align: left;
        font-weight: 600;
        font-size: 0.8em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #FFD700;
        white-space: nowrap;
        user-select: none;
    }
    .batch-compare-table th[data-sort] { cursor: pointer; }
    .batch-compare-table th[data-sort]:hover { color: #FFD700; }
    .batch-compare-table th.sort-asc::after { content: ' Ã¢–Â²'; font-size: 0.7em; }
    .batch-compare-table th.sort-desc::after { content: ' Ã¢–Â¼'; font-size: 0.7em; }
    .batch-compare-table td {
        padding: 6px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: nowrap;
    }
    .batch-compare-table tr:hover {
        background: rgba(255, 215, 0, 0.05);
    }
    .ticker-cell a {
        color: #4fc3f7;
        text-decoration: none;
        font-weight: 600;
        font-family: monospace;
    }
    .ticker-cell a:hover { text-decoration: underline; }
    .price-cell { text-align: right; font-family: monospace; }
    .rs-cell { text-align: center; font-weight: 700; font-family: monospace; }
    .score-cell { text-align: center; font-family: monospace; }
    .bool-cell { text-align: center; }
    .sig-cell { text-align: center; white-space: nowrap; }
    .sector-cell { font-size: 0.85em; opacity: 0.7; }
    .rs-elite { color: #00ff88; }
    .rs-good { color: #FFD700; }
    .rs-low { color: #ff6b6b; }
    .score-high { color: #00ff88; }
    .score-mid { color: #FFD700; }
    .score-low { color: #ff6b6b; }
    .batch-not-found {
        margin-top: 8px;
        padding: 8px 12px;
        background: rgba(255, 107, 107, 0.1);
        border: 1px solid rgba(255, 107, 107, 0.2);
        border-radius: 6px;
        font-size: 0.85em;
        color: #ff6b6b;
    }
    .diag-loading {
        text-align: center; padding: 20px; opacity: 0.7;
    }
    
    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 1.3em;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .latest-reports-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .latest-card {
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 20px;
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .latest-card h3 {
        font-size: 1.1em;
        margin: 0 0 12px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .latest-card .report-date {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        font-size: 0.9em;
    }
    
    .latest-card .report-date-badge {
        background: rgba(255,255,255,0.25);
        padding: 4px 12px;
        border-radius: 15px;
        font-weight: 600;
    }
    
    .latest-card .date-status {
        font-size: 0.85em;
        opacity: 0.8;
    }
    
    .latest-report-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .latest-report-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        background: rgba(255,255,255,0.2);
        border-radius: 8px;
        text-decoration: none;
        color: white;
        border: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s;
    }
    
    .latest-report-link:hover {
        background: rgba(255,255,255,0.3);
        transform: translateX(5px);
        color: white;
    }
    
    .latest-report-link .icon {
        font-size: 1.3em;
    }
    
    .latest-note {
        text-align: center;
        margin-top: 20px;
        font-size: 0.85em;
        opacity: 0.8;
    }

    /* ============================================================ */
    /* MINI-TABLE PREVIEWS (Top-5 Ticker Previews) */
    /* ============================================================ */
    .report-with-preview {
        display: flex;
        flex-direction: column;
    }

    .report-with-preview .latest-report-link {
        border-radius: 8px 8px 0 0;
        margin-bottom: 0;
    }

    .report-with-preview .latest-report-link:only-child,
    .report-with-preview:not(:has(.mini-preview-table)) .latest-report-link {
        border-radius: 8px;
    }

    .mini-table-container {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 0 0 8px 8px;
        padding: 0;
        overflow-x: auto;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: none;
    }

    .mini-table-loading {
        padding: 12px;
        text-align: center;
        font-size: 0.8em;
        opacity: 0.6;
        font-family: 'SF Mono', 'Cascadia Code', monospace;
    }

    .mini-table-error {
        padding: 12px;
        text-align: center;
        font-size: 0.8em;
        color: #ff6b6b;
    }

    .mini-table-empty {
        padding: 12px;
        text-align: center;
        font-size: 0.8em;
        opacity: 0.5;
        font-style: italic;
    }

    .mini-preview-table {
        width: 100%;
        border-collapse: collapse;
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
        font-size: 0.75em;
        line-height: 1.4;
    }

    .mini-preview-table thead th {
        background: rgba(255, 255, 255, 0.06);
        padding: 6px 8px;
        text-align: left;
        font-weight: 600;
        font-size: 0.85em;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.6);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mini-preview-table tbody td {
        padding: 5px 8px;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.85);
    }

    .mini-preview-table tbody tr:last-child td {
        border-bottom: none;
    }

    .mini-preview-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    /* Mini badge styles */
    .mini-score-high {
        color: #00d4aa;
        font-weight: 700;
    }

    .mini-rs-90 {
        color: #39bae6;
        font-weight: 700;
    }

    .mini-rs-70 {
        color: var(--apv-accent-primary);
        font-weight: 600;
    }

    .mini-signal-pp {
        display: inline-block;
        background: rgba(0, 212, 170, 0.2);
        color: #00d4aa;
        padding: 1px 6px;
        border-radius: 3px;
        font-weight: 700;
        font-size: 0.9em;
    }

    .mini-signal-bgu {
        display: inline-block;
        background: rgba(57, 186, 230, 0.2);
        color: #39bae6;
        padding: 1px 6px;
        border-radius: 3px;
        font-weight: 700;
        font-size: 0.9em;
    }

    .mini-signal-ur {
        display: inline-block;
        background: rgba(230, 180, 80, 0.2);
        color: var(--apv-accent-primary);
        padding: 1px 6px;
        border-radius: 3px;
        font-weight: 700;
        font-size: 0.9em;
    }

    .mini-vcp-pattern {
        color: var(--apv-accent-primary);
        font-family: 'SF Mono', 'Cascadia Code', monospace;
        font-size: 0.9em;
    }

    .mini-ticker-us {
        color: #39bae6;
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 2px;
        cursor: pointer;
        font-weight: 600;
    }

    .mini-ticker-us:hover {
        color: var(--apv-accent-primary);
    }

    .mini-ticker-jp {
        color: #39bae6;
        font-weight: 600;
    }

    .mini-view-all {
        display: block;
        text-align: center;
        padding: 6px 8px;
        font-size: 0.75em;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        transition: color 0.2s;
    }

    .mini-view-all:hover {
        color: var(--apv-accent-primary);
    }

    /* TradingView Chart Tooltip (Latest Reports section) */
    .lr-chart-tooltip {
        position: fixed;
        z-index: 10000;
        background: #131722;
        border: 1px solid #39bae6;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        overflow: hidden;
        width: 790px;
        pointer-events: auto;
    }

    .lr-chart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        background: rgba(57, 186, 230, 0.1);
        border-bottom: 1px solid rgba(57, 186, 230, 0.2);
        font-family: 'SF Mono', 'Cascadia Code', monospace;
        font-size: 0.85em;
        color: #39bae6;
        font-weight: 600;
    }

    .lr-chart-close {
        background: none;
        border: none;
        color: #ff6b6b;
        font-size: 1.3em;
        cursor: pointer;
        padding: 0 4px;
        line-height: 1;
    }

    .lr-chart-close:hover {
        color: #ff4444;
    }

    .lr-chart-widget {
        width: 790px;
        height: 450px;
    }

    /* Mobile: hide Name at 768px, hide RS at 480px */
    @media (max-width: 768px) {
        .mini-preview-table .col-name {
            display: none;
        }
        .lr-chart-tooltip {
            display: none !important;
        }
    }

    @media (max-width: 480px) {
        .mini-preview-table .col-rs {
            display: none;
        }
    }

    /* ============================================================ */
    /* REPORT ARCHIVES - FREE MEMBERS (With Lock Overlay) */
    /* ============================================================ */
    .archives-section {
        background: var(--bg-white);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: var(--card-shadow);
        border: 1px solid var(--border-color);
        position: relative;
    }
    
    .archives-section.locked {
        overflow: hidden;
    }
    
    .archives-section h2 {
        font-size: 1.2em;
        margin: 0 0 20px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .archives-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .archive-column {
        background: var(--bg-light);
        border-radius: 10px;
        padding: 20px;
    }
    
    .archive-column h3 {
        font-size: 1em;
        margin: 0 0 15px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .archive-list {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
    }
    
    .archive-list li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9em;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .archive-list li:last-child {
        border-bottom: none;
    }
    
    .archive-list li::before {
        content: "✓";
        color: var(--accent-green);
        font-weight: bold;
    }
    
    .new-badge {
        background: var(--accent-orange);
        color: white;
        font-size: 0.65em;
        padding: 2px 6px;
        border-radius: 3px;
        font-weight: 600;
        animation: pulse-badge 2s infinite;
    }
    
    @keyframes pulse-badge {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.8; transform: scale(1.05); }
    }
    
    .archive-btn {
        display: inline-block;
        background: #333;
        color: white;
        text-decoration: none;
        padding: 12px 24px;
        border-radius: 6px;
        font-size: 0.9em;
        transition: all 0.3s;
        width: 100%;
        text-align: center;
    }
    
    .archive-btn:hover {
        background: #555;
        color: white;
    }
    
    /* Lock Overlay for non-logged-in users */
    .lock-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 10;
        border-radius: 12px;
    }
    
    .lock-overlay .lock-icon {
        font-size: 3em;
        margin-bottom: 15px;
        color: #666;
    }
    
    .lock-overlay h3 {
        font-size: 1.2em;
        margin: 0 0 10px 0;
        color: #333;
    }
    
    .lock-overlay p {
        font-size: 0.9em;
        color: #666;
        margin: 0 0 20px 0;
        text-align: center;
        max-width: 300px;
    }
    
    .lock-overlay .login-btn {
        display: inline-block;
        background: var(--members-gradient);
        color: white;
        text-decoration: none;
        padding: 12px 30px;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s;
        margin: 5px;
    }
    
    .lock-overlay .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
        color: white;
    }
    
    .lock-overlay .register-btn {
        display: inline-block;
        background: transparent;
        color: var(--accent-blue);
        text-decoration: none;
        padding: 12px 30px;
        border-radius: 25px;
        font-weight: 600;
        border: 2px solid var(--accent-blue);
        transition: all 0.3s;
        margin: 5px;
    }
    
    .lock-overlay .register-btn:hover {
        background: var(--accent-blue);
        color: white;
    }
    
    /* ============================================================ */
    /* VIP Members Only Section */
    /* ============================================================ */


    .vip-section {
        background: var(--vip-gradient);
        border-radius: 12px;
        padding: 35px;
        margin-bottom: 30px;
        color: white;
        position: relative;
        overflow: hidden;
        border: 2px solid var(--accent-gold);
    }
    
    .vip-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 50%);
        animation: vip-glow 10s linear infinite;
    }
    
    @keyframes vip-glow {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .vip-section > * {
        position: relative;
        z-index: 1;
    }
    
    .vip-header {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .vip-header h2 {
        font-size: 1.4em;
        margin: 0 0 8px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .vip-crown {
        color: var(--accent-gold);
        font-size: 1.3em;
    }
    
    .vip-header .subtitle {
        font-size: 0.9em;
        opacity: 0.8;
    }
    
    .vip-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vip-card {
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 20px;
        border: 1px solid rgba(255,215,0,0.3);
        transition: all 0.3s ease;
    }
    
    .vip-card:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,215,0,0.5);
        transform: translateY(-3px);
    }
    
    .vip-card h3 {
        font-size: 1em;
        margin: 0 0 12px 0;
        color: var(--accent-gold);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .vip-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .vip-card li {
        padding: 6px 0;
        font-size: 0.85em;
        opacity: 0.9;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .vip-card li::before {
        content: "⭐";
        font-size: 0.8em;
    }
    
    /* Wide card for full reports list */
    .vip-card-wide {
        grid-column: 1 / -1;
    }
    
    .vip-reports-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 8px 20px;
    }
    
    .vip-cta {
        text-align: center;
        margin-top: 25px;
    }
    
    .vip-btn {
        display: inline-block;
        background: linear-gradient(135deg, var(--accent-gold) 0%, #FFC107 100%);
        color: #1a1a2e;
        text-decoration: none;
        padding: 14px 35px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 1em;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    }
    
    .vip-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255,215,0,0.5);
        color: #1a1a2e;
    }
    
    .vip-note {
        text-align: center;
        font-size: 0.75em;
        opacity: 0.6;
        margin-top: 15px;
    }
    
    /* Glossary Section */
    .glossary-section {
        background: var(--bg-white);
        border-radius: 8px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: var(--card-shadow);
        border: 1px solid var(--border-color);
    }
    
    .glossary-section h2 {
        font-size: 1.1em;
        margin: 0 0 15px 0;
    }
    
    .glossary-list {
        font-size: 0.9em;
        color: #555;
        line-height: 1.8;
    }
    
    .glossary-list strong { color: #333; }
    
    /* TradingView Heatmap */
    .heatmap-section {
        margin-bottom: 30px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
    }
    
    /* Industry Group Ranking — DARK "data terminal" panel (intentional contrast
       against the editorial-light body). Hardcoded so it stays dark even when
       user's OS forces dark mode and @media query flips tokens. */
    .ig-ranking-section {
        max-width: 1200px; margin: 20px auto; padding: 0 20px;
    }
    .ig-ranking-header {
        text-align: center; padding: 10px 0 12px; color: var(--apv-ink-tertiary); font-size: 13px; font-family: monospace;
    }
    .ig-ranking-grid {
        display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    }
    @media (max-width: 768px) { .ig-ranking-grid { grid-template-columns: 1fr; } }
    .ig-panel {
        background: #12171f; border: 1px solid #21262d; border-radius: 12px; padding: 16px; overflow: hidden;
    }
    .ig-panel-title {
        font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600;
        margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #21262d;
    }
    .ig-panel-title.top { color: #3fb950; }
    .ig-panel-title.bottom { color: #f85149; }
    .ig-row {
        display: flex; align-items: center; gap: 8px; padding: 6px 0;
        border-bottom: 1px solid rgba(33,38,45,0.5); font-size: 13px;
    }
    .ig-row:last-child { border-bottom: none; }
    .ig-rank {
        min-width: 28px; height: 24px; border-radius: 4px; display: flex;
        align-items: center; justify-content: center; font-weight: 700;
        font-family: 'JetBrains Mono', monospace; font-size: 11px;
    }
    .ig-panel.top-panel .ig-rank { background: rgba(63,185,80,0.15); color: #3fb950; }
    .ig-panel.bottom-panel .ig-rank { background: rgba(248,81,73,0.15); color: #f85149; }
    .ig-group-name {
        flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        color: #e6edf3; font-weight: 500;
    }
    .ig-sector {
        font-size: 10px; padding: 2px 6px; border-radius: 3px; font-family: 'JetBrains Mono', monospace;
        background: rgba(88,166,255,0.1); color: #58a6ff; white-space: nowrap;
    }
    .ig-rs-badge {
        font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12px;
        min-width: 32px; text-align: right; color: #e6edf3;
    }
    .ig-tickers {
        display: flex; gap: 4px; flex-wrap: nowrap;
    }
    /* Ticker chips: dark-amber fill + bright amber text, readable on the
       dark panel bg. Double-class beats .apv-root a (0,1,1). */
    a.ig-ticker,
    .ig-ticker.ig-ticker {
        font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
        font-family: 'JetBrains Mono', monospace;
        background: #3D2E10;          /* solid dark-amber */
        color: #FFD166;               /* bright amber */
        border: 1px solid #C99A2C;
        text-decoration: none; cursor: pointer; white-space: nowrap;
        line-height: 1.2;
    }
    a.ig-ticker:hover,
    .ig-ticker.ig-ticker:hover {
        background: #C99A2C; color: #0A1628; border-color: #E8A317;
        text-decoration: none;
    }
    .ig-loading { text-align: center; padding: var(--apv-space-8) 0; color: var(--apv-ink-tertiary); font-family: var(--apv-font-mono); }
    .ig-date { color: var(--apv-ink-tertiary); font-size: var(--apv-text-xs); font-family: var(--apv-font-mono); margin-top: var(--apv-space-2); text-align: center; }
    .ig-market-tabs { display: flex; gap: 8px; justify-content: center; margin: 8px 0 4px; }
    .ig-tab {
        background: #1a1f29; border: 1px solid #21262d; border-radius: 8px;
        color: var(--apv-ink-tertiary); padding: 6px 16px; cursor: pointer; font-family: 'JetBrains Mono', monospace;
        font-size: 12px; transition: border-color 0.2s, color 0.2s;
    }
    .ig-tab.active { background: var(--apv-bg-subtle); color: var(--apv-accent-primary); border-color: var(--apv-accent-primary); }
    .ig-tab:hover { border-color: var(--apv-accent-primary); }
    .ig-market-panel { display: none; }
    .ig-market-panel.active { display: grid; }

    /* Footer */
    .site-footer {
        background: #333;
        color: #ccc;
        padding: 40px 20px;
        text-align: center;
    }
    
    .footer-disclaimer {
        max-width: 900px;
        margin: 0 auto;
        font-size: 0.8em;
        line-height: 1.8;
    }
    
    .footer-disclaimer p { margin: 0 0 20px 0; }
    .footer-link { color: var(--accent-blue); text-decoration: none; }
    
    /* Bilingual toggle */
    .en-content { display: none !important; }
    .ja-content { display: inline; }
    body.show-english .en-content { display: inline !important; }
    body.show-english .ja-content { display: none !important; }
    
    /* Responsive */
    @media (max-width: 768px) {
        .site-title { font-size: 2em; }
        .archives-grid, .latest-reports-grid, .vip-grid, .summary-grid { grid-template-columns: 1fr; }
        .nav-menu { flex-wrap: wrap; justify-content: center; }
        .nav-menu a { padding: 10px 15px; font-size: 0.85em; }
    
    .vip-section { padding: 25px 15px; }
        .section-header { flex-direction: column; gap: 10px; text-align: center; }
        .diagnostic-section { padding: 20px 15px; }
        .diagnostic-search-box { flex-direction: column; }
        .diag-ticker-input { min-width: 100%; }
        .diag-metrics-row { grid-template-columns: repeat(2, 1fr); }
        .diag-result-header { flex-direction: column; gap: 10px; text-align: center; }
        .diag-actions { flex-direction: column; gap: 10px; text-align: center; }
        /* V4.6.2: Batch compare mobile */
        .batch-compare-table { font-size: 0.75em; }
        .batch-compare-table th,
        .batch-compare-table td { padding: 4px 3px; }
        .sector-cell { display: none; }
        .batch-controls { flex-wrap: wrap; }
    }

    @media (max-width: 480px) {
        .site-title { font-size: 1.6em; }
        .site-logo-icon { width: 32px; height: 32px; }
    }

    /* Mobile tap responsiveness: skip iOS 300 ms double-tap delay on
       all interactive elements, and provide an amber tap-highlight that
       matches the design system. No visual change on desktop. */
    @media (max-width: 768px) {
        .alpharvest-homepage a,
        .alpharvest-homepage button,
        .alpharvest-homepage .apv-btn,
        .alpharvest-homepage .apv-input,
        .alpharvest-homepage .latest-report-link {
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(232,163,23,0.30);
        }
    }

    /* Bug 2 fix: hide parent theme's trending bar — it leaks the
       "Sample Post Title" placeholder when no trending posts match. */
    #et-trending, #top-header .et-trending { display: none !important; }

    /* Bug 5 fix: on the homepage, hide the Theme Builder footer
       ("et-l et-l--footer") — it renders a duplicate disclaimer.
       This template already emits a richer bilingual one in .site-footer. */
    .et-l.et-l--footer { display: none !important; }

    /* ============================================================
       FORCE LIGHT MODE on the .com homepage wrapper.
       tokens.css has an @media (prefers-color-scheme: dark) block that
       re-declares --apv-* vars on :root when the user's OS is in dark mode.
       Re-declaring the same vars on our wrapper (higher-specificity
       element) wins for this subtree — the editorial homepage stays
       light regardless of iPhone/macOS dark-mode setting.
       ============================================================ */
    .alpharvest-homepage[data-theme="light"] {
        --apv-bg-base:         #FAFAF7;
        --apv-bg-surface:      #FFFFFF;
        --apv-bg-subtle:       #F4F3EE;
        --apv-ink-primary:     #0A1628;
        --apv-ink-secondary:   #475569;
        --apv-ink-tertiary:    #94A3B8;
        --apv-accent-primary:  #E8A317;
        --apv-accent-secondary:#1E3A5F;
        --apv-bull:            #047857;
        --apv-bear:            #B91C1C;
        --apv-border:          #E5E7EB;
        --apv-border-strong:   #CBD5E1;
    }

    /* --------------------------------------------------------
       Bug 3 fix: shimmer skeletons + empty/timeout state.
       Applied to .ig-loading / .mini-table-loading / .summary-loading
       -------------------------------------------------------- */
    @keyframes apv-shimmer {
        0%   { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    .apv-skeleton-bar {
        display: inline-block;
        min-width: 120px;
        height: 1em;
        vertical-align: middle;
        border-radius: 4px;
        background: linear-gradient(90deg,
            rgba(255,255,255,0.06) 25%,
            rgba(255,255,255,0.14) 50%,
            rgba(255,255,255,0.06) 75%);
        background-size: 200% 100%;
        animation: apv-shimmer 1.5s ease-in-out infinite;
    }
    .ig-loading, .mini-table-loading, .summary-loading {
        position: relative;
    }
    .ig-loading::after,
    .mini-table-loading::after,
    .summary-loading::after {
        content: '';
        display: block;
        height: 6px;
        margin-top: 8px;
        border-radius: 3px;
        background: linear-gradient(90deg,
            rgba(230,180,80,0.10) 25%,
            rgba(230,180,80,0.30) 50%,
            rgba(230,180,80,0.10) 75%);
        background-size: 200% 100%;
        animation: apv-shimmer 1.5s ease-in-out infinite;
    }
    .apv-empty-state {
        text-align: center; padding: 24px 16px;
        color: #8b949e; font-family: monospace; font-size: 0.9em;
        border: 1px dashed #30363d; border-radius: 8px;
        background: rgba(255,255,255,0.02);
    }
    .apv-empty-state strong { display: block; color: #c9d1d9; font-size: 1em; margin-bottom: 4px; }
    .apv-empty-state button {
        margin-top: 10px; min-height: 32px; padding: 0 14px;
        border: 1px solid #30363d; background: transparent; color: #c9d1d9;
        border-radius: 6px; cursor: pointer; font: inherit;
    }
    .apv-empty-state button:hover { border-color: var(--apv-accent-primary); color: var(--apv-accent-primary); }
    @media (prefers-reduced-motion: reduce) {
        .apv-skeleton-bar,
        .ig-loading::after, .mini-table-loading::after, .summary-loading::after { animation: none; }
    }

@media (max-width: 480px) {
    .alpharvest-homepage .site-header .site-title {
        font-size: clamp(1.25rem, 5.5vw, 1.7rem);
        letter-spacing: normal;
        gap: 0.35rem;
    }
    .alpharvest-homepage .site-header .site-logo-icon { width: 32px; height: 32px; flex: none; }
    .alpharvest-homepage .site-header .site-title-suffix { font-size: .5em; }
}
