:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #e6e6e6;
}

body {
  font-family: ui-monospace, "SF Mono", "Fira Code", "JetBrains Mono", Menlo, Consolas, monospace;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.terminal {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  background: #060606;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.78rem;
}

.brand {
  color: #777;
  letter-spacing: 0.3px;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9fb0a8;
  text-decoration: none;
}

.identity:hover {
  color: #cfe3d8;
}

.tg-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.handle {
  color: #5f6b63;
}

.center-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
}

.run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0a0a0a;
  color: #8CFFB0;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.run-btn:active {
  background: #8CFFB0;
  color: #000;
}

.run-btn .prompt {
  color: #555;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.about-text {
  margin: 0;
  max-width: 320px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #4d5852;
}

.feedback-toggle {
  margin: 0;
  font-family: inherit;
  font-size: 0.72rem;
  color: #5a6a60;
  background: #0a0a0a;
  border: 1px solid #262e2a;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
}

.feedback-toggle:hover {
  color: #8c9c92;
  border-color: #3a453e;
}

.feedback-toggle:active {
  background: #111;
}

.feedback-panel {
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
  text-align: left;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: #4d5852;
}

.field textarea,
.field input {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 6px;
  color: #e6e6e6;
  font-size: 0.9rem;
  padding: 10px 12px;
  font-family: inherit;
  resize: vertical;
}

.field textarea:focus,
.field input:focus {
  outline: none;
  border-color: #444;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submit-btn {
  align-self: flex-start;
  background: #0a0a0a;
  color: #8CFFB0;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

#submit-btn:active {
  background: #8CFFB0;
  color: #000;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.78rem;
  margin: 0;
  color: #4d5852;
}

.form-status[data-state="ok"] {
  color: #7CFC9A;
}

.form-status[data-state="error"] {
  color: #FF8080;
}
