/* Styling for login screen and playground UI. */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: fixed;
  inset: 0;
  background: #f5f5f5;
  z-index: 1000;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 10px;
}

.login-card input {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-size: 15px;
}

.login-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.is-hidden {
  display: none !important;
}

.container {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 20px;
}

.header {
  margin-bottom: 24px;
}

.header h1 {
  margin: 0 0 8px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
}

.card h2 {
  margin: 0;
}

.section-disabled {
  opacity: 0.65;
}

.section-disabled button,
.section-disabled textarea {
  cursor: not-allowed;
}

label {
  font-weight: 600;
}

textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  resize: vertical;
  min-height: 140px;
}

.chat-history {
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background: #fafafa;
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.chat-empty {
  color: #777;
  font-size: 14px;
}

.chat-message {
  display: grid;
  gap: 6px;
}

.chat-message.user {
  justify-items: end;
}

.chat-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #1c1c1c;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message.assistant .chat-bubble {
  background: #f1f1f1;
}

.chat-meta {
  font-size: 12px;
  color: #666;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

button {
  background: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: #195bcc;
}

.status {
  font-size: 14px;
  color: #555;
}

.hint {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.timing {
  font-size: 13px;
  color: #444;
  background: #f7f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 6px 10px;
}

