:root{
  --bg:#f3f6f1;
  --card:#ffffff;
  --text:#1f2a22;
  --muted:#728078;
  --accent:#2f5d3a;
  --accent2:#dfeadd;
  --line:#e6ebe4;
  --warn:#fff2d6;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
button,input{font:inherit}
button{cursor:pointer}
.app-shell{
  max-width:520px;
  margin:0 auto;
  padding:20px 16px 92px;
  min-height:100vh;
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}
.eyebrow,.small{font-size:12px;color:var(--muted);font-weight:600}
h1{margin:3px 0 0;font-size:30px}
h2{margin:4px 0 0;font-size:20px}
.status-dot{
  width:12px;height:12px;border-radius:50%;
  background:#56a96b;box-shadow:0 0 0 5px #dcefe1;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(38,55,42,.05);
}
.hero{
  padding:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:linear-gradient(135deg,#ffffff,#eef5eb);
}
.weather-line{display:flex;align-items:baseline;gap:10px;margin:7px 0}
.temp{font-size:34px;font-weight:800}
.hint{font-size:13px;color:var(--accent);font-weight:700}
.weather-icon{font-size:52px}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:14px 0;
}
.module{
  min-height:132px;
  padding:16px;
  border:1px solid var(--line);
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--text);
}
.module .icon{font-size:28px}
.module strong{font-size:16px}
.module span:last-child{font-size:12px;color:var(--muted)}
.alert{
  padding:16px;
  margin:14px 0;
  background:var(--warn);
}
.alert-title{font-weight:800;margin-bottom:6px}
.ai-card{padding:16px}
.ai-head{display:flex;justify-content:space-between;align-items:center}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--accent2);
  color:var(--accent);
  font-weight:800;
}
.chat{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:300px;
  overflow:auto;
  margin:14px 0;
}
.msg{
  max-width:86%;
  padding:11px 13px;
  border-radius:16px;
  line-height:1.35;
  font-size:14px;
}
.msg.ai{background:#eef3ec;align-self:flex-start}
.msg.user{background:var(--accent);color:#fff;align-self:flex-end}
.chat-form{
  display:grid;
  grid-template-columns:1fr 46px;
  gap:8px;
}
.chat-form input{
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px 14px;
  outline:none;
}
.chat-form button{
  border:0;
  border-radius:14px;
  background:var(--accent);
  color:#fff;
}
.bottom-nav{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:min(520px,100%);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
}
.bottom-nav button{
  border:0;background:transparent;color:var(--muted);
  display:flex;flex-direction:column;align-items:center;gap:3px;
  font-size:18px;
}
.bottom-nav button span{font-size:11px}
.bottom-nav button.active{color:var(--accent);font-weight:800}