* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
    background: #f4f6f5;
    color: #1c2b28;
}
.centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.card { background: #fff; border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 360px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; background: #2b7a78; color: #fff; flex-wrap: wrap; gap: .5rem;
}
.topbar a { color: #fff; text-decoration: none; font-size: 0.9rem; }
.topbar h1 { font-size: 1.1rem; margin: 0; flex: 1; text-align: center; }
main { padding: 1rem; max-width: 900px; margin: 0 auto; }
label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
input, select, button { width: 100%; padding: 0.6rem; margin-top: 0.25rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 8px; }
button { background: #2b7a78; color: #fff; border: none; cursor: pointer; margin-top: 0.5rem; }
button:active { background: #1f5b59; }
.error { color: #b3261e; }
.notice { color: #2b7a78; font-weight: bold; }
.cistern-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .cistern-grid { grid-template-columns: 1fr 1fr; } }
.cistern-card { display: block; background: #fff; border-radius: 12px; padding: 1rem; text-decoration: none; color: inherit; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.fill-bar { width: 40px; height: 100px; background: #e0e0e0; border-radius: 6px; position: relative; overflow: hidden; margin: 0.5rem 0; }
.fill-bar-inner { position: absolute; bottom: 0; width: 100%; background: #2b7a78; }
.fill-value { font-size: 2rem; font-weight: 700; color: #2b7a78; margin: 0; }
.fill-liters { font-size: 0.9rem; color: #666; }
.fill-time { font-size: 0.75rem; color: #888; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
th, td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #eee; text-align: left; white-space: nowrap; }
.panel { background: #fff; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.inline-form { margin-top: 1rem; }
.range-select { margin-bottom: 0.5rem; }
.hero-status { background: #fff; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.hero-percent { font-size: 3rem; font-weight: 700; color: #2b7a78; line-height: 1; }
.hero-liters { font-size: 1.3rem; color: #444; margin-top: 0.25rem; }
.hero-time { font-size: 0.85rem; color: #888; margin-top: 0.5rem; }
.table-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.details-toggle { display: flex; align-items: center; gap: .4rem; font-size: 0.85rem; width: auto; }
.details-toggle input { width: auto; margin: 0; }
table .details-col { display: none; }
table.show-details .details-col { display: table-cell; }
.site-footer { text-align: center; padding: 1.5rem 1rem; color: #999; font-size: 0.8rem; }
