:root {
    --brand: #1f6f54;
    --brand-dark: #16503c;
    --bg: #f7f7f5;
    --surface: #ffffff;
    --text: #1c1c1a;
    --muted: #6b6b64;
    --border: #dedad2;
    --danger: #b3261e;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.app-header {
    background: var(--brand);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-header h1 {
    font-size: 1.1rem;
    margin: 0;
}

.user-badge {
    font-size: 0.85rem;
    opacity: 0.9;
}

.app-nav {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 2.6rem;
    z-index: 9;
}

.app-nav a {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}

.app-nav a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
}

.offline-banner {
    background: #7a5b00;
    color: #fff;
    text-align: center;
    padding: 0.4rem;
    font-size: 0.85rem;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

label {
    display: block;
    font-size: 0.9rem;
    margin: 0.6rem 0 0.25rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}

textarea { resize: vertical; min-height: 3rem; }

button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    width: 100%;
    margin-top: 0.85rem;
}

.btn-primary:active { background: var(--brand-dark); }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-link {
    background: none;
    border: none;
    color: var(--brand);
    padding: 0.25rem 0;
    text-decoration: underline;
}

.error-text {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.obs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.obs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.obs-list li:last-child { border-bottom: none; }

.obs-species { font-weight: 600; }
.obs-meta { color: var(--muted); font-size: 0.85rem; }

.pill {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #eef1ee;
    color: var(--muted);
}

.pill-pending {
    background: #fff2cc;
    color: #7a5b00;
}

.quick-add-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.quick-add-row > * { flex: 1; }

.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 1.5rem 0;
}

.field-row {
    display: flex;
    gap: 0.5rem;
}

.field-row > * { flex: 1; }
