*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf5ef;
  --bg-warm: #f5ede3;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-input: rgba(0, 0, 0, 0.05);
  --bg-input-hover: rgba(0, 0, 0, 0.07);
  --text: #2c2520;
  --text-secondary: #5c534a;
  --text-muted: #9e9389;
  --border: rgba(0, 0, 0, 0.08);
  --orange: #c87a52;
  --orange-light: #d4946e;
  --orange-dark: #b0603a;
  --terracotta: #c46b4a;
  --peach: #e8a882;
  --cream: #f0dcc8;
  --rust: #a85a3a;
  --warm-brown: #6b4c38;
  --sage: #7a9478;
  --dusty-rose: #c48a7a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  overflow: hidden;
}

/* Background flowers */
.flowers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.flower {
  position: absolute;
  animation: floatFlower 30s ease-in-out infinite;
}

.flower svg {
  width: 100%;
  height: 100%;
}

@keyframes floatFlower {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(4deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
  75% { transform: translateY(-12px) rotate(3deg); }
}

.app {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Icon sidebar */
.icon-bar {
  width: 44px;
  min-width: 44px;
  background: var(--bg-warm);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  justify-content: space-between;
}

.icon-bar-top, .icon-bar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.icon-btn.active-icon {
  color: var(--orange);
  background: rgba(200, 122, 82, 0.12);
}

/* Social links at bottom of sidebar */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.social-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--orange);
}

/* Main area */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Landing page */
.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: 80px;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.greeting-icon {
  font-size: 28px;
  color: var(--orange);
  font-weight: 700;
}

.greeting-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Input box */
.input-wrapper {
  width: 100%;
  max-width: 620px;
  padding: 0 20px;
}

.input-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 8px 6px 6px;
  gap: 4px;
  transition: all 0.2s;
}

.input-box:focus-within {
  border-color: rgba(200, 122, 82, 0.4);
  box-shadow: 0 0 0 3px rgba(200, 122, 82, 0.08);
  background: rgba(0, 0, 0, 0.04);
}

.input-plus {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.input-plus:hover { color: var(--text-secondary); }

.input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 4px;
}

.input-box input::placeholder {
  color: var(--text-muted);
}

.input-model {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 4px;
}

.input-send {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.input-send:hover {
  background: var(--orange-dark);
  transform: scale(1.05);
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 620px;
  padding: 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pill:hover {
  background: rgba(200, 122, 82, 0.08);
  color: var(--text);
  border-color: rgba(200, 122, 82, 0.25);
}

.pill-icon {
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
}

/* Conversation view */
.conv-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conv-view.hidden {
  display: none;
}

.conv-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.conv-scroll::-webkit-scrollbar { width: 5px; }
.conv-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }

.conv-content {
  width: 100%;
  max-width: 680px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-input-area {
  display: flex;
  justify-content: center;
  padding: 12px 24px 24px;
}

.conv-input-area .input-box {
  width: 100%;
  max-width: 680px;
}

/* Messages */
.msg {
  padding: 16px 20px;
  border-radius: 18px;
  line-height: 1.7;
  font-size: 14px;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-user {
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  align-self: flex-end;
  max-width: 75%;
  border-bottom-right-radius: 6px;
}

.msg-claude {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  backdrop-filter: blur(8px);
}

.msg-heading {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.msg-heading.c-rose { color: var(--dusty-rose); }
.msg-heading.c-lavender { color: #8a6aaa; }
.msg-heading.c-sky { color: #4a8aaa; }
.msg-heading.c-mint { color: var(--sage); }
.msg-heading.c-coral { color: var(--terracotta); }
.msg-heading.c-gold { color: var(--rust); }
.msg-heading.c-peach { color: var(--orange); }

.msg-sub {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--orange);
}

.msg-body {
  color: var(--text-secondary);
  line-height: 1.75;
}

.msg-stat {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--peach);
  margin: 4px 0;
}

.msg-source {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.msg-command {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sage);
  padding: 3px 0;
}

.msg-spacer {
  height: 8px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .icon-bar { display: none; }
  .conv-content { padding: 20px 16px; }
  .input-model { display: none; }
  .pills { padding: 0 16px; }
}
