:root {
  --bg: #f2f5f5;
  --surface: #fff;
  --line: #d5e0df;
  --text: #0d1416;
  --muted: #5f6a6c;
  --brand: #5cc2bd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", sans-serif;
}

.shell {
  width: min(1200px, 95%);
  margin: 1rem auto;
  display: grid;
  gap: 1rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: clamp(170px, 19vw, 280px);
}

.back {
  color: #0b6e69;
  text-decoration: none;
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.stack {
  display: grid;
  gap: 0.55rem;
}

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

input,
select,
textarea,
button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.52rem 0.68rem;
  background: #fff;
}

input,
select,
textarea {
  width: 100%;
}

textarea {
  min-height: 88px;
}

button {
  width: auto;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(120deg, var(--brand), #8edbd6);
  border: none;
}

button.ghost {
  background: #f5f8f8;
  border: 1px solid var(--line);
}

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

.hint {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.list {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 0.4rem;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.45rem;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  text-align: left;
}

button.list-item {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.selected-user {
  border-color: #68beb9;
  box-shadow: 0 0 0 2px rgba(92, 194, 189, 0.2) inset;
}

.list-item-order {
  align-items: flex-start;
}

.list-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tags-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid #bcdedc;
  border-radius: 999px;
  background: #eefafa;
  color: #17635f;
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem;
  min-height: 50px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
