:root {
    --ibv-bg: #faf7f0;
    --ibv-bg-soft: #f0e8de;
    --ibv-card: #ffffff;
    --ibv-card-elevated: #fffaf5;
    --ibv-border: #e4d8cb;
    --ibv-border-strong: #d2bda9;
    --ibv-accent: #c85a34;
    --ibv-accent-2: #d97550;
    --ibv-accent-soft: #fef0e8;
    --ibv-ink: #2c1810;
    --ibv-text: #1c1410;
    --ibv-muted: #7a6c62;
    --ibv-danger: #c0392b;
    --ibv-danger-soft: #fdecea;
    --ibv-success: #2f855a;
    --ibv-success-soft: #ecf6f0;
    --ibv-info: #2b6cb0;
    --ibv-info-soft: #ebf3fb;
    --ibv-shadow: 0 16px 50px rgba(44, 24, 16, 0.12);
    --ibv-shadow-soft: 0 8px 28px rgba(44, 24, 16, 0.08);
    --ibv-radius-sm: 8px;
    --ibv-radius: 12px;
    --ibv-radius-lg: 18px;
    --ibv-font-serif: 'EB Garamond', Georgia, serif;
    --ibv-font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    --ibv-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

.ibv-root {
    min-height: 100vh;
    background: linear-gradient(to bottom right, var(--ibv-bg), var(--ibv-bg-soft));
    color: var(--ibv-text);
    font-family: var(--ibv-font-sans);
}

.ibv-card {
    background: color-mix(in srgb, var(--ibv-card) 94%, transparent);
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius-lg);
    box-shadow: var(--ibv-shadow-soft);
}

.ibv-btn {
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius);
    background: var(--ibv-card);
    color: var(--ibv-text);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.ibv-btn:hover {
    border-color: var(--ibv-accent);
    color: var(--ibv-accent);
}

.ibv-btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ibv-accent), var(--ibv-accent-2));
    color: #ffffff;
    font-weight: 700;
}

.ibv-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--ibv-border);
    border-radius: 999px;
    background: var(--ibv-accent-soft);
    color: var(--ibv-accent);
    padding: 0.12rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 650;
}

.ibv-chip-missing {
    background: var(--ibv-danger-soft);
    border-color: color-mix(in srgb, var(--ibv-danger) 50%, var(--ibv-border));
    color: var(--ibv-danger);
}

@keyframes ibv-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ibv-pop {
    from { opacity: 0; transform: scale(0.96) translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes ibv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
