:root {
  color: #2d241e;
  background: #f2eadf;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #2d241e;
  --muted: #75685d;
  --paper: #fffaf2;
  --paper-2: #f7efe3;
  --line: rgba(65, 48, 36, 0.14);
  --sage: #596a55;
  --blue: #486d83;
  --clay: #ad6f4d;
  --danger: #9b4d43;
  --shadow: 0 16px 42px rgba(65, 48, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  background:
    linear-gradient(135deg, #f6ecde 0%, #e6ddcf 48%, #d2ddda 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--sage);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.nav a.active {
  color: white;
  background: var(--ink);
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.panel,
.card,
.empty,
.toast {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow,
.label,
.meta {
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.24;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  margin-bottom: 22px;
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(89, 106, 85, 0.08);
  color: #475443;
  font-weight: 800;
}

.step-pill span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: white;
  background: var(--sage);
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #4b4037;
  font-weight: 780;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(72, 109, 131, 0.62);
  box-shadow: 0 0 0 3px rgba(72, 109, 131, 0.14);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  background: var(--ink);
  font-weight: 850;
}

.button.secondary {
  color: #344331;
  background: #dfd5c7;
}

.button.blue {
  background: var(--blue);
}

.button.danger {
  background: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.stack {
  display: grid;
  gap: 12px;
}

.card {
  padding: 17px;
}

.claim {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.claim.disabled {
  opacity: 0.56;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  padding: 6px 8px;
  color: #4e5b4a;
  background: rgba(89, 106, 85, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.tag.blue {
  color: #34566b;
  background: rgba(72, 109, 131, 0.12);
}

.tag.clay {
  color: #805237;
  background: rgba(173, 111, 77, 0.13);
}

.capsule {
  display: grid;
  gap: 10px;
}

.capsule-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: #4b4037;
}

.capsule-row::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.empty {
  padding: 22px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.user-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.78);
  text-align: left;
}

.user-row.active {
  border-color: rgba(72, 109, 131, 0.56);
  background: #fffaf2;
  box-shadow: 0 0 0 3px rgba(72, 109, 131, 0.12);
}

.user-row strong {
  display: block;
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
}

.note {
  border-left: 4px solid var(--blue);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  color: var(--ink);
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 18px;
  }

  .shell {
    padding: 18px;
  }

  .layout,
  .split,
  .two-col {
    grid-template-columns: 1fr;
  }
}
