:root {
    color-scheme: light dark;
}

h1 {
    color: #333;
    font-family: Arial, sans-serif;
    text-align: center;
}

.tit {
    color: #555;
    font-family: 'Helvetica Neue', sans-serif;
    text-align: left;
    margin-left: 20px;
}

#subheader {
    color: #777;
    font-family: 'Courier New', monospace;
    text-align: right;
    margin-right: 20px;
}

#webpods-root {
    margin: 24px auto;
    max-width: 980px;
    padding: 0 16px 24px;
}

.webpods-title {
    text-align: left;
    margin: 0 0 12px;
    color: #1f2937;
    font-family: 'Helvetica Neue', sans-serif;
}

.webpods-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: 'Helvetica Neue', sans-serif;
}

#webpods-sort {
    border: 1px solid #9ca3af;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
}

.webpods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.webpod-card {
    display: flex;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
}

.webpod-icon {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #d1d5db;
    background: #fff;
}

.webpod-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #374151;
}

.webpod-body {
    min-width: 0;
}

.webpod-body h3 {
    margin: 0 0 6px;
}

.webpod-body p {
    margin: 0 0 4px;
    color: #374151;
}

.webpod-link {
    display: inline-block;
    margin-top: 6px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.webpod-link:hover {
    text-decoration: underline;
}

.webpods-empty {
    color: #6b7280;
    font-family: 'Helvetica Neue', sans-serif;
}
