:root {
    --border: #ddd;
    --muted: #666;
    --bg-alt: #f7f7f7;
    --accent: #2c5aa0;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    color: #222;
    background: #fff;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.topnav a { text-decoration: none; color: #222; }
.topnav .brand { font-weight: 700; }
.topnav .right { margin-left: auto; color: var(--muted); }

.container { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
select, textarea {
    width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem;
}
textarea { min-height: 5rem; }

button, .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}
.btn-secondary { background: #fff; color: var(--accent); }

.error { color: #b00020; margin-bottom: 1rem; }
.muted { color: var(--muted); }
.pill {
    display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px;
    background: var(--bg-alt); font-size: 0.8rem; text-transform: capitalize;
}
.activity { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.activity .meta { color: var(--muted); font-size: 0.8rem; }
.stage-form { display: inline; }
.deal-card { border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem; margin-bottom: 0.75rem; }
