/* Awaz — mobile-first styles */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #F1F5F4; color: #1F2937;
  -webkit-tap-highlight-color: transparent;
}
.app { max-width: 640px; margin: 0 auto; padding: 12px 12px 24px; }
.header { display: flex; justify-content: space-between; align-items: center; }
.header h1 { margin: 0; font-size: 30px; color: #0F766E; }
.subtitle { margin: 2px 0 0; color: #6B7280; font-size: 14px; }
.header-btns { display: flex; gap: 8px; }
.icon-btn {
  background: #fff; border: 1px solid #D1D5DB; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; cursor: pointer; min-height: 44px;
}
.tabs { display: flex; gap: 6px; margin: 14px 0; overflow-x: auto; }
.tab {
  flex: 1 0 auto; background: #fff; border: 1px solid #D1D5DB; border-radius: 999px;
  padding: 10px 12px; font-size: 14px; cursor: pointer; min-height: 44px;
}
.tab.active { background: #0F766E; color: #fff; border-color: #0F766E; }
.section { display: none; }
.section.active { display: block; }
.section h2 { font-size: 20px; margin: 8px 0 12px; }
.chat {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
  min-height: 320px; max-height: 55vh; overflow-y: auto; padding: 12px;
}
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  margin: 8px 0; font-size: 16px; line-height: 1.5; word-wrap: break-word;
}
.bubble.user { background: #0F766E; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.assistant { background: #E6F2F0; color: #1F2937; margin-right: auto; border-bottom-left-radius: 4px; }
.status { min-height: 22px; text-align: center; color: #0F766E; font-size: 14px; margin: 6px 0; }
.composer { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.mic-btn {
  width: 72px; height: 72px; min-width: 72px; border-radius: 50%;
  background: #0F766E; color: #fff; font-size: 32px; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, .4);
}
.mic-btn.listening { background: #DC2626; animation: pulse 1s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); } 100% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); } }
#text-input {
  flex: 1; min-height: 48px; border: 1px solid #D1D5DB; border-radius: 12px;
  padding: 10px 12px; font-size: 16px;
}
.send-btn {
  min-height: 48px; background: #0F766E; color: #fff; border: none;
  border-radius: 12px; padding: 10px 16px; font-size: 15px; cursor: pointer;
}
.hint { color: #6B7280; font-size: 13px; line-height: 1.5; }
.voice-note {
  background: #FEF3C7; border: 1px solid #F59E0B; color: #92400E;
  border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0;
}
.list { list-style: none; padding: 0; margin: 0 0 16px; }
.list li {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 12px; margin: 8px 0; font-size: 16px; line-height: 1.5;
}
.list li span { color: #6B7280; font-size: 14px; }
.list li.due { border-color: #DC2626; background: #FEF2F2; }
.list li.done { opacity: .6; }
.list li.done label { text-decoration: line-through; }
.list li button {
  float: right; background: none; border: none; color: #DC2626;
  font-size: 13px; cursor: pointer; padding: 6px;
}
.list li.empty { color: #6B7280; text-align: center; }
.mini-form { display: flex; flex-direction: column; gap: 8px; }
.mini-form input {
  min-height: 48px; border: 1px solid #D1D5DB; border-radius: 12px;
  padding: 10px 12px; font-size: 16px; width: 100%;
}
.mini-form button, .primary-btn {
  min-height: 48px; background: #0F766E; color: #fff; border: none;
  border-radius: 12px; padding: 10px 16px; font-size: 16px; cursor: pointer; width: 100%;
}
.primary-btn.secondary { background: #fff; color: #0F766E; border: 1px solid #0F766E; margin-top: 8px; }
.field { display: block; margin: 12px 0; font-size: 15px; }
.field input {
  display: block; width: 100%; min-height: 48px; margin-top: 6px;
  border: 1px solid #D1D5DB; border-radius: 12px; padding: 10px 12px; font-size: 16px;
}
.onboarding {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.onboarding-card {
  background: #fff; border-radius: 20px; padding: 24px; max-width: 420px; width: 100%;
  text-align: center;
}
.onboarding-card input {
  width: 100%; min-height: 48px; border: 1px solid #D1D5DB; border-radius: 12px;
  padding: 10px 12px; font-size: 16px; margin: 12px 0;
}
.link-btn { background: none; border: none; color: #0F766E; font-size: 15px; cursor: pointer; padding: 10px; }
