body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.input,
.textarea,
select.input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.85rem 0.95rem;
    font-size: 0.98rem;
    line-height: 1.3;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.input:focus,
.textarea:focus,
select.input:focus {
    outline: none;
    border-color: #334155;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.12);
}

.label {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 160ms ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #0f172a;
    color: #fff;
}

.btn-primary:hover {
    background: #1e293b;
}

.btn-secondary {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-danger {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.btn-danger:hover {
    background: #ffe4e6;
}

.note-btn {
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #fff;
    font-weight: 700;
    transition: 160ms ease;
}

.note-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.template-chip {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1.2;
    transition: 160ms ease;
    cursor: pointer;
}

.template-chip.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.candidate-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    padding: 0.9rem;
    transition: 160ms ease;
    cursor: pointer;
}

.candidate-card.active {
    border-color: #0f172a;
    box-shadow: inset 0 0 0 1px #0f172a;
}

.candidate-card:hover {
    border-color: #94a3b8;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-slate {
    background: #e2e8f0;
    color: #0f172a;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-amber {
    background: #fef3c7;
    color: #92400e;
}

.badge-rose {
    background: #ffe4e6;
    color: #be123c;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.24);
    z-index: 9999;
    min-width: 220px;
    text-align: center;
}

pre.inline-pre {
    white-space: pre-wrap;
    margin: 0;
    font-family: inherit;
}

.result-comment {
    border-left: 3px solid #cbd5e1;
    padding-left: 0.8rem;
}

.small-muted {
    font-size: 0.82rem;
    color: #64748b;
}
