:root {
    --primary: #2563eb;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    color: #0f172a;
    margin-bottom: 5px;
}

.subtitle {
    color: #64748b;
    margin-top: 0;
    margin-bottom: 25px;
}

.control-panel {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.search-box-wrapper {
    width: 100%;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.status-bar {
    font-size: 14px;
    color: #475569;
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

#counter {
    font-weight: 600;
    color: var(--primary);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.meta-line {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0;
}

.meta-line strong {
    color: #475569;
}

.everything-text {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    margin-top: 12px;
    word-break: break-word;
}

mark {
    background-color: #fef08a;
    color: #0f172a;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}