:root {
  --green: #006611; --green-soft: #eef6ef; --border: #e1e4e1; --text: #1f2421; --muted: #69716b;
  --red: #b00020; --warn: #b45f06;
  --shadow: 0 1px 2px rgba(16, 40, 20, 0.06), 0 4px 14px rgba(16, 40, 20, 0.06);
  --shadow-hi: 0 2px 4px rgba(16, 40, 20, 0.08), 0 10px 26px rgba(16, 40, 20, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
#gcw { font-family: "Futura PT", "Jost", Arial, sans-serif; color: var(--text); max-width: 1100px; margin: 0 auto; padding: 4px 2px 16px; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
#gcw h2 { font-size: 24px; font-weight: 500; letter-spacing: 0.04em; margin: 0; display: flex; align-items: center; gap: 10px; }
#gcw h2.section { margin: 34px 0 4px; }
#gcw h2 .ico { width: 24px; height: 24px; color: var(--green); }
#gcw h3.boxtitle { font-size: 18.5px; font-weight: 600; margin: 0 0 2px; color: var(--green); display: flex; align-items: center; gap: 8px; }
#gcw .sub { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 102, 17, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(0, 102, 17, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 102, 17, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fill { from { height: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.rise { animation: rise 0.45s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

#gcw .hero { padding: 6px 0 12px; }
#gcw .hero-sub { margin: 6px 0 0; font-size: 15.5px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 6px 0 16px; }
.kpi { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: linear-gradient(160deg, #fff 0%, #f6faf6 100%); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.kpi .k-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 8px; }
.kpi .k-ico .ico { width: 20px; height: 20px; }
.kpi .k-val { font-size: 24px; font-weight: 600; line-height: 1.1; }
.kpi .k-val small { font-size: 15.5px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.kpi .k-lbl { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.kpi.temp .k-ico { background: #fff1e6; color: #c05a00; }
.kpi.rain .k-ico { background: #e8f1fb; color: #1d5fa8; }
.kpi.hum .k-ico { background: #e9f6f6; color: #13777a; }

#gcw .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
#gcw .featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 18px; align-items: stretch; }
#gcw .card { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; min-height: 120px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
#gcw .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
#gcw .card.maint { border-color: #e7c9a5; background: linear-gradient(180deg, #fffaf4 0%, #fff 40%); }
#gcw .card h3 { font-size: 17.5px; font-weight: 600; margin: 0 0 2px; color: var(--green); line-height: 1.3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#gcw .card .time { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
#gcw .card .time .ico { width: 14px; height: 14px; }
#gcw .card.stale .time { color: var(--red); }
#gcw .meas { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15.5px; padding: 4px 0; border-bottom: 1px dotted #e6e6e6; }
#gcw .meas:last-of-type { border-bottom: none; }
#gcw .meas > span:first-child { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#gcw .meas > span:first-child .ico { width: 16px; height: 16px; color: var(--muted); }
#gcw .meas .val { font-weight: 600; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
#gcw .meas.off { opacity: 0.5; }
#gcw .tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 0 6px; white-space: nowrap; }
#gcw .tag-warn { color: #fff; background: var(--warn); border-color: var(--warn); }
#gcw .tag-filter { color: var(--warn); border-color: var(--warn); }
#gcw .card a.more { margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
#gcw .card a.more .ico { width: 14px; height: 14px; transition: transform 0.2s; }
#gcw .card a.more:hover .ico { transform: translate(2px, -2px); }
#gcw .morelinks, .ballpage .morelinks { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
#gcw a.morebtn, .ballpage a.morebtn { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; text-decoration: none;
  color: var(--green); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; background: #fff; transition: border-color 0.15s, background 0.15s; }
#gcw a.morebtn:hover, .ballpage a.morebtn:hover { border-color: var(--green); background: var(--green-soft); }
#gcw a.morebtn.primary, .ballpage a.morebtn.primary { background: var(--green); border-color: var(--green); color: #fff; }
#gcw a.morebtn.primary:hover, .ballpage a.morebtn.primary:hover { background: #00520e; }
#gcw a.morebtn .ico, .ballpage a.morebtn .ico { width: 14px; height: 14px; }
#gcw .error { color: var(--red); font-size: 14.5px; }
#gcw .warnline { color: var(--warn); font-size: 14.5px; margin-bottom: 4px; }
#gcw .loader { border: 5px solid #eef0ee; border-top: 5px solid var(--green); border-radius: 50%; width: 32px; height: 32px; animation: spin 1s linear infinite; margin: 20px auto; }
#gcw .soilbox { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, #f1f7f2 0%, #f7faf7 100%); padding: 16px; margin-top: 10px; }
#gcw .soilbox .sub { margin-bottom: 12px; }

.ballcard { position: relative; overflow: hidden; }
.ballrow { display: flex; gap: 16px; align-items: center; margin: 4px 0 6px; }
.tube { position: relative; width: 58px; height: 120px; border: 3px solid #2d3a30; border-top-width: 0; border-radius: 0 0 14px 14px; background: #fafbfa; overflow: hidden; flex: 0 0 auto; }
.tube::before { content: ""; position: absolute; left: -3px; right: -3px; top: 0; height: 6px; border-top: 3px solid #2d3a30; border-radius: 4px; }
.tube .level { position: absolute; left: 0; right: 0; bottom: 0; animation: fill 1.2s cubic-bezier(.2, .8, .2, 1) both;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95) 0 2.5px, rgba(255,255,255,0) 3px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.95) 0 2.5px, rgba(255,255,255,0) 3px);
  background-size: 12px 12px, 12px 12px; background-position: 0 0, 6px 6px; }
.tube .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 11px, rgba(0,0,0,.18) 11px 12px); pointer-events: none; }
.ballinfo .big { font-size: 34px; font-weight: 600; line-height: 1; }
.ballinfo .lvl { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 700; border-radius: 10px; padding: 2px 10px; color: #fff; }

#gcw .tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
#gcw table.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
#gcw table.tbl th { background: var(--green); color: #fff; padding: 9px 12px; text-align: left; font-weight: 600; letter-spacing: 0.03em; }
#gcw table.tbl td { padding: 6px 12px; border-top: 1px solid #eef0ee; }
#gcw table.tbl td .ico { width: 16px; height: 16px; color: var(--muted); margin-right: 6px; }
#gcw table.tbl td.num { text-align: right; font-weight: 600; white-space: nowrap; }
#gcw tr.blocked td { background: #fbe9ec; }
#gcw tr.blocked td .ico { color: var(--red); }
#gcw .chip { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; border-radius: 8px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
#gcw .chip-G { background: #0f6e56; } #gcw .chip-P { background: #185fa5; } #gcw .chip-C { background: #ba7517; } #gcw .chip-T { background: #534ab7; }
#gcw .tblwrap.inactive { opacity: 0.55; }
#gcw .badge { display: inline-block; background: #fff; color: var(--green); border-radius: 10px; font-size: 12.5px; font-weight: 700; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
#gcw .legend { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
#gcw .note { border: 1px solid var(--border); border-left: 4px solid var(--warn); border-radius: 0 10px 10px 0; background: #fff8f0; padding: 10px 14px; font-size: 14.5px; margin-top: 12px; }
#gcw .note.ok { border-left-color: var(--green); background: var(--green-soft); }

#gcw .rainquery { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: linear-gradient(160deg, #fff 0%, #f3f8fd 100%); max-width: 560px; box-shadow: var(--shadow); }
#gcw .rainquery label { font-size: 14.5px; color: var(--muted); display: block; margin-bottom: 2px; }
#gcw .rainrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
#gcw .rainquery input[type="date"] { font-family: inherit; font-size: 15.5px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; }
#gcw .rainquery button { font-family: inherit; font-size: 15.5px; font-weight: 600; color: #fff; background: var(--green); border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: box-shadow 0.15s, transform 0.15s; }
#gcw .rainquery button:hover { box-shadow: 0 4px 12px rgba(0, 102, 17, 0.25); }
#gcw .rainquery button:active { transform: translateY(1px); }
#gcw .rainquery button:disabled { opacity: 0.5; cursor: wait; }
#gcw .rainresult { font-size: 17.5px; font-weight: 600; margin-top: 10px; }
#gcw .rainhint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

#gcw details.exp { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: #fff; box-shadow: var(--shadow); }
#gcw details.exp summary { cursor: pointer; padding: 12px 16px; font-size: 16.5px; font-weight: 600; color: var(--green); list-style: none; display: flex; align-items: center; gap: 8px; }
#gcw details.exp summary::-webkit-details-marker { display: none; }
#gcw details.exp summary::after { content: "›"; margin-left: auto; font-size: 21.5px; transition: transform 0.2s; }
#gcw details.exp[open] summary::after { transform: rotate(90deg); }
#gcw details.exp .expbody { padding: 0 16px 14px; font-size: 15.5px; line-height: 1.55; }
#gcw details.exp .expbody p { margin: 8px 0; }

@media (max-width: 860px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  #gcw .featured { grid-template-columns: 1fr; }
  #gcw .grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { #gcw .grid { grid-template-columns: 1fr; } }

.ballpage { font-family: "Futura PT", "Jost", Arial, sans-serif; color: var(--text); max-width: 760px; margin: 0 auto; padding: 6px 4px 16px; }
.ballpage .bp-card { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(160deg, #fff 0%, #f5faf5 100%); box-shadow: var(--shadow); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ballpage h2 { font-size: 22px; font-weight: 500; letter-spacing: 0.04em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.ballpage h2 .ico { width: 24px; height: 24px; color: var(--green); }
.ballpage .tube.big { width: 110px; height: 230px; border-width: 4px; border-radius: 0 0 24px 24px; }
.ballpage .tube.big::before { border-top-width: 4px; left: -4px; right: -4px; }
.ballpage .tube.big .level { background-size: 18px 18px, 18px 18px; background-position: 0 0, 9px 9px;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95) 0 4px, rgba(255,255,255,0) 4.5px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.95) 0 4px, rgba(255,255,255,0) 4.5px); }
.ballpage .tube.big .ticks { background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,0,0,.18) 22px 23px); }
.ballpage .big { font-size: 64px; font-weight: 600; line-height: 1; }
.ballpage .big small { font-size: 26px; color: var(--muted); }
.ballpage .lvl { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15.5px; font-weight: 700; border-radius: 14px; padding: 4px 12px; color: #fff; }
.ballpage .time { color: var(--muted); font-size: 14.5px; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.ballpage .time.stale { color: var(--red); }
.ballpage .spark { margin-top: 18px; }
.ballpage .spark svg { width: 100%; height: 70px; display: block; }
.ballpage .prog { margin-top: 8px; font-size: 15.5px; font-weight: 500; }
.ballpage .usage { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ballcard .prog { margin-top: 6px; font-size: 13.5px; line-height: 1.35; }
.ballcard .spark.small { margin: 4px 0 2px; }
.ballcard .spark.small svg { width: 100%; height: 46px; display: block; }
.ballcard .spark.small .cap { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.ballpage .spark .cap { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; }
.ballpage a.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13.5px; color: var(--green); text-decoration: none; }
@media (max-width: 520px) {
  .ballpage .bp-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ballpage .time { justify-content: center; }
}
.ballpage .tube .level { transition: height 1.2s cubic-bezier(.2, .8, .2, 1); animation: none; }
