:root{
  --bg:#07140b;
  --card:#102518;
  --card2:#17351f;
  --text:#eef8ee;
  --muted:#a7b8a8;
  --accent:#8dff8a;
  --danger:#ffb27a;
  --line:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  background:
    radial-gradient(circle at top, #234b2d 0, transparent 35%),
    linear-gradient(180deg,#07140b,#050905);
  color:var(--text);
  min-height:100vh;
}
.app-header{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 16px 12px;
  background:rgba(7,20,11,.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
h1,h2,h3,p{margin-top:0}
h1{font-size:24px;margin-bottom:0}
h2{font-size:22px}
.eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  margin-bottom:4px;
}
main{padding:16px;max-width:880px;margin:0 auto 80px}
.card{
  background:linear-gradient(180deg,var(--card2),var(--card));
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
  margin-bottom:14px;
}
.hero p,.muted{color:var(--muted)}
button{
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#08200d;
  padding:12px 16px;
  font-weight:800;
  font-size:15px;
}
button.ghost{
  background:rgba(255,255,255,.08);
  color:var(--text);
  border:1px solid var(--line);
}
button:disabled{opacity:.55}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hidden{display:none}
.plant-list{display:grid;gap:12px}
.plant-card{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:14px;
  align-items:center;
}
.thumb{
  width:72px;
  height:72px;
  border-radius:18px;
  background:#0a170e;
  object-fit:cover;
  border:1px solid var(--line);
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(141,255,138,.12);
  color:var(--accent);
  font-size:12px;
  font-weight:700;
}
.form label{
  display:block;
  margin:12px 0;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
input,textarea,select{
  width:100%;
  margin-top:6px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.22);
  color:var(--text);
  padding:12px;
  font-size:16px;
}
textarea{min-height:86px;resize:vertical}
.timeline{display:grid;gap:12px}
.entry{
  border-top:1px solid var(--line);
  padding-top:14px;
}
.entry img,.preview{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  margin-bottom:10px;
}
.score{font-size:42px;font-weight:900;line-height:1}
.analysis-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
}
.mini{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
}
.warn{color:var(--danger)}
.actions li{margin-bottom:8px}
.small{font-size:12px;color:var(--muted)}
pre{
  white-space:pre-wrap;
  background:rgba(0,0,0,.25);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  overflow:auto;
}
.file-buttons input{display:none}
.pill{
  display:inline-block;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  color:var(--text);
  border-radius:999px;
  padding:12px 16px;
  font-weight:800;
}
.loading{
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  border-radius:16px;
  padding:12px;
  color:var(--accent);
}
