    :root {
      color-scheme: dark;
      --candor-primary: #8dd7bb;
      --candor-background: linear-gradient(135deg, #1F3D32 0%, #3A6E5A 50%, #588F77 100%);
      --candor-text: #f3faf7;
      --candor-muted: rgba(243, 250, 247, 0.7);
      font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      color: var(--candor-text);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: var(--candor-background);
      color: var(--candor-text);
    }

    .chat-app {
      display: flex;
      flex-direction: column;
      height: 100vh;
      max-width: 100%;
      margin: 0 auto;
    }

    /* Header - Minimal navbar style */
    .chat-app__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 2rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(12, 32, 25, 0.6);
      backdrop-filter: blur(20px);
      flex-shrink: 0;
    }

    .chat-app__branding {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .chat-app__title {
      margin: 0;
      font-family: 'Montserrat', 'Open Sans', sans-serif;
      font-weight: 800;
      font-size: 1.5rem;
      letter-spacing: 0.05em;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .chat-app__title-candor {
      color: #ffffff;
      letter-spacing: 5px;
    }

    .chat-app__title-ai {
      background: linear-gradient(135deg, #ffffff 0%, #ffffff 70%, #D8DFD7 100%);
      color: #41705D;
      padding: 0.05rem 0.5rem;
      border-radius: 0.35rem;
      font-size: 0.9em;
    }

    .chat-app__subtitle {
      margin: 0;
      font-size: 0.8rem;
      color: var(--candor-muted);
      font-weight: 400;
    }

    .chat-app__header-right {
      display: flex;
      align-items: center;
    }

    .chat-status {
      font-size: 0.85rem;
      color: var(--candor-text);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.75rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .chat-status::before {
      content: '';
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: #7ef0bf;
      box-shadow: 0 0 0 4px rgba(126, 240, 191, 0.2);
    }

    /* Main content area */
    .chat-app__content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding-bottom: 80px;
    }

    .chat-history {
      flex: 1;
      padding: 2rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      scrollbar-width: thin;
      scroll-behavior: smooth;
    }

    .chat-history::-webkit-scrollbar {
      width: 8px;
    }

    .chat-history::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 999px;
    }

    .chat-message {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      max-width: 900px;
      margin: 0 auto;
      width: 100%;
      opacity: 0;
      transform: translateY(10px);
      animation: messageSlideIn 0.3s ease forwards;
    }

    @keyframes messageSlideIn {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .chat-message--user {
      align-items: flex-end;
    }

    .chat-message--assistant {
      align-items: flex-start;
    }

    /* User bubble - tighter padding */
    .chat-message--user .chat-bubble {
      padding: 0.45rem 1rem;
      border-radius: .8rem;
      background: rgba(26, 86, 66, 0.9);
      color: #ecfdf6;
      border: 1px solid rgba(141, 215, 187, 0.4);
      max-width: 80%;
      box-shadow: 0 4px 12px rgba(3, 12, 9, 0.2);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .chat-message--user .chat-bubble:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(3, 12, 9, 0.3);
    }

    /* AI response - no bubble, full width */
    .chat-message--assistant .chat-bubble {
      padding: 0;
      border: none;
      background: transparent;
      width: 100%;
      max-width: 100%;
      box-shadow: none;
    }

    .chat-message--assistant .chat-text {
      animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .chat-text {
      font-size: 0.95rem;
      line-height: 1.6;
      color: inherit;
    }

    .chat-text p {
      margin: 0 0 0.75rem 0;
    }

    .chat-text p:last-child {
      margin-bottom: 0;
    }

    .chat-feedback {
      margin-top: 1rem;
      display: flex;
      gap: 0.5rem;
    }

    .chat-feedback button {
      border: 1px solid rgba(255, 255, 255, 0.25);
      background: rgba(255, 255, 255, 0.08);
      color: var(--candor-text);
      border-radius: 999px;
      padding: 0.35rem 0.85rem;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .chat-feedback button:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.35);
    }

    .chat-meta {
      font-size: 0.75rem;
      color: rgba(235, 245, 241, 0.6);
      display: flex;
      gap: 0.35rem;
      align-items: center;
    }

    /* Footer - inset button style */
    .chat-app__footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 1rem 2rem;
      background: rgba(12, 32, 25, 0.7);
      backdrop-filter: blur(20px);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      z-index: 10;
    }

    .chat-form {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
    }

    .chat-form__input {
      position: relative;
      display: flex;
      align-items: flex-end;
    }

    #chat-input {
      flex: 1;
      resize: none;
      min-height: 52px;
      max-height: 140px;
      padding: 0.85rem 5.5rem 0.85rem 1rem;
      border-radius: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.25);
      font-size: 0.95rem;
      font-family: inherit;
      line-height: 1.5;
      background: rgba(255, 255, 255, 0.1);
      color: var(--candor-text);
      transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    #chat-input::placeholder {
      color: rgba(243, 250, 247, 0.5);
    }

    #chat-input:focus {
      outline: none;
      border-color: rgba(141, 215, 187, 0.6);
      box-shadow: 0 0 0 3px rgba(141, 215, 187, 0.15);
    }

    .chat-form__submit {
      position: absolute;
      right: 0.35rem;
      bottom: 50%;
      transform: translateY(50%);
      border: none;
      border-radius: 1.15rem;
      background: #ffffff;
      color: rgb(65, 112, 93);
      font-weight: 700;
      font-size: 0.9rem;
      padding: 0.65rem 1.25rem;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      box-shadow: 0 4px 12px rgba(3, 12, 9, 0.25);
    }

    .chat-form__submit:hover:not(:disabled) {
      transform: translateY(50%) translateY(-1px);
      box-shadow: 0 6px 16px rgba(3, 12, 9, 0.35);
      background: #f8f8f8;
    }

    .chat-form__submit:active:not(:disabled) {
      transform: translateY(50%) scale(0.98);
    }

    .chat-form__submit:disabled {
      background: rgba(255, 255, 255, 0.5);
      cursor: wait;
      transform: translateY(50%);
      color: rgba(65, 112, 93, 0.6);
    }

    .chat-form__submit-loading {
      display: inline-flex;
      gap: 0.3rem;
    }

    [hidden] {
      display: none !important;
    }

    .loading-dot {
      width: 0.4rem;
      height: 0.4rem;
      border-radius: 50%;
      background: rgb(65, 112, 93);
      animation: loading-dots 0.9s infinite ease-in-out;
    }

    .loading-dot:nth-child(2) {
      animation-delay: 0.15s;
    }

    .loading-dot:nth-child(3) {
      animation-delay: 0.3s;
    }

    @keyframes loading-dots {
      0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.6;
      }
      40% {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .chat-app__header {
        padding: 0.85rem 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
      }

      .chat-app__branding {
        flex: 1;
      }

      .chat-app__title {
        font-size: 1.25rem;
      }

      .chat-app__subtitle {
        font-size: 0.75rem;
      }

      .chat-status {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
      }

      .chat-status::before {
        width: 0.4rem;
        height: 0.4rem;
      }

      .chat-history {
        padding: 1rem;
        gap: 1.5rem;
      }

      .chat-message--user .chat-bubble {
        max-width: 90%;
      }

      .chat-app__footer {
        padding: 0.75rem 1rem;
      }

      #chat-input {
        font-size: 0.9rem;
        padding-right: 5rem;
      }
    }