:root {
  --primary: #2E7D32;
  --secondary: #0288D1;
  --accent: #FF9800;
  --canvas: #F8FAFC;
  --ink-900: #0F172A;
  --ink-500: #64748B;
}
body { font-family: Inter, system-ui, sans-serif; background: var(--canvas); color: var(--ink-900); margin: 0; }
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 12px 16px; font-weight: 600; width: 100%; cursor: pointer; }
.btn-secondary { background: #fff; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px 16px; font-weight: 600; width: 100%; cursor: pointer; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.08); padding: 16px; margin-bottom: 12px; }
.nav-bottom { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #E2E8F0; display: flex; justify-content: space-around; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); z-index: 50; }
.nav-bottom a { text-align: center; font-size: 11px; color: var(--ink-500); text-decoration: none; padding: 4px 8px; }
.nav-bottom a.active { color: var(--primary); font-weight: 600; }
.page { max-width: 480px; margin: 0 auto; padding: 16px 16px 90px; min-height: 100vh; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-open { background: #FEF3C7; color: #92400E; }
.badge-resolved { background: #DCFCE7; color: #166534; }
.hidden { display: none !important; }
input, textarea, select { width: 100%; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px; margin-bottom: 12px; box-sizing: border-box; }
h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
h2 { font-size: 1.125rem; font-weight: 700; margin: 16px 0 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-action { background: #fff; border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 1px 3px rgba(15,23,42,.08); cursor: pointer; border: none; font-size: 14px; }
.quick-action span { display: block; font-size: 24px; margin-bottom: 4px; }
.toast { position: fixed; top: 16px; left: 16px; right: 16px; background: var(--ink-900); color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 100; display: none; }
#map-view { height: 320px; border-radius: 16px; background: #E2E8F0; overflow: hidden; }
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.muted { color: var(--ink-500); font-size: 14px; }
.mb-4 { margin-bottom: 16px; } .mt-4 { margin-top: 16px; }
.icon-btn { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-bar { position: fixed; bottom: 70px; left: 16px; right: 16px; max-width: 448px; margin: 0 auto; background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.12); display: flex; justify-content: space-between; align-items: center; z-index: 40; }
.chat-box { min-height: 200px; max-height: 50vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.chat-input-row { display: flex; gap: 8px; } .chat-input-row input { flex: 1; margin: 0; }
.chat-msg { margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; font-size: 14px; max-width: 85%; }
.chat-msg.user { background: #E8F5E9; margin-left: auto; }
.chat-msg.bot { background: #F1F5F9; }
