:root {
  --ink: #112a2b;
  --muted: #667c7c;
  --ocean: #0b6f72;
  --aqua: #32b6aa;
  --foam: #edf8f5;
  --sand: #f5f2e9;
  --line: #dce8e4;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(26, 71, 70, .10);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(145deg, #f7fbfa 0%, #edf7f5 55%, #f7f4eb 100%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(11,111,114,.1); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; background: linear-gradient(140deg, var(--ocean), var(--aqua)); font-weight: 800; letter-spacing: -.5px; box-shadow: 0 8px 20px rgba(11,111,114,.2); }
.brand strong, .brand small { display: block; }.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 13px; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #3fc980; box-shadow: 0 0 0 4px rgba(63,201,128,.13); }
.header-actions { display: flex; align-items: center; gap: 10px; }.header-actions form { margin: 0; }.logout-button, .settings-button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: white; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }.logout-button:hover, .settings-button:hover, .settings-button.is-active { color: var(--ocean); border-color: rgba(11,111,114,.35); background: var(--foam); }
.public-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 70px; }
.app-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.app-main { width: 100%; max-width: 1450px; margin: 0 auto; padding: 40px clamp(24px, 4vw, 58px) 70px; overflow: hidden; }
.sidebar { position: sticky; top: 76px; align-self: start; height: calc(100vh - 76px); padding: 30px 18px 22px; display: flex; flex-direction: column; background: rgba(255,255,255,.66); border-right: 1px solid rgba(11,111,114,.1); }
.sidebar-label { margin: 0 12px 12px; color: #8ba09e; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.sidebar-nav { display: grid; gap: 5px; }.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 7px 10px; border-radius: 12px; color: #536b6a; font-size: 13px; font-weight: 700; text-decoration: none; }.sidebar-nav a > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: #72908e; background: rgba(255,255,255,.8); font-size: 9px; letter-spacing: .03em; }.sidebar-nav a:hover { color: var(--ocean); background: rgba(237,248,245,.8); }.sidebar-nav a.is-active { color: white; background: linear-gradient(135deg, var(--ocean), #108386); box-shadow: 0 8px 20px rgba(11,111,114,.18); }.sidebar-nav a.is-active > span { color: var(--ocean); background: white; border-color: transparent; }
.sidebar-foot { display: flex; gap: 10px; align-items: center; margin: auto 8px 0; padding-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.35; border-top: 1px solid var(--line); }.sidebar-foot i { width: 8px; height: 8px; border-radius: 50%; background: #3fc980; box-shadow: 0 0 0 4px rgba(63,201,128,.13); }.sidebar-foot small { color: #91a3a1; }
.hero { display: grid; grid-template-columns: 1fr 330px; gap: 50px; align-items: center; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--ocean); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: .98; letter-spacing: -.055em; max-width: 700px; }
.lede { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.latest-card { padding: 24px 26px; background: linear-gradient(145deg, #0a6266, #0d8382); color: white; border-radius: 24px; box-shadow: var(--shadow); }
.latest-card span, .latest-card time, .latest-card em { display: block; }.latest-card span { opacity: .72; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }.latest-card strong { display: block; margin: 7px 0 5px; font-size: 44px; letter-spacing: -.05em; }.latest-card strong small { font-size: 17px; letter-spacing: 0; opacity: .75; }.latest-card time { opacity: .8; font-size: 13px; }.latest-card em { margin-top: 11px; font-size: 11px; font-style: normal; opacity: .6; }
.grid { display: grid; gap: 22px; }.two-columns { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); }.lower-grid { margin-top: 22px; grid-template-columns: 1fr 1fr; }
.panel { background: rgba(255,255,255,.9); border: 1px solid rgba(11,111,114,.09); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.panel-heading { min-height: 48px; display: flex; justify-content: space-between; align-items: start; gap: 20px; }.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }.panel-heading > span { color: var(--muted); font-size: 12px; }
.trend-chart { display: block; width: 100%; margin-top: 14px; overflow: visible; }.trend-chart line { stroke: #e5efec; stroke-width: 1; }.trend-chart polyline { fill: none; stroke: var(--aqua); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 5px 5px rgba(50,182,170,.22)); }
.measurement-form { display: grid; gap: 14px; margin-top: 18px; }.measurement-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }.measurement-form label > span { float: right; color: var(--muted); font-size: 11px; font-weight: 500; }.measurement-form input:not([type="checkbox"]), .measurement-form textarea, .measurement-form select, .filter-bar select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: #fbfdfc; font: inherit; }.measurement-form textarea { resize: vertical; min-height: 98px; }.measurement-form input:focus, .measurement-form textarea:focus, .measurement-form select:focus, .filter-bar select:focus { outline: 3px solid rgba(50,182,170,.15); border-color: var(--aqua); }.measurement-form button, .filter-bar button { border: 0; border-radius: 11px; padding: 13px; background: var(--ocean); color: white; font-weight: 800; cursor: pointer; }.measurement-form button:hover, .filter-bar button:hover { background: #085b5e; }
.table-wrap { overflow: auto; margin-top: 12px; }table { width: 100%; border-collapse: collapse; font-size: 13px; }th { padding: 10px 8px; color: var(--muted); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); }td { padding: 11px 8px; border-bottom: 1px solid #edf2f0; white-space: nowrap; }.source-tag { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--foam); color: var(--ocean); font-size: 10px; }
.event-list { margin-top: 12px; display: grid; gap: 4px; }.event { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #edf2f0; }.event i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #9eb0ad; }.event i.event-stored { background: #3fc980; }.event i.event-parse_error, .event i.event-rejected { background: #e97863; }.event i.event-duplicate { background: #e5af43; }.event strong, .event span, .event small { display: block; }.event strong { font-size: 12px; }.event span { margin-top: 2px; color: var(--muted); font-size: 12px; }.event small { margin-top: 4px; color: #b34b3d; }
.poll-button { border: 1px solid rgba(11,111,114,.22); border-radius: 10px; padding: 9px 12px; color: var(--ocean); background: var(--foam); font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }.poll-button:hover { color: white; background: var(--ocean); }.poll-button:active { transform: translateY(1px); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 54px; align-items: center; min-height: calc(100vh - 210px); }.login-intro h1 { max-width: 680px; }.login-panel { max-width: 420px; width: 100%; justify-self: end; }.login-panel h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.empty-state { display: grid; min-height: 176px; place-items: center; color: var(--muted); text-align: center; }.empty-state.compact { min-height: 90px; }.flash { margin-bottom: 20px; padding: 12px 15px; border-radius: 12px; font-size: 13px; }.flash-success { color: #17633f; background: #dff5e9; }.flash-warning { color: #77521b; background: #fff1ce; }.flash-error { color: #8f352d; background: #fde7e3; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }.page-heading h1 { font-size: clamp(38px, 5vw, 58px); }.page-heading .lede { max-width: 720px; }.mode-badge { flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgba(11,111,114,.18); border-radius: 999px; color: var(--ocean); background: var(--foam); font-size: 11px; font-weight: 800; }.mode-badge.warning { color: #846019; background: #fff4d8; border-color: #ecd59b; }
.parameter-picker { display: grid; grid-template-columns: repeat(7, minmax(95px, 1fr)); gap: 10px; margin-bottom: 22px; }.parameter-tile { min-width: 0; padding: 13px; border: 1px solid rgba(11,111,114,.09); border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.74); text-decoration: none; box-shadow: 0 8px 28px rgba(26,71,70,.06); }.parameter-tile > span, .parameter-tile > strong, .parameter-tile > small { display: block; }.parameter-tile > span { color: var(--ocean); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.parameter-tile > strong { margin: 6px 0 1px; font-size: 22px; letter-spacing: -.04em; }.parameter-tile > small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.parameter-tile:hover, .parameter-tile.is-active { border-color: var(--aqua); background: var(--foam); transform: translateY(-1px); }.parameter-tile.is-active { box-shadow: inset 0 0 0 1px var(--aqua); }
.manual-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }.entry-panel { background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(237,248,245,.96)); }.mobile-entry-form input[name="value"] { padding: 17px; font-size: 25px; font-weight: 750; letter-spacing: -.03em; }.form-footnote { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.section-panel { margin-top: 22px; }.observation-list { display: grid; gap: 0; margin-top: 10px; }.observation-list article { display: grid; grid-template-columns: 175px 1fr; gap: 18px; padding: 13px 4px; border-bottom: 1px solid #edf2f0; }.observation-list time { color: var(--muted); font-size: 11px; }.observation-list p { margin: 0; font-size: 13px; line-height: 1.5; }
.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 22px; padding: 14px; border: 1px solid rgba(11,111,114,.09); border-radius: 16px; background: rgba(255,255,255,.72); }.filter-bar label { display: grid; gap: 5px; min-width: 190px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.filter-bar button { padding-inline: 20px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }.metric-grid article { padding: 18px; border: 1px solid rgba(11,111,114,.09); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: 0 9px 30px rgba(26,71,70,.06); }.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }.metric-grid span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.metric-grid strong { margin: 5px 0 1px; font-size: 24px; letter-spacing: -.04em; }.metric-grid small { color: var(--muted); font-size: 10px; }.metric-grid .positive { color: #168552; }.metric-grid .negative { color: #bd5848; }
.analysis-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); }.chart-caption { margin: -2px 0 0; color: var(--muted); font-size: 10px; text-align: right; }.snapshot-list { display: grid; margin-top: 9px; }.snapshot-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px; border-bottom: 1px solid #edf2f0; border-radius: 9px; color: var(--ink); text-decoration: none; }.snapshot-list a:hover, .snapshot-list a.is-active { background: var(--foam); }.snapshot-list span > strong, .snapshot-list span > small { display: block; }.snapshot-list span > strong { font-size: 12px; }.snapshot-list span > small, .snapshot-list b small { color: var(--muted); font-size: 9px; font-weight: 500; }.snapshot-list b { font-size: 13px; }
.module-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); }.settings-form { max-width: 720px; }.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.explainer-panel p { color: var(--muted); font-size: 13px; line-height: 1.6; }.status-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #edf2f0; font-size: 12px; }.status-row span { color: var(--muted); }.status-row strong { text-align: right; }.muted-text { color: #8b9d9b; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.channel-state { padding: 6px 9px; border-radius: 999px; color: #8c6b29; background: #fff2d2; font-size: 9px; font-weight: 800; text-transform: uppercase; }.channel-state.is-enabled { color: #17633f; background: #dff5e9; }.toggle-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; color: var(--muted); }.toggle-row input { width: 18px; height: 18px; accent-color: var(--ocean); }.toggle-row > span { float: none !important; font-size: 11px !important; }
.light-preview { overflow: hidden; background: linear-gradient(170deg, #092f43, #0b7180); color: white; }.light-preview .eyebrow, .light-preview p { color: rgba(255,255,255,.7); }.sun-arc { position: relative; height: 165px; margin: 20px 0 0; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.25); }.sun-arc::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -75%; height: 150%; border: 2px dashed rgba(255,255,255,.35); border-radius: 50% 50% 0 0; }.sun-arc span { position: absolute; top: 18px; left: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%; background: #ffe782; box-shadow: 0 0 35px #ffdc64; }.time-range { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; }.time-range span { color: rgba(255,255,255,.65); font-size: 10px; }.consumer-list { display: grid; margin-top: 8px; }.consumer-list > div:not(.empty-state) { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 4px; border-bottom: 1px solid #edf2f0; }.consumer-list span > strong, .consumer-list span > small { display: block; }.consumer-list span > strong { font-size: 12px; }.consumer-list span > small, .consumer-list b small { color: var(--muted); font-size: 9px; }.consumer-list b { font-size: 12px; text-align: right; white-space: nowrap; }.energy-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tank-volume { display: flex; align-items: baseline; gap: 9px; margin: 28px 0 12px; }.tank-volume strong { font-size: clamp(50px, 8vw, 88px); line-height: 1; letter-spacing: -.07em; }.tank-volume span { color: var(--muted); font-size: 15px; }

@media (max-width: 1000px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.parameter-picker { grid-template-columns: repeat(4, minmax(95px, 1fr)); }.analysis-grid, .module-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .site-header { height: 68px; padding: 0 14px; }.brand-mark { width: 38px; height: 38px; }.brand small { display: none; }.status-pill { display: none; }.settings-button { padding: 8px 10px; }.settings-button span { display: none; }.logout-button { padding: 8px 10px; }
  .app-shell { display: block; }.sidebar { top: 68px; z-index: 20; width: 100%; height: auto; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(11,111,114,.1); backdrop-filter: blur(16px); }.sidebar-label, .sidebar-foot { display: none; }.sidebar-nav { display: flex; width: max-content; gap: 5px; }.sidebar-nav a { min-height: 38px; padding: 5px 9px; font-size: 11px; }.sidebar-nav a > span { width: 25px; height: 25px; border-radius: 8px; font-size: 8px; }
  .app-main, .public-main { width: 100%; padding: 26px 14px 60px; }.public-main { width: min(100% - 28px, 1180px); }.hero, .two-columns, .lower-grid, .login-shell, .manual-grid { grid-template-columns: 1fr; }.hero, .login-shell { gap: 26px; }.login-panel { max-width: none; justify-self: stretch; }h1, .page-heading h1 { font-size: 39px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .parameter-picker { display: flex; gap: 8px; margin-right: -14px; padding-right: 14px; overflow-x: auto; }.parameter-tile { min-width: 102px; }.channel-grid { grid-template-columns: 1fr; }.observation-list article { grid-template-columns: 1fr; gap: 5px; }.filter-bar { display: grid; grid-template-columns: 1fr 1fr; }.filter-bar label { min-width: 0; }.filter-bar button { grid-column: 1 / -1; }.panel { padding: 19px; }.panel-heading { gap: 10px; }.latest-card { padding: 21px; }
}
@media (max-width: 480px) { .metric-grid, .energy-metrics, .form-columns { grid-template-columns: 1fr; }.header-actions { gap: 5px; }.settings-button { font-size: 0; }.settings-button::after { content: "Settings"; font-size: 11px; }.logout-button { font-size: 11px; }.filter-bar { grid-template-columns: 1fr; }.filter-bar button { grid-column: auto; } }
