/* ===== Theme ===== */
:root{
  --brand:#10b981;          /* emerald */
  --brand-ink:#065f46;
  --bg:#f6f7fb;
  --panel:#ffffff;
  --ink:#0f172a;            /* slate-900 */
  --muted:#64748b;          /* slate-500 */
  --border:#e5e7eb;
  --ring:rgba(16,185,129,.25);
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink); background:linear-gradient(180deg,#fbfcff 0%,var(--bg) 100%);
  -webkit-font-smoothing:antialiased; line-height:1.35;
}

/* ===== Topbar ===== */
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; background:rgba(255,255,255,.9); backdrop-filter:saturate(120%) blur(8px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:40px; height:40px; border-radius:12px; background:var(--brand);
  color:#fff; display:grid; place-items:center; font-weight:800; letter-spacing:.5px;
}
.titles .title{font-weight:800; letter-spacing:.2px}
.titles .subtitle{font-size:12px; color:var(--muted); margin-top:2px}
.actions .ghost{
  background:transparent; border:1px solid var(--border); color:var(--ink);
  padding:8px 12px; border-radius:10px; cursor:pointer;
}
.actions .ghost:hover{border-color:#cbd5e1;}

/* ===== Layout ===== */
.container{max-width:1200px; margin:0 auto; padding:18px 16px;}
#grid{display:grid; grid-template-columns:1fr 1fr; gap:18px}
@media (max-width: 900px){ #grid{grid-template-columns:1fr; gap:14px} }

/* ===== Card ===== */
.card{
  background:var(--panel); border:1px solid var(--border); border-radius:18px; overflow:hidden;
  box-shadow: 0 10px 20px -10px rgba(2,6,23,.12);
  transition: box-shadow .2s ease, transform .06s ease;
}
.card:hover{ box-shadow:0 16px 28px -14px rgba(2,6,23,.18); transform:translateY(-1px); }
.card:focus-within{ outline:2px solid var(--ring); outline-offset:0; }

.card .head{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 14px; border-bottom:1px solid #f1f5f9;
}
.card .head .small{font-size:12px; color:var(--muted)}
.card .head button{
  background:#eef2f7; border:1px solid var(--border); color:#0f172a; border-radius:10px; padding:6px 10px; cursor:pointer;
}
.card .head button:hover{ background:#e2e8f0; }

.imgWrap{ aspect-ratio: 16/10; background:#eef2f7; cursor:pointer; }
.imgWrap img{ width:100%; height:100%; object-fit:cover; display:block; }

.chips{ display:flex; flex-wrap:wrap; gap:6px; padding:12px 14px; }
.chip{ font-size:12px; color:#111827; border:1px solid var(--border); border-radius:999px; padding:2px 8px; background:#f9fafb; }

.plants{ padding:10px 14px 14px; border-top:1px solid #f1f5f9; }
.plants .title{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.plants ul{ margin:0; padding-left:18px; }

/* Selected highlight (keyboard choose) */
.selected{ box-shadow:0 0 0 4px var(--ring); border-color:var(--brand); }

/* ===== Controls ===== */
.controls{
  position:sticky; bottom:0; z-index:5; background:rgba(255,255,255,.9);
  border-top:1px solid var(--border); backdrop-filter:saturate(120%) blur(8px);
  padding:12px 16px;
}
.controls .row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.controls button{
  background:var(--brand); color:white; border:none; border-radius:12px; padding:10px 14px; font-weight:700; cursor:pointer;
  box-shadow: 0 6px 14px -6px rgba(16,185,129,.4); transition: transform .04s ease, box-shadow .15s ease;
}
.controls button:hover{ box-shadow: 0 10px 22px -10px rgba(16,185,129,.5); }
.controls button:active{ transform: translateY(1px); }
.controls button.secondary{ background:#111827; box-shadow: 0 6px 14px -6px rgba(2,6,23,.35); }
.hint{ color:var(--muted); font-size:12px; margin-top:8px; }

/* ===== Footer ===== */
.footer{
  text-align:center; color:var(--muted); font-size:12px; padding:14px 0 22px;
}
