:root {
  --paper: #f3efe6;
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #ddd6c8;
  --card: #fffdf8;
  --forest: #1e3d32;
  --forest-hover: #163028;
}

html, body {
  background: var(--paper);
  color: var(--ink);
}

.dropzone.is-active {
  border-color: var(--forest);
  background: #eef4f0;
}

button, a, input, select, textarea, label {
  touch-action: manipulation;
}

.ui-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.nav-segment {
  display: flex;
  flex-wrap: wrap;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
}

.nav-segment a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-segment a:hover {
  color: var(--ink);
}

.nav-segment a.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.08);
}

.util-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--ink);
}

.util-link:hover {
  color: var(--muted);
}

.act-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
}

.act-chip:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.act-chip.is-danger {
  color: var(--muted);
}

.act-chip.is-danger:hover {
  color: #8a2b2b;
  border-color: #c9a3a0;
}

.msg {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 12px 16px;
  font-size: 14px;
}

.msg-ok {
  color: var(--forest);
}

.msg-error {
  color: #8a2b2b;
  background: #f6ece8;
  border-color: #e4cfc8;
}

.msg .act-chip {
  margin-left: 8px;
  min-height: 36px;
  vertical-align: middle;
}
