:root {
  --bg: #ffffff; --surface1: #f4f3ee; --text: #1e1e1c; --text2: #5a5954;
  --text-muted: #89877f; --border: #c3c2b7; --accent: #185fa5; --accent-bg:#e6f1fb;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', Arial, sans-serif; background: #f7f6f2; margin:0; padding: 24px; color: var(--text); }
.wrap { max-width: 920px; margin: 0 auto; background: var(--bg); border-radius: 16px; padding: 32px; border: 1px solid var(--border); }
h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.sub { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.uploader { border: 1.5px dashed var(--border); border-radius: 12px; padding: 20px; text-align:center; margin-bottom: 20px; background: var(--surface1); }
.uploader input { margin-top: 10px; }
.status { font-size: 13px; color: var(--text-muted); margin-top: 10px; min-height: 18px; }
select { width: 100%; padding: 10px 14px; font-size: 15px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 16px; background:#fff; color:var(--text); }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  width: 100%; padding: 9px 12px; font-size: 14px; border-radius: 8px; border: 1px solid var(--border); background:#fff; color:var(--text);
}
.lbl { display:block; font-size:12.5px; color:var(--text-muted); margin-bottom:4px; font-weight:600; }
.row { display:flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.tank { position:relative; width:120px; height:280px; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface1); flex-shrink:0; }
.fill { position:absolute; bottom:0; left:0; width:100%; transition: height .4s, bottom .4s; }
.fillPlan { position:absolute; left:0; width:100%; background:#F2C14E; transition: height .4s, bottom .4s; }
.tank-label { position:absolute; top:8px; left:0; right:0; text-align:center; font-size:11px; color:var(--text-muted); }
.pct-label { position:absolute; bottom:8px; left:0; right:0; text-align:center; font-size:13px; color:#fff; font-weight:600; }
.plan-label { position:absolute; left:0; right:0; text-align:center; font-size:10.5px; color:#5a4a10; font-weight:600; }
.legend { display:flex; gap:16px; font-size:11.5px; color:var(--text-muted); margin-top:8px; flex-wrap:wrap; }
.legend span { display:inline-flex; align-items:center; gap:5px; }
.legend i { width:10px; height:10px; border-radius:2px; display:inline-block; }
.cards { flex:1; min-width: 320px; display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.card { background: var(--surface1); border-radius: 10px; padding: 14px 16px; }
.card .lbl2 { font-size:12px; color:var(--text-muted); margin:0 0 4px; }
.card .val { font-size:19px; font-weight:600; margin:0; }
.bottom { margin-top:16px; background: var(--surface1); border-radius:10px; padding:16px 20px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.bottom .lbl2 { font-size:12px; color:var(--text-muted); margin:0 0 4px; }
.bottom .val { font-size:16px; font-weight:600; margin:0; }
.badge { font-size:11px; padding:4px 12px; border-radius: 20px; font-weight:600; display:inline-block; }
.header-row { display:flex; justify-content: space-between; align-items:flex-start; gap: 12px; margin-bottom:16px; }
.footnote { margin-top:20px; font-size:11px; color: var(--text-muted); }
.arrow { font-size: 18px; color: var(--text-muted); }
.meta { font-size:12px; color: var(--text-muted); margin-bottom:10px; }
button, .btn-primary, .btn-secondary { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background:#fff; cursor:pointer; font-size:14px; color:var(--text); text-decoration:none; display:inline-block; }
button:hover, .btn-primary:hover, .btn-secondary:hover { background: var(--surface1); }
.btn-primary { background: var(--accent); border-color: var(--accent); color:#fff; }
.btn-primary:hover { background:#134b85; }
.btn-danger { background:#fff; border-color:#D85A30; color:#D85A30; }
.btn-danger:hover { background:#FCEBEB; }
#dash { display:none; }
.filters { display:flex; gap:8px; flex-wrap:wrap; margin: 18px 0 14px; }
.chip { padding:6px 14px; border-radius:20px; border:1px solid var(--border); background:#fff; font-size:13px; cursor:pointer; color:var(--text2); }
.chip.active { background: var(--text); color:#fff; border-color:var(--text); }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:12px; }
.mini { border:1px solid var(--border); border-radius:12px; padding:14px; cursor:pointer; background:#fff; transition: border-color .15s; }
.mini:hover { border-color: var(--text); }
.mini .miniName { font-size:12.5px; font-weight:600; margin:0 0 8px; line-height:1.3; min-height:32px; }
.mini .miniTrack { width:100%; height:10px; border-radius:6px; background: var(--surface1); overflow:hidden; margin-bottom:6px; }
.mini .miniFill { height:100%; }
.mini .miniRow { display:flex; justify-content:space-between; font-size:11.5px; color:var(--text-muted); }
.mini .miniBadge { display:inline-block; margin-top:8px; font-size:10.5px; padding:2px 8px; border-radius:10px; font-weight:600; }
.section-title { font-size:15px; font-weight:600; margin: 24px 0 4px; }
.wa-row { display:flex; align-items:center; gap:12px; border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:8px; }
.wa-info { flex:1; min-width:0; }
.wa-name { font-size:13.5px; font-weight:600; margin:0 0 2px; }
.wa-sub { font-size:12px; color:var(--text-muted); margin:0; }
.wa-actions { display:flex; gap:8px; flex-shrink:0; }
.wa-actions button, .wa-actions a { font-size:12.5px; padding:6px 12px; border-radius:8px; border:1px solid var(--border); background:#fff; text-decoration:none; color:var(--text); cursor:pointer; }
.wa-actions a.wa-open { background:#25D366; border-color:#25D366; color:#fff; }
.alert { padding:12px 16px; border-radius:8px; font-size:13.5px; margin-bottom:8px; }
.alert-error { background:#FCEBEB; color:#501313; }
.alert-ok { background:#EAF3DE; color:#173404; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:13px; color:var(--text-muted); }
.topbar a { color:var(--accent); text-decoration:none; }
table.admin-table { width:100%; border-collapse:collapse; font-size:13.5px; margin-top:10px; }
table.admin-table th, table.admin-table td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--border); }
table.admin-table th { color:var(--text-muted); font-weight:600; font-size:12px; }
.tag { font-size:11px; padding:2px 9px; border-radius:10px; font-weight:600; background:var(--accent-bg); color:var(--accent); }
.form-inline { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; }
.form-inline > div { min-width:160px; flex:1; }
