* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 30%),
        #f5f7fb;
    color: #1f2937;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px 40px;
}

.hero {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    margin-bottom: 10px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.hero p {
    margin: 0;
    color: #64748b;
}

.panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.search-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
}

.search-row input:focus {
    border-color: #6366f1;
}

.search-row button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #111827;
    color: white;
}

.search-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-row select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}

.status {
    margin-top: 14px;
    min-height: 24px;
    font-size: 14px;
    color: #475569;
}

.results.empty {
    color: #64748b;
}

.result-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.result-card a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.result-card a:hover {
    text-decoration: underline;
}

.meta {
    margin: 8px 0 12px;
    font-size: 13px;
    color: #64748b;
}

.block-title {
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.snippet,
.clean-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-size: 14px;
    color: #334155;
}

.clean-text {
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.key-points {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.6;
    font-size: 14px;
}

.key-points li {
    margin-bottom: 6px;
}