:root {
  color: #202124;
  font-family: Mitr, "Noto Sans SC", Thonburi, "PingFang SC", sans-serif;
  background: #f6f3fb;
}

body {
  margin: 0;
}

a {
  color: #673ab7;
}

button,
input,
textarea,
select {
  font: inherit;
}

.home {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.home.narrow {
  max-width: 28rem;
}

.eyebrow {
  color: #673ab7;
  font-weight: 500;
}

h1 {
  font-size: 2rem;
  line-height: 1.3;
}

.lead,
.muted {
  color: #555;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: #673ab7;
  color: white;
  padding: 0.7rem 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost {
  background: white;
  color: #202124;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.admin-bar {
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-bar-inner,
.admin-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}

.admin-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.row,
.actions,
.form-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.actions {
  justify-content: flex-start;
}

.form-list {
  display: grid;
  padding: 0;
  list-style: none;
}

.panel {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin: 0.8rem 0;
}

.stack,
.panel label,
.question-editor label {
  display: grid;
  gap: 0.3rem;
  margin: 0.6rem 0;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: white;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
}

.check input {
  width: auto;
}

.linkish {
  border: 0;
  background: transparent;
  color: #673ab7;
  cursor: pointer;
}

.danger {
  color: #b42318;
}

.ok {
  color: #0f7b3a;
}

.form-error {
  color: #9b1c1c;
  background: #fee2e2;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem;
  border-top: 1px solid #eee;
}

.thumb {
  height: 6rem;
  max-width: 10rem;
  object-fit: cover;
  border-radius: 8px;
}

.pre {
  white-space: pre-wrap;
}

.site-footer {
  text-align: center;
  color: #7a4b12;
  font-size: 0.8rem;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.option-row input {
  flex: 1 1 10rem;
}
