.rat-hero {
  background-image: var(--theme-hero);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 80px 40px 60px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.rat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--theme-overlay);
}
.rat-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.rat-hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.rat-hero-title {
  font-family: var(--theme-font), serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.1;
}
.rat-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.80);
  margin: 0;
  font-style: italic;
}

body {
  background: var(--theme-primary) !important;
  background-image: none !important;
}
a { color: var(--theme-accent); }
.status-dot { background: var(--theme-accent) !important; }
.send-button, #sendButton {
  background: var(--theme-accent) !important;
}
.example-btn {
  border-color: var(--theme-accent) !important;
  color: var(--theme-accent) !important;
}
.panel-title {
  color: var(--theme-accent) !important;
  font-family: var(--theme-font), serif;
}
h2 {
  font-family: var(--theme-font), serif;
}

/* Response bubbles pick up domain theme */
.message.assistant .message-content {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--theme-primary) 80%, transparent),
    color-mix(in srgb, var(--theme-accent) 15%, var(--theme-primary))
  ) !important;
  border-left: 3px solid var(--theme-accent);
  border-radius: 8px;
}

/* User bubble stays neutral but picks up accent border */
.message.user .message-content {
  border-right: 3px solid var(--theme-accent);
  border-radius: 8px;
}

/* Quoted text and bold in responses use accent */
.message.assistant .message-content strong,
.message.assistant .message-content b {
  color: var(--theme-accent);
}

/* Main container integrates with dark hero */
.container {
  background: color-mix(
    in srgb, var(--theme-primary) 95%, white
  ) !important;
  border-radius: 12px;
  border: 1px solid color-mix(
    in srgb, var(--theme-accent) 20%, transparent
  );
  box-shadow: 0 4px 40px color-mix(
    in srgb, var(--theme-primary) 60%, transparent
  );
}

/* Sidebar panels pick up theme */
.sidebar-panel {
  background: color-mix(
    in srgb, var(--theme-primary) 90%, white
  ) !important;
}

.info-panel {
  border-left: 2px solid var(--theme-accent);
  background: color-mix(
    in srgb, var(--theme-accent) 5%, transparent
  ) !important;
}

.info-panel h3 {
  color: var(--theme-accent);
  font-family: var(--theme-font), serif;
}

/* Status bar picks up theme */
.status-bar {
  background: color-mix(
    in srgb, var(--theme-primary) 95%, black
  ) !important;
  border-bottom: 1px solid color-mix(
    in srgb, var(--theme-accent) 30%, transparent
  );
}

/* Input box picks up theme */
#messageInput {
  background: color-mix(
    in srgb, var(--theme-primary) 85%, white
  ) !important;
  border-color: color-mix(
    in srgb, var(--theme-accent) 40%, transparent
  ) !important;
  color: #ffffff !important;
}

#messageInput:focus {
  border-color: var(--theme-accent) !important;
  outline: none;
  box-shadow: 0 0 0 2px color-mix(
    in srgb, var(--theme-accent) 25%, transparent
  );
}

/* Custom footer */
.custom-footer {
  border-top: 1px solid color-mix(
    in srgb, var(--theme-accent) 20%, transparent
  );
}
