:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #d9dee7;
    --primary: #1f6feb;
    --primary-dark: #174ea6;
    --danger: #b42318;
    --warning: #b54708;
    --success: #027a48;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 32px;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

h1, h2, h3 {
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p, form, table, .project-card, pre {
    margin-bottom: 20px;
}

form,
table,
.project-card,
pre {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

form {
    padding: 16px;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

textarea {
    max-width: 900px;
}

button,
.button {
    display: inline-block;
    width: auto;
    margin: 4px 4px 4px 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef2f7;
    font-weight: 700;
}

tr:last-child td {
    border-bottom: 0;
}

.project-card {
    padding: 18px;
}

.project-card h3 {
    margin-bottom: 8px;
}

pre {
    padding: 16px;
    white-space: pre-wrap;
    overflow-x: auto;
}

.status-new {
    color: var(--muted);
}

.status-started,
.status-crm_needed {
    color: var(--warning);
    font-weight: 700;
}

.status-added_to_crm,
.status-updated_in_crm,
.status-note_added {
    color: var(--success);
    font-weight: 700;
}

.status-ignored,
.status-do_not_contact {
    color: var(--danger);
    font-weight: 700;
}

.nav,
.actions,
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.stats div {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
}

@media (max-width: 700px) {
    body {
        padding: 16px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 8px;
    }
}