:root {
  --bg: #faf9fd;
  --fg: #241a3e;
  --accent: #6d4fd6;
  --border: #d9d2ee;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  margin: 0 auto;
  max-width: 720px;
  padding: 1rem;
  color: var(--fg);
  background: var(--bg);
}

header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

h1 { font-size: 1.3rem; }
h2 { font-size: 1.1rem; }

form { display: flex; flex-direction: column; gap: 0.75rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; }

input, textarea {
  font: inherit;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

textarea { min-height: 6rem; }

button {
  font: inherit;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.actions { display: flex; gap: 0.5rem; }

.notice {
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  background: #efeaff;
}

#feedback-list { display: flex; flex-direction: column; }
.feedback-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  color: inherit;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.25rem;
  cursor: pointer;
}
.feedback-item:hover { background: #efeaff; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

#thread li {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  list-style-position: inside;
}
#thread .agent { background: #efeaff; }

.attachment-thumb { max-width: 200px; display: block; margin-top: 0.4rem; }
