body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
}
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}
.header h1 {
    margin: 0;
    font-size: 2.5rem;
}
.header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.summary-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.summary-card .number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}
.summary-card .sub-number {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}
.valid { color: #28a745; }
.external { color: #007bff; }
.invalid { color: #dc3545; }
.circular { color: #ffc107; }
.total { color: #6c757d; }
.section {
    background: white;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.section-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}
.section-content {
    padding: 20px;
}
.card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 8px;
}
.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
details {
    border: none;
    background: none;
}
details summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    border-radius: 6px;
    transition: background-color 0.2s;
}
details summary:hover {
    background-color: #f8f9fa;
}
details summary::-webkit-details-marker {
    display: none;
}
.summary-title {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    flex: 1;
    word-break: break-all;
}
.summary-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}
.count-badge {
    background: #007bff;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}
.count-badge.valid { background: #28a745; }
.count-badge.external { background: #007bff; }
.count-badge.invalid { background: #dc3545; }
.expand-icon {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.2s;
}
details[open] .expand-icon {
    transform: rotate(180deg);
}
.card-content {
    padding: 0 20px 16px 20px;
    border-top: 1px solid #e1e5e9;
    background-color: #fafbfc;
}
.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.source-item {
    background: #ffffff;
    border: 1px solid #d0d7de;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 4px;
    display: block;
    width: 100%;
}
.chain-display {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
}
.chain-step {
    display: inline;
    color: #333;
}
.chain-arrow {
    color: #666;
    margin: 0 6px;
    font-weight: bold;
}
.file-info {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f6f8fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}
.file-path {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Monaco', 'Menlo', monospace;
}
.external-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}
.external-link:hover {
    text-decoration: underline;
}
.no-items {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}
.collapsible {
    cursor: pointer;
    user-select: none;
}
.collapsible:hover {
    background-color: #f1f3f4;
}
.content {
    display: none;
}
.content.active {
    display: block;
}
.toggle-icon {
    float: right;
    transition: transform 0.3s;
}
.toggle-icon.rotated {
    transform: rotate(180deg);
}
.chain-cell {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}
.arrow {
    color: #666;
    margin: 0 8px;
    font-weight: bold;
}
