:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --bg: #f7f9f6;
    --card-bg: #ffffff;
    --text: #202420;
    --muted: #5c655c;
    --border: #dde3dc;
    --danger: #b3261e;
}

* { box-sizing: border-box; }

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

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--green-dark);
    color: white;
}

.site-header .brand { color: white; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.site-header nav a { color: white; text-decoration: none; margin-left: 1.2rem; opacity: 0.9; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

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

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

.flash { padding: 0.8rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; }
.flash-success { background: #eaf5ea; color: var(--green-dark); border: 1px solid #c6e6c2; }

form.stack { display: flex; flex-direction: column; gap: 0.9rem; max-width: 420px; }
label { font-weight: 600; font-size: 0.9rem; }
input, textarea, select {
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

button, .btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: var(--green-dark); }
.btn-danger { background: var(--danger); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.photo-card img { width: 100%; border-radius: 6px; display: block; }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: #fff4d6; color: #8a6300; }
.badge-success { background: #eaf5ea; color: var(--green-dark); }
.badge-error { background: #fdecea; color: var(--danger); }

.muted { color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); }

.share-bar { display: flex; height: 1.4rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); margin: 0.5rem 0; }
.share-bar > span { display: block; height: 100%; }
.share-clear { background: #cfe8f3; }
.share-cloudy { background: #f4f1e8; }
.share-amber { background: #d9902f; }
.share-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1px solid var(--border); margin-right: 0.3rem; vertical-align: middle; }

.chart { width: 100%; height: auto; display: block; margin: 0.5rem 0; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-text { fill: var(--muted); font-size: 12px; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--green-dark); stroke: #fff; stroke-width: 1.5; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; margin: 0.8rem 0; }
.table-wrap { overflow-x: auto; }
