 :root {      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;      background: #0f172a;      color: #e5e7eb;    }    body {      margin: 0;      min-height: 100vh;      display: flex;      flex-direction: column;      background: radial-gradient(circle at top, #1e293b 0, #020617 55%);    }    .app {      width: 100%;      max-width: 1400px;      margin: 0 auto;      padding: 16px 16px 20px;      display: flex;      flex-direction: row;      height: 100vh;      box-sizing: border-box;      gap: 16px;    }    /* Sidebar for history */    .sidebar {      width: 260px;      flex-shrink: 0;      display: flex;      flex-direction: column;      background: rgba(15, 23, 42, 0.95);      border-radius: 16px;      border: 1px solid rgba(148, 163, 184, 0.35);      padding: 12px;      box-sizing: border-box;    }    .sidebar-header {      display: flex;      justify-content: space-between;      align-items: center;      margin-bottom: 8px;    }    .sidebar-title {      font-size: 0.85rem;      font-weight: 600;      color: #e5e7eb;    }    .new-chat-btn {      border: none;      border-radius: 9999px;      padding: 4px 10px;      font-size: 0.75rem;      font-weight: 500;      cursor: pointer;      background: #22c55e;      color: #022c22;      display: inline-flex;      align-items: center;      gap: 4px;      white-space: nowrap;    }    .history-list {      flex: 1;      overflow-y: auto;      margin-top: 4px;      padding-right: 4px;      scrollbar-width: thin;    }    .history-item {      padding: 6px 8px;      border-radius: 10px;      font-size: 0.8rem;      cursor: pointer;      margin-bottom: 4px;      color: #e5e7eb;      border: 1px solid transparent;      display: flex;      flex-direction: row;      align-items: center;      gap: 6px;      transition: background 0.12s ease, border-color 0.12s ease;    }    .history-item-main {      display: flex;      flex-direction: column;      gap: 2px;      flex: 1;      min-width: 0;    }    .history-item-title {      white-space: nowrap;      overflow: hidden;      text-overflow: ellipsis;    }    .history-item-time {      font-size: 0.7rem;      color: #9ca3af;    }    .history-item:hover {      background: #020617;      border-color: rgba(148, 163, 184, 0.6);    }    .history-item.active {      background: #22c55e1a;      border-color: #22c55e;    }    .history-item-delete {      border: none;      background: transparent;      color: #9ca3af;      cursor: pointer;      font-size: 0.8rem;      padding: 0 4px;      flex-shrink: 0;    }    .history-item-delete:hover {      color: #f97373;    }    /* Main chat panel */    .main-panel {      flex: 1;      display: flex;      flex-direction: column;      background: rgba(15, 23, 42, 0.92);      border-radius: 16px;      border: 1px solid rgba(148, 163, 184, 0.35);      padding: 12px 16px 10px;      box-sizing: border-box;      min-width: 0;    }    .header {      padding: 4px 0 10px;      border-bottom: 1px solid rgba(148, 163, 184, 0.4);      margin-bottom: 8px;      display: flex;      justify-content: space-between;      align-items: baseline;      gap: 8px;    }    .header-title {      font-size: 1.3rem;      font-weight: 600;    }    .header-subtitle {      font-size: 0.8rem;      color: #9ca3af;    }    .status {      font-size: 0.75rem;      color: #22c55e;      white-space: nowrap;    }    .status.error {      color: #f97373;    }    .chat {      flex: 1;      overflow-y: auto;      padding: 8px 2px 8px 0;      margin-bottom: 8px;      scrollbar-width: thin;      scroll-behavior: smooth;    }    .msg-row {      display: flex;      margin-bottom: 8px;    }    .msg-row.user {      justify-content: flex-end;    }    .msg-bubble {      max-width: 80%;      padding: 8px 12px;      border-radius: 16px;      font-size: 0.9rem;      line-height: 1.4;      white-space: pre-wrap;    }    .msg-row.user .msg-bubble {      background: #22c55e;      color: #022c22;      border-bottom-right-radius: 4px;    }    .msg-row.assistant .msg-bubble {      background: #111827;      border: 1px solid rgba(55, 65, 81, 0.9);      border-bottom-left-radius: 4px;    }    .msg-label {      font-size: 0.7rem;      text-transform: uppercase;      letter-spacing: 0.06em;      margin-bottom: 3px;      color: #9ca3af;    }    /* NEW: make the "You" label red for user messages */    .msg-row.user .msg-label {      color: #f97373;      font-weight: 700;    }    .input-area {      border-top: 1px solid rgba(148, 163, 184, 0.3);      padding-top: 10px;      margin-top: 2px;      display: flex;      gap: 8px;    }    textarea {      flex: 1;      resize: none;      min-height: 60px;      max-height: 140px;      padding: 8px;      border-radius: 10px;      border: 1px solid rgba(148, 163, 184, 0.7);      background: #020617;      color: #e5e7eb;      font-size: 0.9rem;      font-family: inherit;      box-sizing: border-box;    }    textarea:focus {      outline: none;      border-color: #22c55e;      box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);    }    button {      border: none;      border-radius: 9999px;      padding: 0 18px;      font-size: 0.9rem;      font-weight: 500;      cursor: pointer;      background: #22c55e;      color: #022c22;      display: flex;      align-items: center;      gap: 6px;      white-space: nowrap;      height: 40px;      align-self: flex-end;    }    button:disabled {      opacity: 0.5;      cursor: wait;    }    .small {      font-size: 0.75rem;      color: #9ca3af;      margin-top: 4px;    }    .loading-dots span {      display: inline-block;      animation: blink 1.2s infinite both;    }    .loading-dots span:nth-child(2) { animation-delay: 0.2s; }    .loading-dots span:nth-child(3) { animation-delay: 0.4s; }    @keyframes blink {      0%, 80%, 100% { opacity: 0; }      40% { opacity: 1; }    }    /* Tablet / small desktop tweaks */    @media (max-width: 1100px) {      .app {        padding: 12px;        gap: 12px;      }      .sidebar {        width: 230px;      }    }    /* Mobile & very small screens */    @media (max-width: 900px) {      .app {        flex-direction: column;        height: auto;      }      .sidebar {        width: 100%;        flex-direction: column;        height: auto;        max-height: 200px;      }      .main-panel {        padding: 10px 12px 8px;      }      .header {        flex-direction: column;        align-items: flex-start;        gap: 4px;      }      .status {        margin-top: 2px;      }    }    @media (max-width: 600px) {      .app {        padding: 10px 8px 14px;      }      .header-title {        font-size: 1.05rem;      }      textarea {        font-size: 0.85rem;      }      .msg-bubble {        max-width: 100%;      }    }