/* ══════════════════════════════════════════════════════
   Surf UI — Component Stylesheet
   Scoped to .surf-* classes. No conflicts with app.css.
   ══════════════════════════════════════════════════════ */

/* ── Shell ── */
.surf-shell { max-width: 960px; margin: 0 auto; padding: 0.5rem 0 6rem; }

/* Nav tab base styles moved to app.css (universal nav) */

/* ── Page layout ── */
.surf-page { margin-bottom: 2rem; }
.surf-page h2 {
    font-size: 1rem; font-weight: 600; margin: 0 0 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.surf-page h2 .surf-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.surf-page-title {
    font-size: 1.5rem; font-weight: 700;
    margin: 1rem 0 1.5rem;
}

/* ── Back link ── */
.surf-back {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.875rem; color: var(--text-secondary, #64748b);
    text-decoration: none; transition: color 0.15s;
}
.surf-back:hover { color: var(--primary, #3b82f6); }

/* ── Search bar ── */
.surf-search {
    display: flex; justify-content: center; margin: 2rem 0 2.5rem;
}
.surf-search input {
    width: 100%; max-width: 560px;
    padding: 0.75rem 1.25rem; border-radius: 999px;
    border: 1.5px solid var(--border, #e2e8f0);
    background: var(--card-bg, #fff); color: var(--text, #0f172a);
    font-size: 1rem; outline: none; transition: border-color 0.15s;
}
.surf-search input:focus { border-color: var(--primary, #3b82f6); }
.surf-search input::placeholder { color: var(--text-secondary, #94a3b8); }

/* ── Chips ── */
.surf-chips {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 2rem; justify-content: center;
}
.surf-chips-left { justify-content: flex-start; }
.surf-chip {
    display: inline-flex; align-items: center;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0);
    color: var(--text, #0f172a); font-size: 0.8125rem; font-weight: 500;
    text-decoration: none; cursor: pointer; transition: all 0.15s;
}
.surf-chip:hover { border-color: var(--primary, #3b82f6); color: var(--primary, #3b82f6); }
.surf-chip-active {
    background: var(--primary, #3b82f6); color: #fff;
    border-color: var(--primary, #3b82f6);
}

/* ── Card ── */
.surf-card {
    background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px; padding: 1rem; transition: box-shadow 0.15s;
}
.surf-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.surf-card-link {
    text-decoration: none; color: inherit; display: block;
}
.surf-card-header {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem;
}
.surf-card-title { font-weight: 600; font-size: 0.9375rem; margin: 0 0 0.25rem; }
.surf-card-meta { font-size: 0.8125rem; color: var(--text-secondary, #64748b); }
.surf-card-meta-spaced { margin-top: 0.25rem; }
.surf-card-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.surf-card-grid { display: grid; gap: 1rem; }

/* ── List rows ── */
.surf-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0; border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: 0.875rem;
}
.surf-row:last-child { border-bottom: none; }
.surf-row-title { font-weight: 500; flex: 1; min-width: 0; }
.surf-row-meta { color: var(--text-secondary, #64748b); font-size: 0.8125rem; white-space: nowrap; }

/* ── Stats ── */
.surf-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem;
    margin-bottom: 2rem;
}
.surf-stats-compact { margin-bottom: 1.25rem; }
.surf-stat {
    background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px; padding: 1.25rem; text-align: center;
}
.surf-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text, #0f172a); }
.surf-stat-value-sm { font-size: 1.25rem; }
.surf-stat-label { font-size: 0.8125rem; color: var(--text-secondary, #64748b); margin-top: 0.25rem; }

/* ── Kanban ── */
.surf-kanban {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-bottom: 2rem;
}
.surf-kanban-full {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: start;
}
.surf-kanban-col { min-width: 0; }
.surf-kanban-col h3 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-secondary, #64748b);
    margin: 0 0 0.5rem; padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.surf-kanban-count {
    font-size: 0.75rem; font-weight: 400;
    color: var(--text-secondary, #64748b); margin-left: 0.35rem;
}
.surf-kanban-cards { min-height: 40px; }
.surf-kanban-over {
    outline: 2px dashed var(--primary, #3b82f6);
    outline-offset: -2px; border-radius: 6px;
    background: rgba(59,130,246,0.04); min-height: 60px;
}
.surf-kanban-col .surf-card { margin-bottom: 0.5rem; }
.surf-card-draggable { cursor: grab; user-select: none; }
.surf-card-draggable:active { cursor: grabbing; }
.surf-empty-col {
    font-size: 0.8125rem; color: var(--text-secondary, #64748b);
    padding: 0.5rem 0 0.25rem;
}

/* ── Section (collapsible details) ── */
.surf-section { margin-bottom: 1.5rem; }
.surf-section summary {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    padding: 0.5rem 0; list-style: none;
}
.surf-section summary::-webkit-details-marker { display: none; }
.surf-section summary::before {
    content: "\25B6"; font-size: 0.625rem;
    transition: transform 0.15s; color: var(--text-secondary, #64748b);
}
.surf-section[open] summary::before { transform: rotate(90deg); }
.surf-section .surf-section-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.surf-section-body { padding-top: 0.75rem; }
.surf-section-subheading {
    font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-secondary, #64748b);
    margin: 1rem 0 0.5rem;
}

/* ── Progress bar ── */
.surf-progress {
    width: 100%; height: 8px; border-radius: 4px;
    background: var(--border, #e2e8f0); overflow: hidden;
    margin: 0.5rem 0;
}
.surf-progress-fill {
    height: 100%; border-radius: 4px;
    background: var(--primary, #3b82f6); transition: width 0.3s;
}

/* ── Buttons ── */
.surf-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem; border-radius: 6px;
    font-size: 0.8125rem; font-weight: 500;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.15s; white-space: nowrap;
}
.surf-btn-lg { padding: 0.6rem 1.5rem; font-size: 0.9375rem; }
.surf-btn-primary { background: var(--primary, #3b82f6); color: #fff; }
.surf-btn-primary:hover { opacity: 0.9; color: #fff; }
.surf-btn-outline {
    background: transparent; color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
}
.surf-btn-outline:hover { border-color: var(--primary, #3b82f6); color: var(--primary, #3b82f6); }

/* ── Status dots ── */
.surf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.surf-dot-green { background: var(--color-success, #22c55e); }
.surf-dot-gray { background: #94a3b8; }
.surf-dot-yellow { background: #eab308; }
.surf-dot-red { background: var(--color-danger, #ef4444); }

/* ── Badges ── */
.surf-badge {
    display: inline-flex; align-items: center;
    padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
}
.surf-badge-lg { padding: 0.3rem 0.75rem; font-size: 0.75rem; }
.surf-badge-p1, .surf-badge-urgent { background: #fef2f2; color: #dc2626; }
.surf-badge-p2, .surf-badge-high { background: #fef2f2; color: #dc2626; }
.surf-badge-p3, .surf-badge-medium { background: #fefce8; color: #ca8a04; }
.surf-badge-low { background: #f0f9ff; color: #2563eb; }
.surf-badge-status {
    background: var(--active-bg, rgba(59,130,246,0.08));
    color: var(--primary, #3b82f6);
}
.surf-badge-type { background: #f0fdf4; color: #16a34a; }

/* ── Task detail layout ── */
.surf-detail-header { margin-top: 1rem; }
.surf-detail-title { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0 0.75rem; }
.surf-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.surf-meta-row {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    font-size: 0.875rem; margin-bottom: 1.5rem;
}
.surf-description { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 1.5rem; }

/* ── Comment ── */
.surf-comment { margin-bottom: 0.75rem; }
.surf-comment-header {
    display: flex; justify-content: space-between; margin-bottom: 0.35rem;
}
.surf-comment-author { font-weight: 600; font-size: 0.875rem; }
.surf-comment-body { font-size: 0.875rem; line-height: 1.5; }

/* ── Conversation list (chat) ── */
.surf-conv {
    display: flex; gap: 0.75rem; padding: 0.875rem 0;
    border-bottom: 1px solid var(--border, #e2e8f0); cursor: pointer;
}
.surf-conv:last-child { border-bottom: none; }
.surf-conv:hover { background: var(--hover-bg, rgba(0,0,0,0.02)); }
.surf-conv-icon { flex-shrink: 0; font-size: 1.25rem; line-height: 1; }
.surf-conv-body { flex: 1; min-width: 0; }
.surf-conv-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.15rem; }
.surf-conv-preview {
    font-size: 0.8125rem; color: var(--text-secondary, #64748b);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.surf-conv-time { font-size: 0.75rem; color: var(--text-secondary, #64748b); white-space: nowrap; flex-shrink: 0; }

/* ── Divider ── */
.surf-divider { border: none; border-top: 1px solid var(--border, #e2e8f0); margin: 1.5rem 0; }

/* ── Toolbar (flex row, space-between) ── */
.surf-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* ── Bar chart rows (grow metrics) ── */
.surf-bar-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.4rem 0; font-size: 0.8125rem;
}
.surf-bar-label { width: 70px; font-weight: 500; flex-shrink: 0; }
.surf-bar-track {
    flex: 1; height: 8px; border-radius: 4px;
    background: var(--border, #e2e8f0); overflow: hidden;
}
.surf-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.surf-bar-fill-red { background: var(--color-danger, #ef4444); }
.surf-bar-fill-orange { background: #f97316; }
.surf-bar-fill-blue { background: var(--color-primary, #3b82f6); }
.surf-bar-fill-gray { background: #94a3b8; }
.surf-bar-count { width: 60px; text-align: right; color: var(--text-secondary, #64748b); flex-shrink: 0; }

/* ── Marketing/SEO row ── */
.surf-seo-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem;
}
.surf-seo-label { font-weight: 600; }
.surf-seo-score { font-size: 0.875rem; color: var(--text-secondary, #64748b); }

/* ── Form elements ── */
.surf-form-group { margin-bottom: 1.25rem; }
.surf-label {
    display: block; font-size: 0.8125rem; font-weight: 600;
    margin-bottom: 0.35rem; color: var(--text, #0f172a);
}
.surf-required { color: var(--danger, #ef4444); }
.surf-input, .surf-select, .surf-textarea {
    width: 100%; padding: 0.6rem 0.75rem; border-radius: 6px;
    border: 1.5px solid var(--border, #e2e8f0);
    background: var(--card-bg, #fff); color: var(--text, #0f172a);
    font-size: 0.875rem; font-family: inherit; outline: none;
    transition: border-color 0.15s; box-sizing: border-box;
}
.surf-input:focus, .surf-select:focus, .surf-textarea:focus { border-color: var(--primary, #3b82f6); }
.surf-input::placeholder, .surf-textarea::placeholder { color: var(--text-secondary, #94a3b8); }
.surf-textarea { resize: vertical; }
.surf-select { cursor: pointer; appearance: auto; }
.surf-form-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-bottom: 1.25rem;
}
.surf-form-actions { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.surf-form-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 0.5rem;
}

/* ── Radio row (story points) ── */
.surf-radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.surf-radio {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.35rem 0.65rem; border-radius: 6px;
    border: 1px solid var(--border, #e2e8f0); cursor: pointer;
    font-size: 0.8125rem; transition: all 0.15s;
}
.surf-radio:has(input:checked) {
    border-color: var(--primary, #3b82f6); background: var(--active-bg, rgba(59,130,246,0.08));
    color: var(--primary, #3b82f6); font-weight: 600;
}
.surf-radio input { display: none; }

/* ── Form divider ("or fill in manually") ── */
.surf-form-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: var(--text-secondary, #94a3b8);
    font-size: 0.8125rem;
}
.surf-form-divider::before, .surf-form-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border, #e2e8f0);
}

/* ── Filter group ── */
.surf-filter-group { margin-bottom: 1.75rem; }
.surf-filter-group h2 { margin-bottom: 0.5rem; }

/* ── Nav utilities (from existing nav partial) ── */
.surf-logout-form { margin: 0; }
.surf-logout-btn {
    width: 100%; text-align: left; background: none;
    border: none; font: inherit; cursor: pointer;
}

/* ── Task create page ── */
.surf-task-create-page { padding-bottom: 5rem; }
.surf-task-create-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.5rem;
}
.surf-ai-usage {
    padding: 0.25rem 0.75rem; border-radius: 999px;
    background: var(--active-bg, rgba(59,130,246,0.08));
    font-size: 0.75rem;
}
.surf-ai-status {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem;
    border-radius: 8px; background: var(--active-bg, rgba(59,130,246,0.08));
    font-size: 0.875rem; color: var(--primary, #3b82f6); font-weight: 500;
}
.surf-ai-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary, #3b82f6);
    animation: surf-pulse 1.2s ease-in-out infinite;
}
@keyframes surf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.surf-task-results { display: flex; flex-direction: column; gap: 0.75rem; }
.surf-task-empty {
    text-align: center; padding: 3rem 1rem;
    color: var(--text-secondary, #64748b);
}
.surf-task-empty-icon { margin-bottom: 1rem; }
.surf-task-empty p { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text, #0f172a); }
.surf-task-manual-toggle { text-align: center; margin-top: 1rem; }

/* Generated task cards */
.surf-gen-task { margin-bottom: 0; }
.surf-gen-task-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.surf-gen-task-info { display: flex; gap: 0.35rem; }
.surf-gen-task-actions { display: flex; gap: 0.35rem; }
.surf-gen-task-name { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.surf-gen-edit-form {
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

/* Chat input bar */
.surf-chat-input-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--card-bg, #fff);
    border-top: 1px solid var(--border, #e2e8f0);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}
.surf-chat-input-wrap {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: flex-end; gap: 0.5rem;
}
.surf-chat-textarea {
    flex: 1; padding: 0.6rem 0.75rem; border-radius: 8px;
    border: 1.5px solid var(--border, #e2e8f0);
    background: var(--bg, #f8fafc); color: var(--text, #0f172a);
    font-size: 0.875rem; font-family: inherit; outline: none;
    resize: none; min-height: 38px; max-height: 120px;
    transition: border-color 0.15s; box-sizing: border-box;
}
.surf-chat-textarea:focus { border-color: var(--primary, #3b82f6); }
.surf-chat-textarea::placeholder { color: var(--text-secondary, #94a3b8); }
.surf-chat-send {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--primary, #3b82f6); color: #fff;
    border: none; cursor: pointer; flex-shrink: 0;
    transition: opacity 0.15s;
}
.surf-chat-send:hover { opacity: 0.9; }
.surf-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Toast notifications */
.surf-toast {
    position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%);
    padding: 0.6rem 1.25rem; border-radius: 8px; z-index: 200;
    font-size: 0.875rem; font-weight: 500;
    animation: surf-toast-in 0.2s ease-out;
    max-width: 90vw; text-align: center;
}
.surf-toast-success { background: var(--color-success, #22c55e); color: #fff; }
.surf-toast-error { background: var(--color-danger, #ef4444); color: #fff; }
@keyframes surf-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Nav tab layout and mobile bottom bar moved to app.css (universal nav) */

/* ── Surf-specific mobile overrides ── */
@media (max-width: 768px) {
    .surf-shell { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .surf-task-create-page { padding-bottom: 8rem; }
    .surf-chat-input-bar { bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
    .surf-kanban { grid-template-columns: 1fr; }
    .surf-kanban-full { grid-template-columns: 1fr; }
    .surf-stats { grid-template-columns: 1fr; }
    .surf-search input { max-width: 100%; }
    .surf-form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   Shared Components — reusable across all Surf pages
   ══════════════════════════════════════════════════════ */

/* ── surf-row: fixed-height row with icon / text / arrow ──
   ONE structure, THREE states: default, --loading, --empty.
   Height is always the same because the DOM never changes shape. */
.surf-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-radius: 10px;
    border: 1px solid var(--border, #334155); background: var(--card-bg, #1e293b);
    text-decoration: none; color: var(--text); transition: all 0.15s;
    cursor: pointer; box-sizing: border-box;
}
.surf-row:hover { border-color: var(--primary, #3b82f6); background: rgba(59,130,246,0.04); }
.surf-row-icon { flex-shrink: 0; color: var(--text-muted, #64748b); width: 18px; height: 18px; display: flex; align-items: center; }
.surf-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.surf-row-title {
    font-size: 0.8125rem; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.2; min-height: 1em;
}
.surf-row-desc {
    font-size: 0.6875rem; color: var(--text-muted, #94a3b8);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.2; min-height: 0.9em; margin-top: 0.125rem;
}
.surf-row-arrow { margin-left: auto; color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center; }

/* Loading state — same DOM, pulse overlay on text */
@keyframes surf-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.15; }
}
.surf-row--loading { cursor: default; }
.surf-row--loading:hover { border-color: var(--border, #334155); background: var(--card-bg, #1e293b); }
.surf-row--loading .surf-row-title,
.surf-row--loading .surf-row-desc {
    color: transparent; background: var(--text-muted, #64748b); border-radius: 3px;
    animation: surf-pulse 1.5s ease-in-out infinite;
}
.surf-row--loading .surf-row-icon svg,
.surf-row--loading .surf-row-arrow svg { opacity: 0; }
.surf-row--loading .surf-row-icon,
.surf-row--loading .surf-row-arrow {
    background: var(--text-muted, #64748b); border-radius: 3px;
    animation: surf-pulse 1.5s ease-in-out infinite;
}

/* Stagger animation */
.surf-row--loading:nth-child(2) .surf-row-title,
.surf-row--loading:nth-child(2) .surf-row-desc,
.surf-row--loading:nth-child(2) .surf-row-icon,
.surf-row--loading:nth-child(2) .surf-row-arrow { animation-delay: 0.1s; }
.surf-row--loading:nth-child(3) .surf-row-title,
.surf-row--loading:nth-child(3) .surf-row-desc,
.surf-row--loading:nth-child(3) .surf-row-icon,
.surf-row--loading:nth-child(3) .surf-row-arrow { animation-delay: 0.2s; }

/* Empty/placeholder state — visible but dimmed */
.surf-row--empty { cursor: default; opacity: 0.4; }
.surf-row--empty:hover { border-color: var(--border, #334155); background: var(--card-bg, #1e293b); }

/* ── surf-infocard: fixed-height card with header / summary / facts ── */
.surf-infocard {
    background: var(--card-bg, #1e293b); border: 1px solid var(--border, #334155);
    border-radius: 12px; overflow: hidden; min-height: 16rem;
}
.surf-infocard-header { display: flex; gap: 1rem; padding: 1.25rem; }
.surf-infocard-image {
    width: 80px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
    background: var(--border, #334155);
}
.surf-infocard-info { flex: 1; min-width: 0; }
.surf-infocard-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0; line-height: 1.3; }
.surf-infocard-subtitle { font-size: 0.8125rem; color: var(--text-muted, #94a3b8); margin-top: 0.125rem; }
.surf-infocard-badge {
    display: inline-block; font-size: 0.625rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 0.125rem 0.5rem; border-radius: 4px; margin-top: 0.375rem;
    background: rgba(59,130,246,0.12); color: #60a5fa;
}
.surf-infocard-badge.who { background: rgba(139,92,246,0.12); color: #a78bfa; }
.surf-infocard-badge.what { background: rgba(59,130,246,0.12); color: #60a5fa; }
.surf-infocard-badge.when { background: rgba(251,191,36,0.12); color: #fbbf24; }
.surf-infocard-badge.where { background: rgba(34,197,94,0.12); color: #4ade80; }
.surf-infocard-badge.how { background: rgba(244,63,94,0.12); color: #fb7185; }
.surf-infocard-summary {
    font-size: 0.8125rem; color: var(--text-secondary, #cbd5e1); line-height: 1.5;
    padding: 0 1.25rem; margin: 0;
}
.surf-infocard-summary.collapsed {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.surf-infocard-more {
    display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary, #3b82f6);
    cursor: pointer; border: none; background: none; padding: 0.25rem 1.25rem 0; font-family: inherit;
}
.surf-infocard-more:hover { text-decoration: underline; }
.surf-infocard-facts {
    display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem;
    padding: 0.75rem 1.25rem 1.25rem; font-size: 0.8125rem;
}
.surf-infocard-fact-label { font-weight: 600; color: var(--text-muted, #94a3b8); white-space: nowrap; }
.surf-infocard-fact-value { color: var(--text); }
.surf-infocard-steps {
    padding: 0.75rem 1.25rem 1.25rem; font-size: 0.8125rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.surf-infocard-step { display: flex; gap: 0.625rem; align-items: flex-start; }
.surf-infocard-step-num {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary, #3b82f6); color: white;
    font-size: 0.6875rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.surf-infocard-step-text { color: var(--text); line-height: 1.5; }

/* Skeleton state for infocard */
.surf-infocard--skeleton .surf-skel {
    background: var(--text-muted, #64748b); border-radius: 4px;
    animation: surf-pulse 1.5s ease-in-out infinite;
}
.surf-infocard--skeleton .surf-skel-title { width: 60%; height: 1.25rem; margin-bottom: 0.375rem; }
.surf-infocard--skeleton .surf-skel-subtitle { width: 40%; height: 0.8125rem; margin-bottom: 0.375rem; }
.surf-infocard--skeleton .surf-skel-badge { width: 3rem; height: 0.625rem; }
.surf-infocard--skeleton .surf-skel-line { width: 100%; height: 0.8125rem; margin-bottom: 0.25rem; }
.surf-infocard--skeleton .surf-skel-line-short { width: 90%; }
.surf-infocard--skeleton .surf-skel-more { width: 2.5rem; height: 0.75rem; margin-top: 0.25rem; }
.surf-infocard--skeleton .surf-skel-fact-l { width: 5rem; height: 0.8125rem; }
.surf-infocard--skeleton .surf-skel-fact-v { width: 70%; height: 0.8125rem; }

/* Section label */
.surf-section-label {
    font-size: 0.6875rem; font-weight: 600; color: var(--text-muted, #94a3b8);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-top: 0.5rem; margin-bottom: 0.125rem;
}
