:root {
  --ttm-primary: #0b5d4b;
  --ttm-primary-dark: #084437;
  --ttm-bg: #f5f7f7;
  --ttm-text: #1f2937;
  --ttm-muted: #6b7280;
  --ttm-border: #d9e2e7;
  --ttm-white: #fff;
}
.ttm-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ttm-text);
}
.ttm-chatbot * { box-sizing: border-box; }
.ttm-chatbot-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ttm-primary); color: #fff; font-size: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.ttm-chatbot-window {
  width: 360px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 90px);
  background: var(--ttm-white); border-radius: 18px; overflow: hidden; display: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); border: 1px solid var(--ttm-border); margin-bottom: 12px;
}
.ttm-chatbot.open .ttm-chatbot-window { display: flex; flex-direction: column; }
.ttm-chatbot-header {
  background: linear-gradient(135deg, var(--ttm-primary), var(--ttm-primary-dark));
  color: #fff; padding: 16px;
}
.ttm-chatbot-header h3 { margin: 0; font-size: 18px; }
.ttm-chatbot-header p { margin: 6px 0 0; font-size: 13px; opacity: .92; }
.ttm-chatbot-messages { flex: 1; overflow: auto; padding: 14px; background: var(--ttm-bg); }
.ttm-msg { margin: 0 0 12px; display: flex; }
.ttm-msg.bot { justify-content: flex-start; }
.ttm-msg.user { justify-content: flex-end; }
.ttm-bubble {
  max-width: 86%; padding: 11px 12px; border-radius: 14px; line-height: 1.45; font-size: 14px; white-space: pre-wrap;
}
.ttm-msg.bot .ttm-bubble { background: #fff; border: 1px solid var(--ttm-border); }
.ttm-msg.user .ttm-bubble { background: var(--ttm-primary); color: #fff; }
.ttm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ttm-link-card {
  display: block; text-decoration: none; padding: 10px; background: #fff; border: 1px solid var(--ttm-border);
  border-radius: 12px; color: var(--ttm-text); font-size: 13px;
}
.ttm-link-card strong { display: block; margin-bottom: 3px; }
.ttm-quick { padding: 10px 14px 0; background: var(--ttm-white); border-top: 1px solid var(--ttm-border); }
.ttm-quick-scroll { display: flex; gap: 8px; overflow: auto; padding-bottom: 10px; }
.ttm-chip {
  white-space: nowrap; border: 1px solid var(--ttm-border); background: #fff; color: var(--ttm-text);
  border-radius: 999px; padding: 8px 10px; cursor: pointer; font-size: 12px;
}
.ttm-chatbot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ttm-border); background: #fff; }
.ttm-chatbot-form input {
  flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--ttm-border); font-size: 14px;
}
.ttm-chatbot-form button {
  border: 0; background: var(--ttm-primary); color: #fff; border-radius: 12px; padding: 0 14px; cursor: pointer;
}
.ttm-weather-box {
  background: #fff; border: 1px solid var(--ttm-border); border-radius: 12px; padding: 10px; margin-top: 8px; font-size: 13px;
}
.ttm-weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ttm-weather-grid div { background: #f9fbfb; border-radius: 8px; padding: 8px; }
.ttm-footnote { margin-top: 8px; font-size: 12px; color: var(--ttm-muted); }
@media (max-width: 480px) {
  .ttm-chatbot { right: 12px; bottom: 12px; }
  .ttm-chatbot-window { width: calc(100vw - 24px); height: 72vh; }
}

.ttm-list { margin-top: 8px; display: grid; gap: 8px; }
.ttm-list-item { background: #f9fbfb; border-radius: 8px; padding: 8px; }
.ttm-alert { margin-top: 8px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 8px; }
.ttm-mini-chips { margin-top: 8px; }
.ttm-mini-chip { display: inline-block; margin: 3px 4px 0 0; background: #eef6f4; border: 1px solid var(--ttm-border); border-radius: 999px; padding: 4px 8px; font-size: 12px; }
