body.landing { margin: 0; background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 60%); }
.hero { background: linear-gradient(135deg, #f6f7fb, #eef2ff); border-bottom: 1px solid var(--line); }
.hero.cover { 
  background-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55)), var(--cover-url, none);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff;
  min-height: 80vh; display:flex; align-items:center;
}
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 48px 24px; }
.hero.cover .tagline { color: #f0f3f6; }
.hero .tagline { color: var(--sub); max-width: 800px; margin-top: 8px; }
.hero-highlights { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.hero-highlights .hi { background: #fff; border:1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 14px; }
.hero.cover .hero-highlights .hi { background: rgba(255,255,255,0.14); color: #eef3ff; border-color: rgba(255,255,255,0.25); }
.container.split { max-width: 1100px; margin: 20px auto; padding: 0 20px; display: grid; grid-template-columns: 480px 1fr; gap: 24px; align-items: start; }
.container { max-width: 1240px; margin: 28px auto; padding: 0 24px; }
.card.auth input { width: 100%; }
.card.auth.translucent { background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); }
.hero .card.auth { max-width: 520px; }
.features { margin: 8px 0 0 16px; }
.features li { margin: 6px 0; }
.footer { text-align: center; color: var(--sub); border-top:1px solid var(--line); padding: 16px; margin-top: 20px; }

/* Topbar */
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 8px; }
.topbar h1 { margin: 0; }
button.small { padding: 8px 12px; font-size: 14px; }
.muted { color: var(--sub); }

/* Feature cards and hero graphic */
.feature-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 12px; }
.feature-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; display:flex; gap:12px; align-items:flex-start; }
.feature-card div { line-height: 1.7; font-size: 16px; }
.card.about { padding: 20px; }
.card.about .muted { font-size: 16px; line-height: 1.7; }
.feature-card svg { width:28px; height:28px; flex:0 0 28px; }
.hero-graphic { display:flex; align-items:center; justify-content:center; padding:16px; }
.hero-graphic svg { width:100%; max-width: 520px; height:auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08)); }
:root { --bg:#fff; --muted:#f6f7f9; --line:#e7e8ea; --text:#222; --sub:#666; --primary:#1f6feb; }
*{ box-sizing: border-box; }
body { font-family: system-ui, Arial, sans-serif; margin: 24px; line-height: 1.45; color: var(--text); background: var(--bg); }
h1 { margin-bottom: 16px; }
h3 { margin: 0 0 8px 0; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.row { display: flex; gap: 8px; align-items: center; }
input, textarea, button { padding: 10px 12px; margin: 6px 0; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
button { background: var(--primary); color: #fff; border: none; cursor: pointer; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
pre { background: var(--muted); padding: 12px; border-radius: 8px; overflow:auto; }
textarea { width: 100%; resize: vertical; }

.chat-list { max-height: 480px; overflow-y: auto; background: var(--muted); padding: 12px; border-radius: 10px; border:1px solid var(--line); }
.msg { padding: 10px 12px; margin: 8px 0; border-radius: 12px; max-width: 80%; white-space: pre-wrap; }
.msg.me { background: #dfeaff; margin-left: auto; }
.msg.ai { background: #f0f0f0; margin-right: auto; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: grid; place-items: center; }
.modal.hidden { display: none; }
.modal-content { background:#fff; width: min(1000px, 92vw); max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.schema-container { padding: 12px 16px; overflow-y: auto; }
.schema-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.schema-card h4 { margin: 4px 0 10px 0; }
.schema-card table { width: 100%; border-collapse: collapse; }
.schema-card th, .schema-card td { border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.modal-actions { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* Google sign-in */
.google-btn { display:inline-flex; align-items:center; gap:8px; background:#fff; color:#222; border:1px solid var(--line); }
.google-btn:hover { background:#f7f8ff; }
.google-icon { width:24px; height:24px; display:block; object-fit: contain; }
.google-btn::before {
  content: "";
  display: inline-block;
  width: 24px; height: 24px;
  background: url('/static/google.png') no-repeat center center / contain;
}
/* Fallback if template still contains an <img> inside the button */
.google-btn img { width:24px !important; height:24px !important; max-width:16px !important; max-height:16px !important; display:inline-block; object-fit:contain; flex:0 0 16px; }
